自动化立体仓库 - WMS系统
#
Junjie
8 天以前 00a6376e31fea643df9394a90aaf71b8369fd01f
src/main/java/com/zy/asrs/controller/MobileController.java
@@ -61,6 +61,8 @@
    private ManLocDetlMapper manLocDetlMapper;
    @Autowired
    private WrkDetlLogService wrkDetlLogService;
    @Autowired
    private WrkMastLogService wrkMastLogService;
    @Autowired
    private MatService matService;
@@ -290,12 +292,23 @@
    @RequestMapping(value = "/mat/back")
    @ManagerAuth
    public R pdaSearchBack(@RequestParam String barcode) {
        WrkMastLog wrkMastLog = wrkMastLogService.selectOne(new EntityWrapper<WrkMastLog>()
                .eq("barcode", barcode)
                .in("io_type", 101, 103, 107)
                .orderBy("appe_time", false)
        );
        if(null == wrkMastLog) {
            return R.error("未找到此托盘码出库记录");
        }
        List<WrkDetlLog> wrkDetlLogs = wrkDetlLogService.selectList(new EntityWrapper<WrkDetlLog>()
                .eq("wrk_no", wrkMastLog.getWrkNo())
                .eq("zpallet", barcode)
                .orderBy("io_time", false)
        );
        if (wrkDetlLogs.isEmpty()) {
            return R.error("未找到此托盘码出库记录");
            return R.error("未找到此托盘码出库记录明细");
        }
        WrkDetlLog wrkDetlLog = wrkDetlLogs.get(0);
@@ -313,7 +326,8 @@
        matParam.setAnfme2(0.0D);
        matParam.setTiaoma(batch);
        map.put("orderNo", wrkDetlLog.getOrderNo());
        String[] split = wrkDetlLog.getOrderNo().split("-");
        map.put("orderNo", split[0]);
        map.put("matData", matParam);
        return R.ok().add(map);
    }