| | |
| | | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.core.common.Cools; |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.entity.*; |
| | | import com.zy.asrs.service.*; |
| | | import com.zy.asrs.task.AbstractHandler; |
| | |
| | | case 10: |
| | | // 修改库位状态=D |
| | | if (locMast.getLocSts().equals("S") || locMast.getLocSts().equals("Q")) { |
| | | if (!Cools.isEmpty(wrkMast.getBarcode())) { |
| | | locMast.setBarcode(wrkMast.getBarcode()); |
| | | if (Cools.isEmpty(wrkMast.getBarcode())) { |
| | | throw new CoolException("空板入库条码不能为空"); |
| | | } |
| | | locMast.setBarcode(wrkMast.getBarcode()); |
| | | if (Integer.parseInt(wrkMast.getBarcode().substring(0,1))==5){ |
| | | locMast.setLocType2((short)5); |
| | | }else if (Integer.parseInt(wrkMast.getBarcode().substring(0,1))==6){ |
| | | locMast.setLocType2((short)6); |
| | | }else if(Integer.parseInt(wrkMast.getBarcode().substring(0,1))==7){ |
| | | locMast.setLocType2((short)7); |
| | | }else if(Integer.parseInt(wrkMast.getBarcode().substring(0,1))==8){ |
| | | locMast.setLocType2((short)8); |
| | | } |
| | | locMast.setLocSts("D"); |
| | | locMast.setIoTime(now); |
| | |
| | | // 修改源库位状态 R ===>> O |
| | | if (locMast.getLocSts().equals("R")) { |
| | | locMast.setLocSts("O"); |
| | | // locMast.setBarcode("");//托盘与库位绑定 |
| | | locMast.setBarcode("");//托盘与库位绑定 |
| | | locMast.setModiTime(now); |
| | | locMast.setIoTime(now); |
| | | if (!locMastService.updateById(locMast)) { |
| | |
| | | // 修改库位状态 R ===>> O |
| | | if (locMast.getLocSts().equals("R")) { |
| | | locMast.setLocSts("O"); |
| | | // locMast.setBarcode("");//托盘与库位绑定 |
| | | locMast.setBarcode("");//托盘与库位绑定 |
| | | locMast.setLocType2((short)0); |
| | | locMast.setModiTime(now); |
| | | locMast.setIoTime(now); |
| | | if (!locMastService.updateById(locMast)) { |