新增作废接口

新增完结接口
修改合同新增逻辑:设置erp甲乙方公司编号、名称
保存erp合同映射表是设置删除状态
This commit is contained in:
guojunyun
2025-10-16 17:06:32 +08:00
parent a2d9178c8e
commit f7155565d4
4 changed files with 94 additions and 10 deletions

View File

@@ -242,6 +242,7 @@ public class ErpContractServiceImpl implements ErpContractService {
ErpContractDO erpContractDO = getErpContractByMainId(erpContract.getContractMainId());
if (erpContractDO == null) {
// 不存在映射表则新增
erpContract.setDeleted(false);
erpContractMapper.insert(erpContract);
} else {
// 存在映射表则更新