feat: 定时任务更新阿里数据补偿功能

v3
chenhc 3 months ago
parent eed301b50f
commit 10f4c546bb

@ -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);

Loading…
Cancel
Save