自动化立体仓库 - WMS系统
zjj
2024-11-09 7e5af854912e55b679c35f48631af1c104e4521e
src/main/java/com/zy/asrs/controller/MobileController.java
@@ -269,7 +269,19 @@
    @RequestMapping("/comb/auth")
    @ManagerAuth(memo = "组托")
    public R comb(@RequestBody CombParam combParam){
        mobileService.comb(combParam, getUserId());
        if (Cools.isEmpty(combParam.getBarcode(), combParam.getCombMats())) {
            throw new CoolException(BaseRes.PARAM);
        }
        WrkMast wrkMast = wrkMastService.selectOne(new EntityWrapper<WrkMast>()
                .eq("barcode", combParam.getBarcode())
                .eq("io_type", 104)
                .eq("wrk_sts", 14));
        if (Cools.isEmpty(wrkMast)) {
            mobileService.comb(combParam, getUserId());
        }else {
            mobileService.mergeComb(combParam, getUserId());
        }
        return R.ok("组托成功");
    }