国贸2.0系统合同调用接口生成内部供应链的合同:修改删除操作逻辑
This commit is contained in:
@@ -182,6 +182,10 @@ public class ContractApiImpl implements ContractApi {
|
||||
if (systemRelativityDO == null || systemRelativityDO.getDownId() == null) throw exception(CONTRACT_NOT_EXISTS);
|
||||
contractId = systemRelativityDO.getDownId();
|
||||
contractMainMapper.deleteById(contractId);
|
||||
// 删除动态条款信息
|
||||
contractOtherFormMapper.delete("CTRT_MAIN_ID", contractId.toString());
|
||||
contractOtherFieldMapper.delete("CTRT_MAIN_ID", contractId.toString());
|
||||
return success(true);
|
||||
} else {
|
||||
throw exception(CONTRACT_UNKNOWN_OPERATE);
|
||||
}
|
||||
@@ -365,6 +369,7 @@ public class ContractApiImpl implements ContractApi {
|
||||
}
|
||||
return CommonResult.success(purchaseOrderDetails);
|
||||
}
|
||||
|
||||
private ContractMainDO getcontractMainDO(ContractRequest reqVO) {
|
||||
|
||||
// 合同主信息表映射
|
||||
|
||||
Reference in New Issue
Block a user