mmpac: 优化生产订单同步到MES的逻辑
- 修改了同步条件,只同步srctype不为"55A2"的行 - 增加了跳过同步的警告日志,提高可追踪性
This commit is contained in:
parent
ecd768ed3a
commit
caf9378ad0
|
@ -72,8 +72,10 @@ public class AfterApproveRuleSyncMes implements IRule<PMOAggVO> {
|
||||||
for (PMOItemVO item : bodys) {
|
for (PMOItemVO item : bodys) {
|
||||||
obmlog.debug("处理生产订单行 " + item.getVrowno());
|
obmlog.debug("处理生产订单行 " + item.getVrowno());
|
||||||
obmlog.debug(item);
|
obmlog.debug(item);
|
||||||
if (item.getVparentbillid() == null || item.getVparentbillid().equals("~")) {
|
if (!item.getVsrctype().equals("55A2")) {
|
||||||
syncOrderItemToMes(head, item);
|
syncOrderItemToMes(head, item);
|
||||||
|
}else {
|
||||||
|
obmlog.warn("生产订单 " + head.getVbillcode() + " 行 " + item.getVrowno() + " 跳过同步:不是成品");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue