|
|
@@ -7,7 +7,6 @@ import com.taauav.admin.entity.TauvDriver; |
|
|
|
import com.taauav.admin.entity.TauvDriverPoint; |
|
|
|
import com.taauav.admin.mapper.TauvDriverPointMapper; |
|
|
|
import com.taauav.admin.service.ISysCityService; |
|
|
|
import com.taauav.admin.service.ITauvDriverPointService; |
|
|
|
import com.taauav.app.mapper.DriverMapper; |
|
|
|
import com.taauav.app.query.DriverQuery; |
|
|
|
import com.taauav.app.service.IDriverService; |
|
|
@@ -15,6 +14,8 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
import com.taauav.app.vo.DriverListVo; |
|
|
|
import com.taauav.common.bean.Response; |
|
|
|
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 org.springframework.beans.BeanUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
@@ -48,6 +49,8 @@ public class DriverServiceImpl extends ServiceImpl<DriverMapper, TauvDriver> imp |
|
|
|
@Autowired |
|
|
|
private TauvDriverPointMapper driverPointMapper; |
|
|
|
@Autowired |
|
|
|
private UserAdminMapper userAdminMapper; |
|
|
|
@Autowired |
|
|
|
private Response response; |
|
|
|
|
|
|
|
@Value("${server.IMAGE_URL}") |
|
|
@@ -62,8 +65,9 @@ public class DriverServiceImpl extends ServiceImpl<DriverMapper, TauvDriver> imp |
|
|
|
@Override |
|
|
|
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()]); |
|
|
|
|
|
|
|
// 查询条件 |