高压mes推送优化
This commit is contained in:
parent
d33e5f20fa
commit
76b0efcc3f
|
|
@ -111,9 +111,9 @@ public class AfterApproveSyncHighpressureMesRule implements IRule<PMOAggVO> {
|
||||||
String sql = " select pk_defdoclist from bd_defdoclist where code='zdy-001' and dr=0 ";
|
String sql = " select pk_defdoclist from bd_defdoclist where code='zdy-001' and dr=0 ";
|
||||||
String o = (String) baseDAO.executeQuery(sql, new ColumnProcessor());
|
String o = (String) baseDAO.executeQuery(sql, new ColumnProcessor());
|
||||||
|
|
||||||
Object contractNum = hybo.findColValue("bd_defdoc", "code", " (pk_defdoclist = '" + o + "' and pk_defdoc='" + item.getVdef1() + "') ");
|
// Object contractNum = hybo.findColValue("bd_defdoc", "code", " (pk_defdoclist = '" + o + "' and pk_defdoc='" + item.getVdef1() + "') ");
|
||||||
|
|
||||||
itemObj.put("contractNum", contractNum); // ºÏͬ±àºÅ
|
itemObj.put("contractNum", item.getVdef2()); // ÏúÊÛ¶©µ¥ºÅ
|
||||||
|
|
||||||
Object cwarehouseid = hybo.findColValue("bd_stordoc", "code", " (pk_stordoc = '" + item.getAttributeValue("vbdef35") + "') ");
|
Object cwarehouseid = hybo.findColValue("bd_stordoc", "code", " (pk_stordoc = '" + item.getAttributeValue("vbdef35") + "') ");
|
||||||
|
|
||||||
|
|
@ -162,7 +162,7 @@ public class AfterApproveSyncHighpressureMesRule implements IRule<PMOAggVO> {
|
||||||
itemObj.put("customerMaterialCode", item.getCcustmaterialid()); // 客户物料编码
|
itemObj.put("customerMaterialCode", item.getCcustmaterialid()); // 客户物料编码
|
||||||
itemObj.put("productionBatch", item.getCbatchid()); // 生产批次(按BIP格式)
|
itemObj.put("productionBatch", item.getCbatchid()); // 生产批次(按BIP格式)
|
||||||
itemObj.put("productionBatchNumber", item.getVbatchcode()); // 生产批次号(按BIP格式)
|
itemObj.put("productionBatchNumber", item.getVbatchcode()); // 生产批次号(按BIP格式)
|
||||||
|
itemObj.put("orderQuantity", item.getNastnum().doubleValue());
|
||||||
contentArray.add(itemObj); // 将子项添加到数组
|
contentArray.add(itemObj); // 将子项添加到数组
|
||||||
|
|
||||||
flags = "addOrder";
|
flags = "addOrder";
|
||||||
|
|
@ -191,11 +191,15 @@ public class AfterApproveSyncHighpressureMesRule implements IRule<PMOAggVO> {
|
||||||
|
|
||||||
// 日期信息
|
// 日期信息
|
||||||
itemObj.put("requiredDate", item.getTrequiredate().toString()); // 需用日期
|
itemObj.put("requiredDate", item.getTrequiredate().toString()); // 需用日期
|
||||||
|
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("bipOriginProcessProductionOrderId", item.getVsalebillcode());
|
}
|
||||||
itemObj.put("bipOriginProcessProductionOrderRowNum", "");
|
if("55A2".equals(item.getVfirsttype())){
|
||||||
|
itemObj.put("bipOriginProcessProductionOrderId", item.getVfirstcode());
|
||||||
|
itemObj.put("bipOriginProcessProductionOrderRowNum", item.getVfirstrowno());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 物料信息
|
// 物料信息
|
||||||
String mrlsql = "select code,name,graphid,pk_measdoc,materialtype from bd_material where pk_material = '" + cmaterialvid + "' ";
|
String mrlsql = "select code,name,graphid,pk_measdoc,materialtype from bd_material where pk_material = '" + cmaterialvid + "' ";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue