|
|
|
|
|
|
|
|
if (query.getLevel() != null && query.getLevel() > 0) { |
|
|
if (query.getLevel() != null && query.getLevel() > 0) { |
|
|
queryWrapper.eq("level", query.getLevel()); |
|
|
queryWrapper.eq("level", query.getLevel()); |
|
|
} |
|
|
} |
|
|
|
|
|
// 区划ID |
|
|
|
|
|
if (query.getDriverArea() != null) { |
|
|
|
|
|
List<BigInteger> cityIds = lsCityService.getChildCityIds(query.getDriverArea()); |
|
|
|
|
|
// 加入当前选中的区划 |
|
|
|
|
|
cityIds.add(query.getDriverArea()); |
|
|
|
|
|
queryWrapper.in("driver_area", cityIds); |
|
|
|
|
|
} |
|
|
queryWrapper.eq("mark", 1); |
|
|
queryWrapper.eq("mark", 1); |
|
|
queryWrapper.orderByDesc("id"); |
|
|
queryWrapper.orderByDesc("id"); |
|
|
IPage<TauvDriver> page = new Page<>(query.getPage(), query.getPageSize()); |
|
|
IPage<TauvDriver> page = new Page<>(query.getPage(), query.getPageSize()); |