| | |
| | | if (param.get("status") != null) { |
| | | status = Integer.parseInt(param.get("status").toString()); |
| | | } |
| | | |
| | | Long director = null; |
| | | if (deptId==null && userId == null){ |
| | | if (getRole().getId()==3){ |
| | | userId = getUserId(); |
| | | }else if (getRole().getId()==2){ |
| | | deptId = getDeptId(); |
| | | userId = null; |
| | | } |
| | | director = getUserId(); |
| | | } |
| | | |
| | | return R.ok(orderService.getPage(new Page<>(curr, limit) |
| | | , getHostId() |
| | | , deptId == null ? (userId == null? getDeptId().toString(): null) : String.valueOf(deptId) |
| | | , deptId == null ? null : String.valueOf(deptId) |
| | | , userId |
| | | , director |
| | | , condition |
| | | , status) |
| | | ); |
| | |
| | | , getHostId() |
| | | , role.judgeLeader() ? String.valueOf(user.getDeptId()) : null |
| | | , user.getId() |
| | | , null |
| | | , condition |
| | | , 0); |
| | | List<KeyValueVo> vos = new ArrayList<>(); |