|
@@ -86,7 +86,7 @@ public class RelationsContractServiceImpl implements RelationsContractService {
|
|
}
|
|
}
|
|
contractMapper.insert(contractInfo);
|
|
contractMapper.insert(contractInfo);
|
|
// 保存业务uuid到附件中
|
|
// 保存业务uuid到附件中
|
|
- this.saveFileList(createReqVO.getFileIdList(), infoId);
|
|
|
|
|
|
+ fileApi.updateFileBiz(createReqVO.getFileIdList(), infoId);
|
|
// 返回
|
|
// 返回
|
|
return contractInfo.getId();
|
|
return contractInfo.getId();
|
|
}
|
|
}
|
|
@@ -97,7 +97,7 @@ public class RelationsContractServiceImpl implements RelationsContractService {
|
|
// 校验存在
|
|
// 校验存在
|
|
validateContractInfoExists(updateReqVO.getId());
|
|
validateContractInfoExists(updateReqVO.getId());
|
|
// 保存业务uuid到附件中
|
|
// 保存业务uuid到附件中
|
|
- this.saveFileList(updateReqVO.getFileIdList(), updateReqVO.getContractId());
|
|
|
|
|
|
+ fileApi.updateFileBiz(updateReqVO.getFileIdList(), updateReqVO.getContractId());
|
|
// 更新
|
|
// 更新
|
|
RelationsContractDO updateObj = BeanUtils.toBean(updateReqVO, RelationsContractDO.class);
|
|
RelationsContractDO updateObj = BeanUtils.toBean(updateReqVO, RelationsContractDO.class);
|
|
contractMapper.updateById(updateObj);
|
|
contractMapper.updateById(updateObj);
|
|
@@ -215,14 +215,4 @@ public class RelationsContractServiceImpl implements RelationsContractService {
|
|
return contractMapper.selectList(lambdaQueryWrapper);
|
|
return contractMapper.selectList(lambdaQueryWrapper);
|
|
}
|
|
}
|
|
|
|
|
|
- /**
|
|
|
|
- * 保存业务uuid到附件中
|
|
|
|
- */
|
|
|
|
- @TenantIgnore
|
|
|
|
- private void saveFileList(List<Long> fileIdList, String serviceId) {
|
|
|
|
- if (CollectionUtil.isNotEmpty(fileIdList) && StrUtil.isNotEmpty(serviceId)) {
|
|
|
|
- fileApi.updateFileBiz(fileIdList, serviceId);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
}
|
|
}
|