| | |
| | | |
| | | @RequestMapping(value = "/rowLastno/{id}/auth") |
| | | @ManagerAuth |
| | | public R get(@PathVariable("id") String id) { |
| | | return R.ok(rowLastnoService.getById(String.valueOf(id))); |
| | | public R get(@PathVariable("id") Long id) { |
| | | return R.ok(rowLastnoService.getById(id)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/rowLastno/page/auth") |
| | |
| | | @RequestParam(required = false) String timeRange, |
| | | @RequestParam Map<String, Object> param) { |
| | | LambdaQueryWrapper<RowLastno> wrapper = new LambdaQueryWrapper<>(); |
| | | wrapper.eq(RowLastno::getHostId, getHostId()); |
| | | if (!Cools.isEmpty(condition)) { |
| | | wrapper.like(RowLastno::getWhsType, condition); |
| | | } |
| | |
| | | @RequestMapping(value = "/rowLastno/add/auth") |
| | | @ManagerAuth |
| | | public R add(RowLastno rowLastno) { |
| | | rowLastno.setHostId(getHostId()); |
| | | rowLastnoService.save(rowLastno); |
| | | return R.ok(); |
| | | } |
| | |
| | | @ManagerAuth |
| | | public R query(String condition) { |
| | | LambdaQueryWrapper<RowLastno> wrapper = new LambdaQueryWrapper<>(); |
| | | wrapper.eq(RowLastno::getHostId, getHostId()); |
| | | wrapper.like(RowLastno::getWhsType, condition); |
| | | Page<RowLastno> page = rowLastnoService.page(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | |
| | | public R getDataKV(@RequestParam(required = false) String condition) { |
| | | List<KeyValueVo> vos = new ArrayList<>(); |
| | | LambdaQueryWrapper<RowLastno> wrapper = new LambdaQueryWrapper<>(); |
| | | wrapper.eq(RowLastno::getHostId, getHostId()); |
| | | if (!Cools.isEmpty(condition)) { |
| | | wrapper.like(RowLastno::getWhsType, condition); |
| | | } |