| | |
| | | private LocDetlMapper locDetlMapper; |
| | | @Autowired |
| | | private MatService matService; |
| | | @Autowired |
| | | private MonitorLocMapCacheService monitorLocMapCacheService; |
| | | |
| | | @RequestMapping(value = "/locDetl/update") |
| | | public R update1() { |
| | |
| | | // wrapper.and() |
| | | // .where("loc_no like '" +row +"%'"); |
| | | // } |
| | | return R.ok(locDetlService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | R r = R.ok(locDetlService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | monitorLocMapCacheService.clearQuietly(); |
| | | return r; |
| | | } |
| | | |
| | | |
| | |
| | | locDetl.sync(mat); |
| | | } |
| | | } |
| | | monitorLocMapCacheService.clearQuietly(); |
| | | return R.ok().add(stockStatis); |
| | | } |
| | | |
| | |
| | | @RequestMapping("/locDetl/count") |
| | | public R getAllCount(){ |
| | | Integer sum = locDetlService.sum(); |
| | | monitorLocMapCacheService.clearQuietly(); |
| | | return R.ok(sum); |
| | | } |
| | | |
| | | @GetMapping("/locDetl/source") |
| | | public void getSource(){ |
| | | List<LocDetl>list = locDetlService.selectList(null); |
| | | for (LocDetl locDetl : list) { |
| | | LocMast locMast = locMastService.selectById(locDetl.getLocNo()); |
| | | locDetl.setSource(locMast.getLocAttribute()); |
| | | locDetlService.update(locDetl,new EntityWrapper<LocDetl>().eq("loc_no", locDetl.getLocNo())); |
| | | } |
| | | } |
| | | |
| | | } |