整单委外类型的备料计划不推MES 优化

This commit is contained in:
houyi 2025-11-13 11:21:01 +08:00
parent 458bfd8185
commit 3b996941f7
3 changed files with 3 additions and 21 deletions

View File

@ -80,13 +80,7 @@ public class AfterApproveRuleHighpressureMes implements IRule<AggPickmVO> {
if (checkIfOrg(orgCode, configParams)) {
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;
}
// 期初类型的单据不推MES其余类型推MES
// 期初整单委外类型的单据不推MES其余类型推MES
String billType = pickmHeadVO.getVbusitype();
if (checkBillType(billType, configParams)) {
continue;

View File

@ -115,13 +115,7 @@ public class AfterPickmRuleHighpressureRule implements IRule<PMOAggVO> {
if (checkIfOrg(orgCode, configParams)) {
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;
}
// 期初类型的单据不推MES其余类型推MES
// 期初整单委外类型的单据不推MES其余类型推MES
String billType = pickmHeadVO.getVbusitype();
if (checkBillType(billType, configParams)) {
continue;

View File

@ -73,13 +73,7 @@ public class SyncGyMesPickmUtil {
if (checkIfOrg(orgCode, configParams)) {
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;
}
// 期初类型的单据不推MES其余类型推MES
// 期初整单委外的单据不推MES其余类型推MES
String billType = pickmHeadVO.getVbusitype();
if (checkBillType(billType, configParams)) {
continue;