自动化立体仓库 - WMS系统
skyouc
3 天以前 a6750821eef3ce19069e5130df59ffe0ef3318ab
src/main/java/com/zy/asrs/service/impl/LocAroundBindServiceImpl.java
@@ -64,7 +64,6 @@
        // 校验库位是否已绑定
        for (LocMast mast : locMasts) {
            LocAroundBind aroundBind = this.selectOne(new EntityWrapper<LocAroundBind>()
                    .eq("dev_no", params.getDevNo())
                    .eq("b_loc_no", mast.getLocNo()));
            if (!Objects.isNull(aroundBind)) {
                continue;
@@ -76,6 +75,16 @@
            if (!this.insert(bind)) {
                throw new CoolException("绑定库位失败");
            }
            LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no", bind.getBLocNo()));
            locMast.setLocSts(LocStsType.LOC_STS_TYPE_X.type);
            locMast.setDeleted(1);
            locMast.setFrozen(1);
            if (!locMastService.updateById(locMast)) {
                return R.error("原库禁用失败!!");
            }
        }
        return R.ok("绑定库位成功");
    }