|
|
@@ -350,6 +350,7 @@ public class SampleInfoServiceImpl extends ServiceImpl<SampleInfoMapper, SampleI
|
|
|
return auditDtos;
|
|
|
}
|
|
|
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
@Override
|
|
|
public void execute(Long id, SynProjectVo vo) {
|
|
|
if (!systemPropertiesService.getBooleanValue("sample.sync.ky")) {
|
|
|
@@ -394,11 +395,13 @@ public class SampleInfoServiceImpl extends ServiceImpl<SampleInfoMapper, SampleI
|
|
|
|
|
|
log.info("样本送检推送科研项目:flowId={}, param={}", id, JSON.toJSONString(projectFeignDTO));
|
|
|
R<Long> longR = remoteProjectService.initProject(projectFeignDTO);
|
|
|
+ log.info("科研响应:{}", JSON.toJSONString(longR));
|
|
|
if (!longR.isOk()) {
|
|
|
log.error("projectId={}推送科研失败,{}", id, longR);
|
|
|
+ throw new IllegalArgumentException("推送科研失败");
|
|
|
}
|
|
|
- Assert.isTrue(longR.isOk(), "操作失败,科研" + longR);
|
|
|
Long kyId = longR.getData();
|
|
|
+ Assert.notNull(kyId, "推送科研失败,科研id为空");
|
|
|
new SampleInfo().setId(id).setKyId(kyId).updateById();
|
|
|
|
|
|
if (kyId != null && systemPropertiesService.getBooleanValue("sample.sync.animal")) {
|