修改合同:更新逻辑修改
This commit is contained in:
@@ -921,13 +921,9 @@ public class ContractServiceImpl implements ContractService {
|
||||
}
|
||||
|
||||
// 更新合同主信息
|
||||
contractMainMapper.updateById(newContractMainDO);
|
||||
// 模板实例ID更新为null
|
||||
if (newContractMainDO.getInstanceId() == null) {
|
||||
contractMainMapper.update(new LambdaUpdateWrapper<>(ContractMainDO.class)
|
||||
.set(ContractMainDO::getInstanceId, null)
|
||||
.eq(ContractMainDO::getId, newContractMainDO.getId()));
|
||||
}
|
||||
contractMainMapper.update(newContractMainDO, new LambdaUpdateWrapper<>(ContractMainDO.class)
|
||||
.set(ContractMainDO::getInstanceId, newContractMainDO.getInstanceId())
|
||||
.eq(ContractMainDO::getId, newContractMainDO.getId()));
|
||||
|
||||
if (DictEnum.BSE_CTRT_STS_IN_PROGRESS.getCode().equals(newContractMainDO.getStatus())) {
|
||||
// 执行中合同重新提交erp
|
||||
|
||||
Reference in New Issue
Block a user