自动化立体仓库 - WMS系统
zhangc
2025-01-08 78474bd1c29790ef08919e141acfa12157dbb6cf
src/main/java/com/zy/asrs/controller/LocMastController.java
@@ -136,18 +136,18 @@
                    adjDetl.setAppeTime(now);
                    adjDetl.setAppeUser(getUserId());
                    if (!adjDetlService.insert(adjDetl)) {
                        throw new CoolException("服务器错误,请联系管理员");
                        throw new CoolException("调整记录修改失败");
                    }
                }
                if (!locDetlService.delete(new EntityWrapper<LocDetl>().eq("loc_no", locMast.getLocNo()))) {
                    throw new CoolException("服务器错误,请联系管理员");
                    throw new CoolException("库位明细修改失败");
                }
            }
        }
        locMast.setModiUser(getUserId());
        locMast.setModiTime(now);
        if(!locMastService.updateById(locMast)) {
            throw new CoolException("服务器错误,请联系管理员");
            throw new CoolException("库位状态修改失败");
        }
        return R.ok();
    }