自动化立体仓库 - WMS系统
#
lty
5 天以前 4641d0443ce979898dc564df2f972547060938fe
src/main/java/com/zy/asrs/service/impl/WorkServiceImpl.java
@@ -1201,15 +1201,17 @@
        // 修改库位状态
        LocMast locMast = locMastService.selectById(locNo);
        if (Cools.isEmpty(locMast)) {
        if (Cools.isEmpty(locMast) && wrkMast.getIoType() != 12) {
            throw new CoolException("取消工作档失败,库位不存在:"+ locNo);
        }
        locMast.setLocSts(locSts);
        locMast.setModiTime(now);
        locMast.setModiUser(userId);
        boolean locMastRes = locMastService.updateById(locMast);
        if (!wrkMastRes || !locMastRes) {
            throw new CoolException("保存数据失败");
        if(wrkMast.getIoType() != 12){
            locMast.setLocSts(locSts);
            locMast.setModiTime(now);
            locMast.setModiUser(userId);
            boolean locMastRes = locMastService.updateById(locMast);
            if (!wrkMastRes || !locMastRes) {
                throw new CoolException("保存数据失败");
            }
        }
    }