整单委外类型的备料计划不推MES 优化
This commit is contained in:
parent
458bfd8185
commit
3b996941f7
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue