Przeglądaj źródła

修改构造物数据权限

tags/v1.0.0^2
chengwang 1 rok temu
rodzic
commit
6bc8616cc6
1 zmienionych plików z 9 dodań i 5 usunięć
  1. +9
    -5
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/StructureServiceImpl.java

+ 9
- 5
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/StructureServiceImpl.java Wyświetl plik

@@ -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){

//获取当前登录用户对应的部门及子部门



}



Ładowanie…
Anuluj
Zapisz