|
@@ -80,6 +80,9 @@ public class ContractUpdateFlow extends FlowDelegate {
|
|
|
if(ObjectUtil.isEmpty(oldContract)){
|
|
|
throw new ServiceException("查询不到原合同信息");
|
|
|
}
|
|
|
+
|
|
|
+ oldContract.setStatus(FlowStatusEnum1.UPDATE_LOADING.getKey());
|
|
|
+ contractService.updateById(oldContract);
|
|
|
|
|
|
List<ContractProduct> oldContractProductList = contractProductService.list(q -> q.eq(ContractProduct::getContractId, oldContractId));
|
|
|
if(CollectionUtils.isEmpty(oldContractProductList)){
|
|
@@ -101,7 +104,6 @@ public class ContractUpdateFlow extends FlowDelegate {
|
|
|
code = code.substring(0, code.lastIndexOf("("));
|
|
|
}
|
|
|
contract.setCode(code + "(" + index + ")");
|
|
|
- contract.setStatus(FlowStatusEnum1.UPDATE_LOADING.getKey());
|
|
|
|
|
|
* 计算新合同的剩余数量
|
|
|
*/
|