自动化立体仓库 - WMS系统
lty
2025-03-14 83d6be1ca1ee0197993e76e46d4e99e805c057b0
src/main/java/com/zy/third/erp/task/ERPInHedTBScheduler.java
@@ -44,7 +44,7 @@
        if (!inHeds.isEmpty()) {
            for (InHedTB inHed : inHeds) {
                if (!Cools.isEmpty(inHed.getTemp3()) && inHed.getTemp3().equals("fault")) {
                    continue;
                    //continue;
                }
                HashMap<String, String> condition = new HashMap<>();
                condition.put("BillNo", "'" + inHed.getBillNo() + "'");
@@ -52,16 +52,19 @@
                HashMap<String, Object> hedAndDet = new HashMap<>();
                hedAndDet.put("hed", inHed);
                hedAndDet.put("det", inDetTBS);
                if (inDetTBS == null || inDetTBS.isEmpty()) {
                    continue;
                }
                try {
                    inMS.createInOrder(inHed, inDetTBS);
                    log.info("入库单据成功,{}", inHed);
                    move(hedAndDet);
                } catch (Exception e) {
                    e.printStackTrace();
                    log.info(e.getMessage());
                    //e.printStackTrace();
                    String sql = "UPDATE erp_InHedTB SET Temp3 = 'fault' WHERE BillNo = '" + inHed.getBillNo() + "'";
                    erpSqlServer.update(sql);
                        erpSqlServer.update(sql);
                }
                log.info("入库单据成功,{}", inHed);
                move(hedAndDet);
            }
        }
    }
@@ -74,7 +77,6 @@
        HashMap<String, String> condition = new HashMap<>();
        condition.put("BillNo", "'" + hed.getBillNo() + "'");
        erpSqlServer.delete(InHedTB.class, condition);
        for (InDetTB det : dets) {
            HashMap<String, String> condition2 = new HashMap<>();
            condition2.put("BillNo", "'" + det.getBillNo() + "'");