|
|
@@ -8,6 +8,7 @@ import com.taauav.admin.entity.LsAdmin; |
|
|
|
import com.taauav.admin.entity.TauvEquipment; |
|
|
|
import com.taauav.admin.mapper.LsAdminMapper; |
|
|
|
import com.taauav.admin.query.TauvDriverQuery; |
|
|
|
import com.taauav.admin.service.ILsCityService; |
|
|
|
import com.taauav.admin.service.ISysCityService; |
|
|
|
import com.taauav.admin.vo.TauvDriverListVo; |
|
|
|
import com.taauav.common.bean.Response; |
|
|
@@ -55,6 +56,9 @@ public class TauvDriverServiceImpl extends BaseServiceImpl<TauvDriverMapper, Tau |
|
|
|
@Autowired |
|
|
|
private LsAdminMapper lsAdminMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private ILsCityService lsCityService; |
|
|
|
|
|
|
|
/** |
|
|
|
* 获取河道列表 |
|
|
|
* |
|
|
@@ -268,7 +272,17 @@ public class TauvDriverServiceImpl extends BaseServiceImpl<TauvDriverMapper, Tau |
|
|
|
QueryWrapper queryWrapper = new QueryWrapper(); |
|
|
|
// 区划ID |
|
|
|
if (map.containsKey("driverArea") && !StringUtils.isEmpty(map.get("driverArea"))) { |
|
|
|
queryWrapper.eq("driver_area", BigInteger.valueOf(Long.valueOf(map.get("driverArea").toString()))); |
|
|
|
BigInteger driverArea = BigInteger.valueOf(Long.valueOf(map.get("driverArea").toString())); |
|
|
|
// 获取所有自己区划ID |
|
|
|
List<BigInteger> driverAreaList = new ArrayList<>(); |
|
|
|
driverAreaList.add(driverArea); |
|
|
|
List<BigInteger> cityIdsList = lsCityService.getChildCityIds(driverArea); |
|
|
|
if (!cityIdsList.isEmpty()) { |
|
|
|
cityIdsList.forEach(item -> { |
|
|
|
driverAreaList.add(item); |
|
|
|
}); |
|
|
|
} |
|
|
|
queryWrapper.in("driver_area", driverAreaList); |
|
|
|
} |
|
|
|
// 河流名称 |
|
|
|
if (map.containsKey("name") && !StringUtils.isEmpty(map.get("name"))) { |