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