| | |
| | | BaseParam baseParam = buildParam(map, BaseParam.class); |
| | | PageParam<Bus, BaseParam> pageParam = new PageParam<>(baseParam, Bus.class); |
| | | QueryWrapper<Bus> wrapper = pageParam.buildWrapper(true); |
| | | if (createTimeDesc(pageParam.getOrders())) { |
| | | wrapper.last(businessSortService.getSql(BusStsType.class, "bus_sts")); |
| | | if (hasCreateTimeDesc(pageParam.getOrders())) { |
| | | wrapper.last(businessSortService.getOrderBySql(BusStsType.class, "bus_sts")); |
| | | } |
| | | PageParam<Bus, BaseParam> page = busService.page(pageParam, wrapper); |
| | | for (Bus record : page.getRecords()) { |