|
|
|
@ -164,19 +164,14 @@ public class ManualScoreServiceImpl extends BaseServiceImpl<ManualScoreDao, Manu |
|
|
|
|
|
|
|
// 用户所选部门id
|
|
|
|
List<Long> dataScopeDeptList = new ArrayList<>(); |
|
|
|
|
|
|
|
List<Long> deptIdList = SecurityUser.getUser().getDeptIdList(); //获取用户权限
|
|
|
|
UserSysDeptInfoFormDTO userSysDeptInfoFormDTO = new UserSysDeptInfoFormDTO(); |
|
|
|
userSysDeptInfoFormDTO.setDeptIdList(deptIdList); |
|
|
|
Result<List<UserSysDeptInfoResultDTO>> deptTypeKeys =adminFeignClient.queryUserSysDeptTypeKey(userSysDeptInfoFormDTO); |
|
|
|
|
|
|
|
if (!("".equals(params.get("deptId")))){ //根据选择部门 项导出模板
|
|
|
|
for (int i = 0; i < deptTypeKeys.getData().size(); i++){ |
|
|
|
if (deptType.equals(deptTypeKeys.getData().get(i).getTypeKey())){ |
|
|
|
dataScopeDeptList.add(deptTypeKeys.getData().get(i).getId()); |
|
|
|
} |
|
|
|
} |
|
|
|
long deptId = Long.valueOf(params.get("deptId").toString()); |
|
|
|
dataScopeDeptList.add(deptId); |
|
|
|
} else { //根据默认数据权限导出模板
|
|
|
|
List<Long> deptIdList = SecurityUser.getUser().getDeptIdList(); //获取用户权限
|
|
|
|
UserSysDeptInfoFormDTO userSysDeptInfoFormDTO = new UserSysDeptInfoFormDTO(); |
|
|
|
userSysDeptInfoFormDTO.setDeptIdList(deptIdList); |
|
|
|
Result<List<UserSysDeptInfoResultDTO>> deptTypeKeys =adminFeignClient.queryUserSysDeptTypeKey(userSysDeptInfoFormDTO); |
|
|
|
for (int i = 0; i < deptTypeKeys.getData().size(); i++){ |
|
|
|
if (deptType.equals(deptTypeKeys.getData().get(i).getTypeKey())){ |
|
|
|
dataScopeDeptList.add(deptTypeKeys.getData().get(i).getId()); |
|
|
|
|