This commit is contained in:
lihao 2025-10-15 18:26:03 +08:00
parent 5e26717473
commit a420962c45
1 changed files with 13 additions and 8 deletions

View File

@ -115,9 +115,9 @@ public class AfterApproveSyncHighpressureMesRule implements IRule<PMOAggVO> {
itemObj.put("contractNum",contractNum ); // 销售订单号 itemObj.put("contractNum",contractNum ); // 销售订单号
Object cwarehouseid = hybo.findColValue("bd_stordoc", "code", " (pk_stordoc = '" + item.getAttributeValue("vbdef35") + "') "); Object cwarehouseid = hybo.findColValue("bd_stordoc", "code", " (pk_stordoc = '" + item.getAttributeValue("vdef31") + "') ");
itemObj.put("cwarehouseid", cwarehouseid); // ºÏͬ±àºÅ itemObj.put("cwarehouseid", cwarehouseid); // ²Ö¿â±àÂë
Object pk_project = hybo.findColValue("bd_project", "project_name", " pk_project = '" + item.getCprojectid() + "' "); Object pk_project = hybo.findColValue("bd_project", "project_name", " pk_project = '" + item.getCprojectid() + "' ");
itemObj.put("entryName", pk_project); // 项目名称 itemObj.put("entryName", pk_project); // 项目名称
@ -132,10 +132,10 @@ public class AfterApproveSyncHighpressureMesRule implements IRule<PMOAggVO> {
// 日期信息 // 日期信息
itemObj.put("requiredDate", item.getTrequiredate().toString()); // 需用日期 itemObj.put("requiredDate", item.getTrequiredate().toString()); // 需用日期
if("55A2".equals(item.getVsrctype())){ // if("55A2".equals(item.getVsrctype())){
itemObj.put("bipParentProcessProductionOrderId", item.getVparentbillcode()); itemObj.put("bipParentProcessProductionOrderId", item.getVparentbillcode());
itemObj.put("bipParentProcessProductionOrderRowNum", item.getVparentmorowno()); itemObj.put("bipParentProcessProductionOrderRowNum", item.getVparentmorowno());
} // }
if("55A2".equals(item.getVfirsttype())){ if("55A2".equals(item.getVfirsttype())){
itemObj.put("bipOriginProcessProductionOrderId", item.getVfirstcode()); itemObj.put("bipOriginProcessProductionOrderId", item.getVfirstcode());
itemObj.put("bipOriginProcessProductionOrderRowNum", item.getVfirstrowno()); itemObj.put("bipOriginProcessProductionOrderRowNum", item.getVfirstrowno());
@ -182,6 +182,9 @@ public class AfterApproveSyncHighpressureMesRule implements IRule<PMOAggVO> {
itemObj.put("contractNum", contractNum); // 合同编号 itemObj.put("contractNum", contractNum); // 合同编号
// itemObj.put("cwarehouseid", item.getAttributeValue("vbdef35")); // 仓库编号 // itemObj.put("cwarehouseid", item.getAttributeValue("vbdef35")); // 仓库编号
Object cwarehouseid = hybo.findColValue("bd_stordoc", "code", " (pk_stordoc = '" + item.getAttributeValue("vdef31") + "') ");
itemObj.put("cwarehouseid", cwarehouseid); // ²Ö¿â±àÂë
Object pk_project = hybo.findColValue("bd_project", "project_name", " pk_project = '" + item.getCprojectid() + "' "); Object pk_project = hybo.findColValue("bd_project", "project_name", " pk_project = '" + item.getCprojectid() + "' ");
itemObj.put("entryName", pk_project); // 项目名称 itemObj.put("entryName", pk_project); // 项目名称
@ -195,10 +198,12 @@ public class AfterApproveSyncHighpressureMesRule implements IRule<PMOAggVO> {
// 日期信息 // 日期信息
itemObj.put("requiredDate", item.getTrequiredate().toString()); // 需用日期 itemObj.put("requiredDate", item.getTrequiredate().toString()); // 需用日期
if("55A2".equals(item.getVsrctype())){ // if("55A2".equals(item.getVsrctype())){
itemObj.put("bipParentProcessProductionOrderId", item.getVparentbillcode()); // itemObj.put("bipParentProcessProductionOrderId", item.getVparentbillcode());
itemObj.put("bipParentProcessProductionOrderRowNum", item.getVparentmorowno()); // itemObj.put("bipParentProcessProductionOrderRowNum", item.getVparentmorowno());
} // }
itemObj.put("bipParentProcessProductionOrderId", item.getVparentbillcode());
itemObj.put("bipParentProcessProductionOrderRowNum", item.getVparentmorowno());
if("55A2".equals(item.getVfirsttype())){ if("55A2".equals(item.getVfirsttype())){
itemObj.put("bipOriginProcessProductionOrderId", item.getVfirstcode()); itemObj.put("bipOriginProcessProductionOrderId", item.getVfirstcode());
itemObj.put("bipOriginProcessProductionOrderRowNum", item.getVfirstrowno()); itemObj.put("bipOriginProcessProductionOrderRowNum", item.getVfirstrowno());