|
|
@ -164,9 +164,24 @@ public class ManualScoreServiceImpl extends BaseServiceImpl<ManualScoreDao, Manu |
|
|
|
|
|
|
|
// 用户所选部门id
|
|
|
|
List<Long> dataScopeDeptList = new ArrayList<>(); |
|
|
|
if (!("".equals(params.get("deptId")))){ |
|
|
|
long deptId = Long.valueOf(params.get("deptId").toString()).longValue(); |
|
|
|
dataScopeDeptList.add(deptId); |
|
|
|
|
|
|
|
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()); |
|
|
|
} |
|
|
|
} |
|
|
|
} else { //根据默认数据权限导出模板
|
|
|
|
for (int i = 0; i < deptTypeKeys.getData().size(); i++){ |
|
|
|
if (deptType.equals(deptTypeKeys.getData().get(i).getTypeKey())){ |
|
|
|
dataScopeDeptList.add(deptTypeKeys.getData().get(i).getId()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
// 考核周期开始月
|
|
|
|
YearMonth scoreStartDateMonth = YearMonth.parse(month); |
|
|
@ -371,6 +386,7 @@ public class ManualScoreServiceImpl extends BaseServiceImpl<ManualScoreDao, Manu |
|
|
|
@Override |
|
|
|
public PageData<ManualScoreDTO> listManualScoreResultDTO(Map<String, Object> params) { |
|
|
|
params.put("deptId", params.get("deptId").toString()); |
|
|
|
params.put("deptIdList", SecurityUser.getUser().getDeptIdList()); |
|
|
|
IPage<ManualScoreDTO> page = getPage(params); |
|
|
|
List<ManualScoreDTO> list = baseDao.selectListManualScoreResultDTO(params); |
|
|
|
return new PageData<>(list, page.getTotal()); |
|
|
|