备料计划单据类型是整单委外的,不需要推送mes
This commit is contained in:
parent
0f15d7eb2a
commit
32e82f54c3
|
|
@ -80,6 +80,12 @@ public class AfterApproveRuleHighpressureMes implements IRule<AggPickmVO> {
|
||||||
if (checkIfOrg(orgCode, configParams)) {
|
if (checkIfOrg(orgCode, configParams)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
// 备料计划单据类型是整单委外的备料计划不需要推送mes
|
||||||
|
String billtypesql = " select pk_billtypecode from bd_billtype where pk_billtypeid='" + pickmHeadVO.getVbusitypeid() + "'";
|
||||||
|
Map<String, Object> sourcebilltype = (Map<String, Object>) baseDAO.executeQuery(billtypesql, new MapProcessor());
|
||||||
|
if ("55A3-0002".equals(sourcebilltype.get("pk_billtypecode"))) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
JSONObject singleObj = new JSONObject();
|
JSONObject singleObj = new JSONObject();
|
||||||
// 创建子项数组
|
// 创建子项数组
|
||||||
JSONArray contentArray = new JSONArray();
|
JSONArray contentArray = new JSONArray();
|
||||||
|
|
|
||||||
|
|
@ -115,6 +115,12 @@ public class AfterPickmRuleHighpressureRule implements IRule<PMOAggVO> {
|
||||||
if (checkIfOrg(orgCode, configParams)) {
|
if (checkIfOrg(orgCode, configParams)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
// 备料计划单据类型是整单委外的备料计划不需要推送mes
|
||||||
|
String billtypesql = " select pk_billtypecode from bd_billtype where pk_billtypeid='" + pickmHeadVO.getVbusitypeid() + "'";
|
||||||
|
Map<String, Object> sourcebilltype = (Map<String, Object>) baseDAO.executeQuery(billtypesql, new MapProcessor());
|
||||||
|
if ("55A3-0002".equals(sourcebilltype.get("pk_billtypecode"))) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
JSONObject singleObj = new JSONObject();
|
JSONObject singleObj = new JSONObject();
|
||||||
// 创建子项数组
|
// 创建子项数组
|
||||||
JSONArray contentArray = new JSONArray();
|
JSONArray contentArray = new JSONArray();
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONArray;
|
import com.alibaba.fastjson.JSONArray;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.alibaba.fastjson.serializer.SerializerFeature;
|
import com.alibaba.fastjson.serializer.SerializerFeature;
|
||||||
|
import nc.bs.businessevent.bd.BDCommonEvent;
|
||||||
import nc.bs.dao.BaseDAO;
|
import nc.bs.dao.BaseDAO;
|
||||||
import nc.bs.dao.DAOException;
|
import nc.bs.dao.DAOException;
|
||||||
import nc.bs.framework.common.NCLocator;
|
import nc.bs.framework.common.NCLocator;
|
||||||
|
|
@ -66,12 +67,18 @@ public class SyncGyMesPickmUtil {
|
||||||
for (AggPickmVO vo : useVOs) {
|
for (AggPickmVO vo : useVOs) {
|
||||||
PickmHeadVO pickmHeadVO = vo.getParentVO();
|
PickmHeadVO pickmHeadVO = vo.getParentVO();
|
||||||
PickmItemVO[] itemVOS = (PickmItemVO[]) vo.getChildrenVO();
|
PickmItemVO[] itemVOS = (PickmItemVO[]) vo.getChildrenVO();
|
||||||
// 判断物料的业务单元是否是高压公司,不是则跳过
|
// 判断备料计划的业务单元是否是高压公司,不是则跳过
|
||||||
String pkOrg = pickmHeadVO.getPk_org();
|
String pkOrg = pickmHeadVO.getPk_org();
|
||||||
String orgCode = MyHelper.transferField(OrgVO.getDefaultTableName(), OrgVO.CODE, OrgVO.PK_ORG, pkOrg);
|
String orgCode = MyHelper.transferField(OrgVO.getDefaultTableName(), OrgVO.CODE, OrgVO.PK_ORG, pkOrg);
|
||||||
if (checkIfOrg(orgCode, configParams)) {
|
if (checkIfOrg(orgCode, configParams)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
// 备料计划单据类型是整单委外的备料计划不需要推送mes
|
||||||
|
String billtypesql = " select pk_billtypecode from bd_billtype where pk_billtypeid='" + pickmHeadVO.getVbusitypeid() + "'";
|
||||||
|
Map<String, Object> sourcebilltype = (Map<String, Object>) baseDAO.executeQuery(billtypesql, new MapProcessor());
|
||||||
|
if ("55A3-0002".equals(sourcebilltype.get("pk_billtypecode"))) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
JSONObject singleObj = new JSONObject();
|
JSONObject singleObj = new JSONObject();
|
||||||
// ´´½¨×ÓÏîÊý×é
|
// ´´½¨×ÓÏîÊý×é
|
||||||
JSONArray contentArray = new JSONArray();
|
JSONArray contentArray = new JSONArray();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue