| | |
| | | import com.zy.asrs.entity.param.LocMastInitParam; |
| | | import com.zy.asrs.service.LocDetlService; |
| | | import com.zy.asrs.service.LocMastService; |
| | | import com.zy.asrs.service.MonitorLocMapCacheService; |
| | | import com.zy.common.entity.Parameter; |
| | | import com.zy.common.model.Shelves; |
| | | import com.zy.common.web.BaseController; |
| | |
| | | private LocMastService locMastService; |
| | | @Autowired |
| | | private LocDetlService locDetlService; |
| | | @Autowired |
| | | private MonitorLocMapCacheService monitorLocMapCacheService; |
| | | |
| | | @RequestMapping(value = "/locMast/init/pwd") |
| | | public R locMastInitPwd(@RequestParam(required = false) String pwd) { |
| | |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } |
| | | wrapper.orderBy("loc_attribute",false); |
| | | return R.ok(locMastService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | R r = R.ok(locMastService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | monitorLocMapCacheService.clearQuietly(); |
| | | return r; |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper) { |
| | |
| | | return R.parse(BaseRes.REPEAT).add(getComment(LocMast.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | @GetMapping(value = "/locMast/check/column/group1") |
| | | public void group1() { |
| | | List<LocMast> locMasts = locMastService.selectList(new EntityWrapper<LocMast>().eq("row1",9)); |
| | | for (LocMast locMast : locMasts) { |
| | | LocMast locMast1 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1",8).eq("bay1",locMast.getBay1()).eq("lev1",locMast.getLev1())); |
| | | locMast1.setGroup1(locMast.getGroup1()); |
| | | locMastService.updateById(locMast1); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | @RequestMapping(value = "/locMast/init/auth") |