|
|
|
@ -122,6 +122,9 @@ public class ThirdAliDrugService extends ServiceImpl<ThirdAliDrugMapper, ThirdAl
|
|
|
|
|
BaseResponse<List<ThirdAliDrug>> baseResponse = alihealthUtils.thirdAliDrugInsertAll(request);
|
|
|
|
|
if(baseResponse.getCode() == 20000){
|
|
|
|
|
add = baseResponse.getData();
|
|
|
|
|
//删除 已完成的任务
|
|
|
|
|
this.baseMapper.deleteCpmctymcTask(cpmctymc);
|
|
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
log.error("阿里访问失败==="+baseResponse.getMessage());
|
|
|
|
|
}
|
|
|
|
@ -129,11 +132,11 @@ public class ThirdAliDrugService extends ServiceImpl<ThirdAliDrugMapper, ThirdAl
|
|
|
|
|
log.error("阿里访问失败==="+e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
thirdAliDrugAddRequest.setList(add);
|
|
|
|
|
this.addThirdAliDrug(thirdAliDrugAddRequest);
|
|
|
|
|
|
|
|
|
|
//删除 已完成的任务
|
|
|
|
|
this.baseMapper.deleteCpmctymcTask(cpmctymc);
|
|
|
|
|
if (CollUtil.isNotEmpty(add)){
|
|
|
|
|
thirdAliDrugAddRequest.setList(add);
|
|
|
|
|
this.addThirdAliDrug(thirdAliDrugAddRequest);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
Thread.sleep(15000);
|
|
|
|
|