| | |
| | | import com.core.common.R; |
| | | import com.zy.asrs.entity.LocDetl; |
| | | import com.zy.asrs.entity.LocMast; |
| | | import com.zy.asrs.entity.WrkMast; |
| | | import com.zy.asrs.entity.param.LocMastInitParam; |
| | | import com.zy.asrs.service.LocDetlService; |
| | | import com.zy.asrs.service.LocMastService; |
| | | import com.zy.asrs.service.WrkMastService; |
| | | import com.zy.common.entity.Parameter; |
| | | import com.zy.common.model.Shelves; |
| | | import com.zy.common.web.BaseController; |
| | |
| | | private Integer equipmentCount; |
| | | @Value("${channel.channelMax}") |
| | | private Integer channelMax; |
| | | @Autowired |
| | | private WrkMastService wrkMastService; |
| | | |
| | | @RequestMapping(value = "/locMast/init/pwd") |
| | | public R locMastInitPwd(@RequestParam(required = false) String pwd) { |
| | |
| | | @RequestMapping(value = "/locMast/update/auth") |
| | | @ManagerAuth(memo = "库位修改") |
| | | public R update(LocMast locMast){ |
| | | LocMast locMast1 = locMastService.selectById(locMast.getLocNo()); |
| | | if (locMast.getLocType1()==0){ |
| | | locMast.setLocType1(locMast1.getLocType1()); |
| | | } |
| | | if (!locMast1.getLocType1().equals(locMast.getLocType1())){ |
| | | if (locMast.getRow1()!=2){ |
| | | return R.error("当前操作已被阻止,只允许第二排库位修改库位类型!!!"); |
| | | } |
| | | if (locMast1.getLocType1()==1){ |
| | | return R.error("当前操作已被阻止,测试库位禁止修改库位类型!!!"); |
| | | } |
| | | } |
| | | if (Cools.isEmpty(locMast) || null==locMast.getLocNo()){ |
| | | return R.error(); |
| | | } |
| | |
| | | locDetlService.delete(new EntityWrapper<LocDetl>().eq("loc_no", locMast.getLocNo())); |
| | | } |
| | | } |
| | | if(locMast.getFreeze()==1&&locMast.getPackStatus()==6){ |
| | | locMast.setPackStatus(5); |
| | | locMast.setLocSts("F"); |
| | | wrkMastService.delete(new EntityWrapper<WrkMast>().eq("source_loc_no",locMast.getLocNo())); |
| | | } |
| | | locMast.setModiUser(getUserId()); |
| | | locMast.setModiTime(new Date()); |
| | | locMastService.updateById(locMast); |