|
|
@@ -83,6 +83,13 @@ public class TauvDriverServiceImpl extends BaseServiceImpl<TauvDriverMapper, Tau |
|
|
|
if (query.getLevel() != null && query.getLevel() > 0) { |
|
|
|
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.orderByDesc("id"); |
|
|
|
IPage<TauvDriver> page = new Page<>(query.getPage(), query.getPageSize()); |