| | |
| | | @RequestMapping(value = "/locMast/sts") |
| | | @Synchronized |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit) { |
| | | @RequestParam(defaultValue = "100000") Integer limit) { |
| | | EntityWrapper<LocMast> wrapper = new EntityWrapper<>(); |
| | | return R.ok(locMastService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | Page<LocMast> locMastPage = locMastService.selectPage(new Page<>(curr, limit), wrapper); |
| | | List<Object> list = new ArrayList<>(); |
| | | for (LocMast locmast : locMastPage.getRecords()) { |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | | map.put("sts", locmast.getLocSts()); |
| | | map.put("loc", locmast.getLocNo()); |
| | | list.add(map); |
| | | } |
| | | return R.ok(list); |
| | | } |
| | | |
| | | |