国贸2.0系统合同调用接口生成内部供应链的合同:修改删除操作逻辑

This commit is contained in:
guojunyun
2025-10-28 17:43:50 +08:00
parent 520673fd0e
commit 4106f89107

View File

@@ -182,6 +182,10 @@ public class ContractApiImpl implements ContractApi {
if (systemRelativityDO == null || systemRelativityDO.getDownId() == null) throw exception(CONTRACT_NOT_EXISTS); if (systemRelativityDO == null || systemRelativityDO.getDownId() == null) throw exception(CONTRACT_NOT_EXISTS);
contractId = systemRelativityDO.getDownId(); contractId = systemRelativityDO.getDownId();
contractMainMapper.deleteById(contractId); contractMainMapper.deleteById(contractId);
// 删除动态条款信息
contractOtherFormMapper.delete("CTRT_MAIN_ID", contractId.toString());
contractOtherFieldMapper.delete("CTRT_MAIN_ID", contractId.toString());
return success(true);
} else { } else {
throw exception(CONTRACT_UNKNOWN_OPERATE); throw exception(CONTRACT_UNKNOWN_OPERATE);
} }
@@ -365,6 +369,7 @@ public class ContractApiImpl implements ContractApi {
} }
return CommonResult.success(purchaseOrderDetails); return CommonResult.success(purchaseOrderDetails);
} }
private ContractMainDO getcontractMainDO(ContractRequest reqVO) { private ContractMainDO getcontractMainDO(ContractRequest reqVO) {
// 合同主信息表映射 // 合同主信息表映射