| | |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} else { |
| | | wrapper.orderBy("create_time", false); |
| | | } |
| | | return R.ok(cstmrService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | if (!Cools.isEmpty(param.get("dept_id"))) { |
| | | return R.ok(cstmrService.getPage(new Page<>(curr, limit) |
| | | , getHostId() |
| | | , String.valueOf(param.get("dept_id")) |
| | | , condition) |
| | | ); |
| | | } else { |
| | | if (Cools.isEmpty(param.get("user_id"))) { |
| | | wrapper.eq("user_id", getUserId()); |
| | | } |
| | | return R.ok(cstmrService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |