自动化立体仓库 - WMS系统
whycq
2024-07-16 a1c235841ddeef9159092a0c261dfc298058743c
src/main/java/com/zy/asrs/controller/MobileController.java
@@ -219,7 +219,7 @@
        }
        String[] batch1 = batch.split("箱号:");
        String[] batch2 = batch1[1].split("规格:");
        batch = batch2[0];
        batch = batch2[0].replaceAll(" ", "");
//        List<Order> orders = orderService.selectorderNoL(batch);
        WrkDetl wrkDetl = wrkDetlService.selectWrkDetlByOrderNoNotNull(batch);
//        WrkDetl wrkDetl = wrkDetlService.selectOne(new EntityWrapper<WrkDetl>().eq("batch", batch).and().ne("order_no","").and().isNotNull("order_no").orderBy("io_time",false));
@@ -248,9 +248,9 @@
            if (Cools.isEmpty(batch)){
                return R.error().add("参数为空");
            }
            String[] batch1 = batch.split("箱号:");
            String[] batch2 = batch1[1].split("规格:");
            batch = batch2[0];
//            String[] batch1 = batch.split("箱号:");
//            String[] batch2 = batch1[1].split("规格:");
//            batch = batch2[0];
            String orderNo = "";
//            WrkDetl wrkDetl = wrkDetlService.selectOne(new EntityWrapper<WrkDetl>().eq("batch", batch).and().ne("order_no","").and().isNotNull("order_no").orderBy("io_time",false));
            WrkDetl wrkDetl = wrkDetlService.selectWrkDetlByOrderNoNotNull(batch);
@@ -279,7 +279,7 @@
            orderDetlService.updateById(orderDetl);
            return R.ok();
        } catch (Exception e){
            return R.error().add(e);
            return R.error().add(e.getMessage());
        }
    }