|
|
@@ -10,10 +10,7 @@ import com.tuoheng.admin.entity.Section; |
|
|
|
import com.tuoheng.admin.entity.Structure; |
|
|
|
import com.tuoheng.admin.entity.User; |
|
|
|
import com.tuoheng.admin.enums.RoleEnum; |
|
|
|
import com.tuoheng.admin.mapper.RoadInformationMapper; |
|
|
|
import com.tuoheng.admin.mapper.SectionMapper; |
|
|
|
import com.tuoheng.admin.mapper.StructureMapper; |
|
|
|
import com.tuoheng.admin.mapper.UserMapper; |
|
|
|
import com.tuoheng.admin.mapper.*; |
|
|
|
import com.tuoheng.admin.query.StructureQuery; |
|
|
|
import com.tuoheng.admin.service.IStructureService; |
|
|
|
import com.tuoheng.admin.utils.CurrentUserUtil; |
|
|
@@ -51,6 +48,9 @@ public class StructureServiceImpl extends BaseServiceImpl<StructureMapper, Struc |
|
|
|
@Autowired |
|
|
|
private UserMapper userMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private DeptMapper deptMapper; |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public JsonResult queryPage(StructureQuery query) { |
|
|
@@ -94,9 +94,13 @@ public class StructureServiceImpl extends BaseServiceImpl<StructureMapper, Struc |
|
|
|
pageData.setRecords(list); |
|
|
|
|
|
|
|
} |
|
|
|
//如果是部门管理员或普通用户,查询本部门包含的路段及路段对应的构造物 |
|
|
|
//如果是部门管理员或普通用户,查询本部门及子部门包含的路段及路段对应的构造物 |
|
|
|
if(RoleEnum.ADMIN.getCode() == roleId || RoleEnum.ORDINARY_USER.getCode() == roleId){ |
|
|
|
|
|
|
|
//获取当前登录用户对应的部门及子部门 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|