wip:PLM匹配

This commit is contained in:
zzs01@yunemao.com 2024-09-09 17:58:30 +08:00
parent a9e19605a4
commit fc74f1b690

View File

@ -62,7 +62,8 @@ public class MatchingPLMChangeUpdateTaskEdit extends AbstractTask {
Date stoptime = plm.getDate("yem_stoptime");
if (YEM.isEmpty(stoptime)) {
plm.set("yem_enablesta", bom_enablesta);
plm.set("yem_stoptime", new Date());
Date downdate = bom.getDate("yem_downdate");
plm.set("yem_stoptime", downdate);
} else {
logger.info("停用_已有时间不更新{}{}", plm_billno, plm_parent);
}
@ -80,8 +81,9 @@ public class MatchingPLMChangeUpdateTaskEdit extends AbstractTask {
logger.info("启用_PLM匹配到BOM{} {}, {} {}, {} {}, {} {}", plm_billno, bom_billno,plm_after_parent_now, bom_before_parent_no, plm_after_child_now, bom_before_child_no, plm_after_qty, bom_before_qty);
Date starttime = plm.getDate("yem_starttime");
if (YEM.isEmpty(starttime)) {
Date enableddate = bom.getDate("yem_enableddate");
plm.set("yem_enablesta", bom_enablesta);
plm.set("yem_starttime", new Date());
plm.set("yem_starttime", enableddate);
} else {
logger.info("启用_已有时间不更新{}{}", plm_billno, plm_parent);
}