| | |
| | | try { |
| | | List<LocMast> locMasts = locMastService.selectList(new EntityWrapper<LocMast>() |
| | | .eq("fire_status", 1) |
| | | .eq("loc_sts", "F")); |
| | | Integer ioType = 101; //移库 |
| | | .andNew() |
| | | .eq("loc_sts", "F") |
| | | .or() |
| | | .eq("loc_sts", "R")); |
| | | Integer ioType = 101; //出库 |
| | | Date now = new Date(); |
| | | //优先级99,移库到0102501 |
| | | for(LocMast locMast : locMasts){ |
| | |
| | | if (!locMastService.updateById(locMast)) { |
| | | throw new CoolException("预约库位状态失败,库位号:"+locMast.getLocNo()); |
| | | } |
| | | }else if(locMast.getLocSts().equals("R")){ |
| | | |
| | | } else { |
| | | throw new CoolException(locMast.getLocNo() + "库位不是在库状态"); |
| | | } |