Procházet zdrojové kódy

法律顾问查询

18792927508 před 2 roky
rodič
revize
daf7621503

+ 6
- 2
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java Zobrazit soubor

147
                 }
147
                 }
148
                 if (role.getRoleName().equals("法律顾问")) {
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
                     caseApplication.setDeptIds(deptIds);
153
                     caseApplication.setDeptIds(deptIds);
152
                 }
154
                 }
153
                 if (StrUtil.isEmpty(caseApplication.getNameId()) && role.getRoleName().equals("申请人")) {
155
                 if (StrUtil.isEmpty(caseApplication.getNameId()) && role.getRoleName().equals("申请人")) {
205
             }
207
             }
206
             if(role.getRoleName().equals("法律顾问")){
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
                 caseApplication.setDeptIds(deptIds);
213
                 caseApplication.setDeptIds(deptIds);
210
             }
214
             }
211
             if(StrUtil.isEmpty(caseApplication.getNameId())&&role.getRoleName().equals("申请人")){
215
             if(StrUtil.isEmpty(caseApplication.getNameId())&&role.getRoleName().equals("申请人")){