| | |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param) throws UnsupportedEncodingException { |
| | | condition = condition.trim(); |
| | | if(!Cools.isEmpty(condition)){ |
| | | condition = condition.trim(); |
| | | } |
| | | QueryWrapper<Order> wrapper = new QueryWrapper<>(); |
| | | excludeTrash(param); |
| | | wrapper.eq("status", 1); |
| | |
| | | |
| | | param.remove("order_no"); |
| | | allLike(Order.class, param.keySet(), wrapper, condition); |
| | | wrapper.orderByDesc("create_time"); |
| | | return R.ok(orderService.page(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |