| | |
| | | wrkMastService.updateById(wrkMast); |
| | | //出库为机台工位时,冻结相对有的库位,及相邻库位 |
| | | String s = Utils.convertLocFormat(params.getLocNo()); |
| | | LocAroundBind bind = locAroundBindService.selectOne(new EntityWrapper<LocAroundBind>() |
| | | .eq("b_loc_no", s)); |
| | | if (!Objects.isNull(bind)) { |
| | | bind.setFreeze(1); |
| | | locAroundBindService.updateById(bind); |
| | | //冻结相邻库位 |
| | | Integer[] aroundIds = freezeLocAround(bind.getOrderNo()); |
| | | if (aroundIds != null) { |
| | | for (Integer id : aroundIds) { |
| | | if (id != null && id > 0) { |
| | | LocAroundBind aroundBind = locAroundBindService.selectOne( |
| | | new EntityWrapper<LocAroundBind>() |
| | | .eq("dev_id", bind.getDevId()) |
| | | .eq("order_no", id)); |
| | | if (aroundBind != null) { |
| | | aroundBind.setFreeze(1); |
| | | locAroundBindService.updateById(aroundBind); |
| | | if(Cools.isEmpty(wrkMast.getLocNo())){ |
| | | LocAroundBind bind = locAroundBindService.selectOne(new EntityWrapper<LocAroundBind>() |
| | | .eq("b_loc_no", s)); |
| | | if (!Objects.isNull(bind)) { |
| | | bind.setFreeze(1); |
| | | locAroundBindService.updateById(bind); |
| | | //冻结相邻库位 |
| | | Integer[] aroundIds = freezeLocAround(bind.getOrderNo()); |
| | | if (aroundIds != null) { |
| | | for (Integer id : aroundIds) { |
| | | if (id != null && id > 0) { |
| | | LocAroundBind aroundBind = locAroundBindService.selectOne( |
| | | new EntityWrapper<LocAroundBind>() |
| | | .eq("dev_id", bind.getDevId()) |
| | | .eq("order_no", id)); |
| | | if (aroundBind != null) { |
| | | aroundBind.setFreeze(1); |
| | | locAroundBindService.updateById(aroundBind); |
| | | } |
| | | } |
| | | } |
| | | } |