| | |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String condition, |
| | | @RequestParam(required = false, value = "dept_id") Long deptId, |
| | | @RequestParam(required = false, value = "user_id") Long userId){ |
| | | @RequestParam(required = false, value = "user_id") Long userId, |
| | | @RequestParam Map<String, Object> param){ |
| | | Integer status = null; |
| | | if (param.get("status") != null) { |
| | | status = Integer.parseInt(param.get("status").toString()); |
| | | } |
| | | return R.ok(orderService.getPage(new Page<>(curr, limit) |
| | | , getHostId() |
| | | , deptId == null ? null : String.valueOf(deptId) |
| | | , userId == null ? getUserId() : userId |
| | | , condition) |
| | | , condition |
| | | , status) |
| | | ); |
| | | } |
| | | |
| | |
| | | , getHostId() |
| | | , role.judgeLeader() ? String.valueOf(user.getDeptId()) : null |
| | | , user.getId() |
| | | , condition); |
| | | , condition |
| | | , null); |
| | | List<KeyValueVo> vos = new ArrayList<>(); |
| | | page.getRecords().forEach(item -> vos.add(new KeyValueVo(item.getName(), item.getId()))); |
| | | return R.ok().add(vos); |