fix: 合同金蝶同步结果回传接收 D903修改

This commit is contained in:
刘泉佳
2026-10-23 17:16:39 +08:00
parent 34f9085daa
commit 9450f95bbc
2 changed files with 3 additions and 2 deletions
@@ -207,7 +207,7 @@ public class HcsContractSpecSyncSupport {
/**
* 按合规合同ID定位合同(合规推送 requestId/id,即 blade_contract_manage.hcs_fd_id)
*/
private ContractManage locateContractByFdId(String requestId) {
public ContractManage locateContractByFdId(String requestId) {
if (StringUtil.isBlank(requestId)) {
return null;
}
@@ -131,7 +131,8 @@ public class HcsContractSyncSupport {
throw new ServiceException("来源系统标识错误");
}
String raw = JSONUtil.toJsonStr(param);
ContractManage contractManage = locateContractByNo(param.getContractCode());
String requestId = param.getRequestId();
ContractManage contractManage = hcsContractSpecSyncSupport.locateContractByFdId(requestId);
if (contractManage == null) {
log.warn("合同金蝶同步结果推送未定位到合同:contractCode={},报文已留痕", param.getContractCode());
writeKingdeeCallbackLog(null, HcsSyncConstant.CHECK_RESULT_SKIP, "合同金蝶同步结果推送未定位到合同:" + raw);