自动化立体仓库 - WMS系统
#
lsh
2024-01-12 634748d87913a4e56ec80dffb9e3361a6e96676a
src/main/java/com/zy/asrs/controller/LocMastController.java
@@ -109,6 +109,18 @@
   @RequestMapping(value = "/locMast/update/auth")
   @ManagerAuth(memo = "库位修改")
    public R update(LocMast locMast){
        LocMast locMast1 = locMastService.selectById(locMast.getLocNo());
        if (locMast.getLocType1()==0){
            locMast.setLocType1(locMast1.getLocType1());
        }
        if (!locMast1.getLocType1().equals(locMast.getLocType1())){
            if (locMast.getRow1()!=2){
                return R.error("当前操作已被阻止,只允许第二排库位修改库位类型!!!");
            }
            if (locMast1.getLocType1()==1){
                return R.error("当前操作已被阻止,测试库位禁止修改库位类型!!!");
            }
        }
        if (Cools.isEmpty(locMast) || null==locMast.getLocNo()){
            return R.error();
        }