feat(qc): 在质检报告同步逻辑中增加质检报告ID和明细ID字段

This commit is contained in:
mzr 2025-10-05 16:26:43 +08:00
parent ab0e306fa2
commit c60bdcc4ec
1 changed files with 3 additions and 1 deletions

View File

@ -141,6 +141,8 @@ public class SyncQcQmsRule implements IRule<ReportVO> {
itemObj.put("sjsl", reportHeaderVO.getNapplynum().toString()); // 送检数量设计单位按设计计量单位统计的送检数量
itemObj.put("jldw", cunitname); // 计量单位
itemObj.put("bz", reportItemVO.getVbdef1()); // 明细备注用于填写该送检物料的补充说明
itemObj.put("bipzyid", pkReportbill); // 质检报告ID
itemObj.put("bipqdid", reportItemVO.getPk_reportbill_b()); // 质检报告明细ID
contentArray.add(itemObj);
}
singleObj.put("Content", contentArray);
@ -271,8 +273,8 @@ public class SyncQcQmsRule implements IRule<ReportVO> {
logger.error("QMS-QC-res = " + result);
if (!"true".equals(resultObj.getString("success"))) {
// throw new BusinessException("QMS-QC-error:" + resultObj.getString("msg"));
logger.error("QMS-QC-error,result[" + resultObj.toJSONString() + "]");
throw new BusinessException("QMS-QC-error:" + resultObj.getString("message"));
}
}