mmpac: 优化生产订单同步到 MES 系统的逻辑
- 在处理生产订单行时增加日志输出,提高可追踪性 - 修改了对 vparentbillid 为空值的判断逻辑,增加使用 equals("~") 进行比较
This commit is contained in:
parent
14cec2f1a8
commit
5f9bd9ac4a
|
@ -69,10 +69,11 @@ public class AfterApproveRuleSyncMes implements IRule<PMOAggVO> {
|
|||
}
|
||||
|
||||
for (PMOItemVO item : bodys) {
|
||||
if (item.getVparentbillid() == null || item.getVparentbillid().isBlank()) {
|
||||
continue;
|
||||
obmlog.debug("处理生产订单行 " + item.getVrowno());
|
||||
obmlog.debug(item);
|
||||
if (item.getVparentbillid() == null || item.getVparentbillid().equals("~")) {
|
||||
syncOrderItemToMes(head, item);
|
||||
}
|
||||
syncOrderItemToMes(head, item);
|
||||
}
|
||||
}
|
||||
obmlog.info("生产订单同步到MES系统处理完成。");
|
||||
|
|
Loading…
Reference in New Issue