18792927508 2 лет назад
Родитель
Сommit
daf7621503

+ 6
- 2
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java Просмотреть файл

@@ -147,7 +147,9 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
147 147
                 }
148 148
                 if (role.getRoleName().equals("法律顾问")) {
149 149
                     // 查询角色有关的用户部门
150
-                    List<Long> deptIds = sysDeptMapper.selectUserDeptListByRoleId(role.getRoleId());
150
+              //      List<Long> deptIds = sysDeptMapper.selectUserDeptListByRoleId(role.getRoleId());
151
+                    List<Long> deptIds =new ArrayList<>();
152
+                    deptIds.add(sysUser.getDeptId());
151 153
                     caseApplication.setDeptIds(deptIds);
152 154
                 }
153 155
                 if (StrUtil.isEmpty(caseApplication.getNameId()) && role.getRoleName().equals("申请人")) {
@@ -205,7 +207,9 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
205 207
             }
206 208
             if(role.getRoleName().equals("法律顾问")){
207 209
                 // 查询角色有关的用户部门
208
-                List<Long> deptIds = sysDeptMapper.selectUserDeptListByRoleId(role.getRoleId());
210
+               // List<Long> deptIds = sysDeptMapper.selectUserDeptListByRoleId(role.getRoleId());
211
+                List<Long> deptIds =new ArrayList<>();
212
+                deptIds.add(sysUser.getDeptId());
209 213
                 caseApplication.setDeptIds(deptIds);
210 214
             }
211 215
             if(StrUtil.isEmpty(caseApplication.getNameId())&&role.getRoleName().equals("申请人")){