| | |
| | | List<LocMast> locMasts = locMastService.selectList(new EntityWrapper<LocMast>() |
| | | .between("row1", params.getStartRow(), params.getEndRow()) |
| | | .between("bay1", params.getStartBay(), params.getEndBay()) |
| | | .eq("frozen", 0).eq("deleted", 0) |
| | | .between("lev1", params.getStartLev(), params.getEndLev()) |
| | | .ne("loc_sts", LocStsType.LOC_STS_TYPE_X.type)); |
| | | if (Cools.isEmpty(locMasts)) { |
| | |
| | | } |
| | | LocAroundBind bind = new LocAroundBind(); |
| | | bind.setDevNo(params.getDevNo()); |
| | | bind.setBLocNo(mast.getLocNo()); |
| | | bind.setBlocNo(mast.getLocNo()); |
| | | bind.setDevId(basDevice.getId()); |
| | | if (!this.insert(bind)) { |
| | | throw new CoolException("绑定库位失败"); |
| | | } |
| | | |
| | | LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no", bind.getBLocNo())); |
| | | 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); |