| | |
| | | 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() + "'"); |
| | |
| | | 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); |
| | | } |
| | | } |
| | | } |