Browse Source

Merge branch 'develop' of http://192.168.11.14:51037/gitadmin/tuoheng_freeway into develop

tags/v1.0.0^2
wanjing 1 year ago
parent
commit
a223815e5b
1 changed files with 6 additions and 8 deletions
  1. +6
    -8
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/road/RoadInformationServiceImpl.java

+ 6
- 8
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/road/RoadInformationServiceImpl.java View File

@@ -162,11 +162,9 @@ public class RoadInformationServiceImpl extends BaseServiceImpl<RoadInformationM
String deptId = user.getDeptId();
//获取公路列表
List<RoadInformation> roadInformationList = new ArrayList<>();
if(null == deptId){
//超级管理员
if(RoleEnum.SUPER_ADMIN.getCode()== user.getRoleId()){
roadInformationList = this.getAllRoadInformationList(tenantId);
}
//超级管理员
if(RoleEnum.SUPER_ADMIN.getCode()== user.getRoleId()){
roadInformationList = this.getAllRoadInformationList(tenantId);
}
//部门管理员
if(RoleEnum.ADMIN.getCode() == user.getRoleId()){
@@ -216,13 +214,13 @@ public class RoadInformationServiceImpl extends BaseServiceImpl<RoadInformationM
* @return
*/
private List<RoadInformation> getAllRoadInformationList(String tenantId) {
List<RoadInformation> roadList = roadInformationMapper.selectList(new LambdaQueryWrapper<RoadInformation>()
List<RoadInformation> roadInformationList = roadInformationMapper.selectList(new LambdaQueryWrapper<RoadInformation>()
.eq(RoadInformation::getTenantId, tenantId)
.eq(RoadInformation::getMark, 1));
if (CollectionUtil.isEmpty(roadList)) {
if (CollectionUtil.isEmpty(roadInformationList)) {
return null;
}
return roadList;
return roadInformationList;
}

/**

Loading…
Cancel
Save