|
|
|
|
|
|
|
|
import com.taauav.admin.entity.TauvDriverPoint; |
|
|
import com.taauav.admin.entity.TauvDriverPoint; |
|
|
import com.taauav.admin.mapper.TauvDriverPointMapper; |
|
|
import com.taauav.admin.mapper.TauvDriverPointMapper; |
|
|
import com.taauav.admin.service.ISysCityService; |
|
|
import com.taauav.admin.service.ISysCityService; |
|
|
import com.taauav.admin.service.ITauvDriverPointService; |
|
|
|
|
|
import com.taauav.app.mapper.DriverMapper; |
|
|
import com.taauav.app.mapper.DriverMapper; |
|
|
import com.taauav.app.query.DriverQuery; |
|
|
import com.taauav.app.query.DriverQuery; |
|
|
import com.taauav.app.service.IDriverService; |
|
|
import com.taauav.app.service.IDriverService; |
|
|
|
|
|
|
|
|
import com.taauav.app.vo.DriverListVo; |
|
|
import com.taauav.app.vo.DriverListVo; |
|
|
import com.taauav.common.bean.Response; |
|
|
import com.taauav.common.bean.Response; |
|
|
import com.taauav.common.util.ShiroUtils; |
|
|
import com.taauav.common.util.ShiroUtils; |
|
|
|
|
|
import com.taauav.front.entity.UserAdmin; |
|
|
|
|
|
import com.taauav.front.mapper.UserAdminMapper; |
|
|
import com.taauav.front.service.IUserAuthGroupService; |
|
|
import com.taauav.front.service.IUserAuthGroupService; |
|
|
import org.springframework.beans.BeanUtils; |
|
|
import org.springframework.beans.BeanUtils; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
|
|
|
|
@Autowired |
|
|
@Autowired |
|
|
private TauvDriverPointMapper driverPointMapper; |
|
|
private TauvDriverPointMapper driverPointMapper; |
|
|
@Autowired |
|
|
@Autowired |
|
|
|
|
|
private UserAdminMapper userAdminMapper; |
|
|
|
|
|
@Autowired |
|
|
private Response response; |
|
|
private Response response; |
|
|
|
|
|
|
|
|
@Value("${server.IMAGE_URL}") |
|
|
@Value("${server.IMAGE_URL}") |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public Response getDriverList(DriverQuery query) { |
|
|
public Response getDriverList(DriverQuery query) { |
|
|
|
|
|
|
|
|
|
|
|
UserAdmin userAdmin = userAdminMapper.selectById(ShiroUtils.getAdminId()); |
|
|
// 数据权限 |
|
|
// 数据权限 |
|
|
List<BigInteger> driverAreaList = userAuthGroupService.getDriverAreaList(ShiroUtils.getAdminId()); |
|
|
|
|
|
|
|
|
List<BigInteger> driverAreaList = userAuthGroupService.getDriverListByDataAuth(userAdmin.getDriverArea()); |
|
|
BigInteger[] driverArea = driverAreaList.toArray(new BigInteger[driverAreaList.size()]); |
|
|
BigInteger[] driverArea = driverAreaList.toArray(new BigInteger[driverAreaList.size()]); |
|
|
|
|
|
|
|
|
// 查询条件 |
|
|
// 查询条件 |