| | |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | hostEq(wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | // if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | // wrapper.orderBy("create_time",false); |
| | | wrapper.orderBy("id",false); |
| | | return R.ok(cstmrService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * 返回给前端点击下拉框的数据 |
| | | * @return |
| | | */ |
| | | @RequestMapping("/cstmrUuid/auth") |
| | | public R cstmrUuid(){ |
| | | List<Cstmr> cstmrs = cstmrService.selectList(new EntityWrapper<Cstmr>() |
| | | .orderBy("create_time",false)); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (Cstmr cstmr : cstmrs) { |
| | | Map<String,Object> content = new HashMap<>(); |
| | | content.put("id",cstmr.getId()); |
| | | content.put("value",cstmr.getName()); |
| | | result.add(content); |
| | | } |
| | | return R.ok(result); |
| | | } |
| | | |
| | | } |