|
@@ -468,6 +468,21 @@ public class ExportController extends BaseController {
|
|
@PostMapping("export/teacherSalaryComplaints")
|
|
@PostMapping("export/teacherSalaryComplaints")
|
|
@PreAuthorize("@pcs.hasPermissions('export/teacherSalaryComplaints')")
|
|
@PreAuthorize("@pcs.hasPermissions('export/teacherSalaryComplaints')")
|
|
public void exportTeacherSalaryComplaints(HttpServletResponse response, TeacherSalaryModifyQueryInfo queryInfo) throws IOException {
|
|
public void exportTeacherSalaryComplaints(HttpServletResponse response, TeacherSalaryModifyQueryInfo queryInfo) throws IOException {
|
|
|
|
+ SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
|
+ if (sysUser == null) {
|
|
|
|
+ throw new BizException("用户信息获取失败");
|
|
|
|
+ }
|
|
|
|
+ Employee employee = employeeDao.get(sysUser.getId());
|
|
|
|
+ if (StringUtils.isEmpty(queryInfo.getOrganId())) {
|
|
|
|
+ queryInfo.setOrganId(employee.getOrganIdList());
|
|
|
|
+ }else if(StringUtils.isEmpty(employee.getOrganIdList())){
|
|
|
|
+ throw new BizException("用户所在分部异常");
|
|
|
|
+ }else {
|
|
|
|
+ List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
|
|
|
|
+ if(!list.containsAll(Arrays.asList(queryInfo.getOrganId().split(",")))){
|
|
|
|
+ throw new BizException("非法请求");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
queryInfo.setPage(1);
|
|
queryInfo.setPage(1);
|
|
queryInfo.setRows(49999);
|
|
queryInfo.setRows(49999);
|
|
List<TeacherSalaryComplaints> rows = teacherSalaryComplaintsService.queryPage(queryInfo).getRows();
|
|
List<TeacherSalaryComplaints> rows = teacherSalaryComplaintsService.queryPage(queryInfo).getRows();
|