自动化立体仓库 - WMS系统
#
zc
2024-11-01 a4699af3282d7abe89f9a9be40e8742fdd3b12b3
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() + "'");
@@ -57,9 +57,10 @@
                    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);
                }
            }
        }