|
@@ -149,11 +149,7 @@ public class ExportController extends BaseController {
|
|
|
@RequestMapping("export/userCashAccountLog")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/userCashAccountLog')")
|
|
|
public void exportUserCashAccountLog(HttpServletResponse response, AccountLogQueryInfo queryInfo) throws IOException {
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- if (sysUser == null) {
|
|
|
- throw new BizException("用户信息获取失败");
|
|
|
- }
|
|
|
- queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
List<SysUserCashAccountLog> rows = sysUserCashAccountLogService.queryPage(queryInfo).getRows();
|
|
@@ -190,11 +186,7 @@ public class ExportController extends BaseController {
|
|
|
@PostMapping("export/musicGroup")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/musicGroup')")
|
|
|
public void exportMusicGroup(HttpServletResponse response, MusicGroupQueryInfo queryInfo) throws IOException {
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- if (sysUser == null) {
|
|
|
- throw new BizException("用户信息获取失败");
|
|
|
- }
|
|
|
- queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
List<MusicGroup> rows = musicGroupService.queryMusicGroupPage(queryInfo).getRows();
|
|
@@ -232,11 +224,7 @@ public class ExportController extends BaseController {
|
|
|
@PostMapping("export/statisticsDetail")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/statisticsDetail')")
|
|
|
public void statisticsDetail(HttpServletResponse response, ChildrenReserveQueryInfo queryInfo) throws IOException {
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- if (sysUser == null) {
|
|
|
- throw new BizException("用户信息获取失败");
|
|
|
- }
|
|
|
- queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
List<ChildrenStatisticsDetailDto> rows = childrenDayReserveService.exportStatisticsDetail(queryInfo);
|
|
@@ -345,11 +333,7 @@ public class ExportController extends BaseController {
|
|
|
@PostMapping("export/userCashAccountDetail")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/userCashAccountDetail')")
|
|
|
public void userCashAccountDetail(HttpServletResponse response, ExportUserAccountQueryInfo queryInfo) throws IOException {
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- if (sysUser == null) {
|
|
|
- throw new BizException("用户信息获取失败");
|
|
|
- }
|
|
|
- queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
List<SysUserCashAccountDetail> cashAccountDetails = sysUserCashAccountDetailDao.exportDetail(queryInfo);
|
|
|
if(cashAccountDetails.size() < 1){
|
|
|
throw new BizException("没有可导出数据");
|
|
@@ -387,11 +371,7 @@ public class ExportController extends BaseController {
|
|
|
@PostMapping("export/userCoursesAccount")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/userCoursesAccount')")
|
|
|
public void userCoursesAccount(HttpServletResponse response,ExportUserAccountQueryInfo queryInfo) throws IOException {
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- if (sysUser == null) {
|
|
|
- throw new BizException("用户信息获取失败");
|
|
|
- }
|
|
|
- queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
List<SysUserCoursesAccountDetail> coursesAccountDetails = sysUserCoursesAccountDetailDao.exportDetail(queryInfo);
|
|
|
if(coursesAccountDetails.size() < 1){
|
|
|
throw new BizException("没有可导出数据");
|
|
@@ -431,11 +411,7 @@ public class ExportController extends BaseController {
|
|
|
public void exportClassGroup(HttpServletResponse response, ClassGroupQueryInfo queryInfo) throws IOException {
|
|
|
queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- if (sysUser == null) {
|
|
|
- throw new BizException("用户信息获取失败");
|
|
|
- }
|
|
|
- queryInfo.setOrganIds(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganIds(),sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganIds(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
List<ClassGroupTeachersDto> rows = classGroupService.queryClassGroupPage(queryInfo).getRows();
|
|
|
for (ClassGroupTeachersDto row : rows) {
|
|
|
List<ClassGroupTeacherMapper> classGroupTeacherMapperList = row.getClassGroupTeacherMapperList();
|
|
@@ -519,11 +495,7 @@ public class ExportController extends BaseController {
|
|
|
public void exportVipGroupActivity(HttpServletResponse response, VipGroupActivityQueryInfo queryInfo) throws IOException {
|
|
|
queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- if (sysUser == null) {
|
|
|
- throw new BizException("用户信息获取失败");
|
|
|
- }
|
|
|
- queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
List<ExportVipGroupActivityDto> rows = vipGroupActivityService.exportVipGroupActivity(queryInfo);
|
|
|
OutputStream outputStream = response.getOutputStream();
|
|
|
try {
|
|
@@ -558,11 +530,7 @@ public class ExportController extends BaseController {
|
|
|
public void exportStudentAttendances(HttpServletResponse response, ExportStudentAttendanceQueryInfo queryInfo) throws IOException {
|
|
|
queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- if (sysUser == null) {
|
|
|
- throw new BizException("用户信息获取失败");
|
|
|
- }
|
|
|
- queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
List<ExportStudentAttendanceDto> rows = studentAttendanceService.exportStudentAttendancesQueryPage(queryInfo).getRows();
|
|
|
OutputStream outputStream = response.getOutputStream();
|
|
|
try {
|
|
@@ -628,11 +596,7 @@ public class ExportController extends BaseController {
|
|
|
@PostMapping("export/exportPaymentCalenderAuditList")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/exportPaymentCalenderAuditList')")
|
|
|
public void exportPaymentCalenderAuditList(HttpServletResponse response, MusicGroupPaymentCalenderQueryInfo queryInfo) throws IOException {
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- if (sysUser == null) {
|
|
|
- throw new BizException("用户信息获取失败");
|
|
|
- }
|
|
|
- queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
List<MusicGroupPaymentCalenderAuditDto> rows = musicGroupPaymentCalenderService.auditList(queryInfo).getRows();
|
|
@@ -667,11 +631,7 @@ public class ExportController extends BaseController {
|
|
|
public void exportTeacherAttendances(HttpServletResponse response, TeacherCloseQueryInfo queryInfo) throws IOException {
|
|
|
queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- if (sysUser == null) {
|
|
|
- throw new BizException("用户信息获取失败");
|
|
|
- }
|
|
|
- queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
List rows = teacherAttendanceService.queryTeacherAttendances(queryInfo).getRows();
|
|
|
OutputStream outputStream = response.getOutputStream();
|
|
|
try {
|
|
@@ -703,11 +663,7 @@ public class ExportController extends BaseController {
|
|
|
@PostMapping("export/teacherSalaryComplaints")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/teacherSalaryComplaints')")
|
|
|
public void exportTeacherSalaryComplaints(HttpServletResponse response, TeacherSalaryModifyQueryInfo queryInfo) throws IOException {
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- if (sysUser == null) {
|
|
|
- throw new BizException("用户信息获取失败");
|
|
|
- }
|
|
|
- queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
List<TeacherSalaryComplaints> rows = teacherSalaryComplaintsService.queryPage(queryInfo).getRows();
|
|
@@ -742,11 +698,7 @@ public class ExportController extends BaseController {
|
|
|
public void studentBuyPractice(HttpServletResponse response, StudentBuyPracticeQueryInfo queryInfo) throws IOException {
|
|
|
queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- if (sysUser == null) {
|
|
|
- throw new BizException("用户信息获取失败");
|
|
|
- }
|
|
|
- queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
List<StudentBuyPracticeDto> rows = practiceGroupService.studentBuys(queryInfo).getRows();
|
|
|
OutputStream outputStream = response.getOutputStream();
|
|
|
try {
|
|
@@ -857,11 +809,7 @@ public class ExportController extends BaseController {
|
|
|
public void teacherCourseReward(HttpServletResponse response, TeacherCourseRewardQueryInfo queryInfo) throws IOException {
|
|
|
queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- if (sysUser == null) {
|
|
|
- throw new BizException("用户信息获取失败");
|
|
|
- }
|
|
|
- queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
Date endTime = queryInfo.getEndTime();
|
|
|
if (endTime != null) {
|
|
|
queryInfo.setEndTime(DateUtil.addDays(endTime, 1));
|
|
@@ -898,11 +846,7 @@ public class ExportController extends BaseController {
|
|
|
public void studentHasCourse(HttpServletResponse response, StudentManageQueryInfo queryInfo) throws IOException {
|
|
|
queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- if (sysUser == null) {
|
|
|
- throw new BizException("用户信息获取失败");
|
|
|
- }
|
|
|
- queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
queryInfo.setIsExport(true);
|
|
|
List<StudentManageListDto> rows = studentManageService.findStudentsByOrganId(queryInfo).getRows();
|
|
|
OutputStream outputStream = response.getOutputStream();
|
|
@@ -942,11 +886,7 @@ public class ExportController extends BaseController {
|
|
|
queryInfo.setIsExport(true);
|
|
|
queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- if (sysUser == null) {
|
|
|
- throw new BizException("用户信息获取失败");
|
|
|
- }
|
|
|
- queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
List<PracticeGroupDto> rows = practiceGroupService.findPracticeGroups(queryInfo).getRows();
|
|
|
OutputStream outputStream = response.getOutputStream();
|
|
|
if (rows != null && rows.size() > 0) {
|
|
@@ -995,11 +935,7 @@ public class ExportController extends BaseController {
|
|
|
queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
queryInfo.setIsExport(true);
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- if (sysUser == null) {
|
|
|
- throw new BizException("用户信息获取失败");
|
|
|
- }
|
|
|
- queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
List<VipGroup> rows = vipGroupService.findVipGroups(queryInfo).getRows();
|
|
|
OutputStream outputStream = response.getOutputStream();
|
|
|
if (rows != null && rows.size() > 0) {
|
|
@@ -1079,11 +1015,7 @@ public class ExportController extends BaseController {
|
|
|
queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
queryInfo.setIsExport(true);
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- if (sysUser == null) {
|
|
|
- throw new BizException("用户信息获取失败");
|
|
|
- }
|
|
|
- queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
List<SporadicChargeInfo> rows = sporadicChargeInfoService.queryDetailPage(queryInfo).getRows();
|
|
|
for (SporadicChargeInfo row : rows) {
|
|
|
row.setOpenFlagStr(row.getOpenFlag().equals(0) ? "开启" : "关闭");
|
|
@@ -1273,7 +1205,10 @@ public class ExportController extends BaseController {
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/orderList')")
|
|
|
public HttpResponseResult orderList(StudentPaymentOrderQueryInfo queryInfo) throws Exception {
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
|
+ if (sysUser == null) {
|
|
|
+ throw new BizException("用户信息获取失败");
|
|
|
+ }
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
if (StringUtils.isNotBlank(queryInfo.getSearch())) {
|
|
|
List<BasicUserDto> users = studentPaymentOrderDao.getUsers(queryInfo.getSearch());
|
|
|
List<Integer> userIds = users.stream().map(BasicUserDto::getUserId).collect(Collectors.toList());
|
|
@@ -1420,8 +1355,7 @@ public class ExportController extends BaseController {
|
|
|
@RequestMapping("export/courseReviews")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/courseReviews')")
|
|
|
public void courseReviews(CourseReviewQueryInfo queryInfo, HttpServletResponse response) throws IOException {
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),"",sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
queryInfo.setIsExport(1);
|
|
|
queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
@@ -1505,8 +1439,7 @@ public class ExportController extends BaseController {
|
|
|
@RequestMapping("export/practiceGroup")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/practiceGroup')")
|
|
|
public void practiceGroup(HttpServletResponse response) throws IOException {
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- String organIds = organizationService.getEmployeeOrgan(sysUser.getId(),"",sysUser.getIsSuperAdmin());
|
|
|
+ String organIds = organizationService.getEmployeeOrgan("");
|
|
|
|
|
|
List<CourseGroupExportDto> practiceGroupExports = practiceGroupDao.getPracticeGroupExport(organIds, TenantContextHolder.getTenantId());
|
|
|
if (practiceGroupExports == null || practiceGroupExports.size() == 0) {
|
|
@@ -1573,9 +1506,7 @@ public class ExportController extends BaseController {
|
|
|
@RequestMapping("export/vipGroup")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/vipGroup')")
|
|
|
public void vipGroup(HttpServletResponse response) throws IOException {
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
-
|
|
|
- List<CourseGroupExportDto> vipGroupExports = courseScheduleDao.getVipGroupExport(organizationService.getEmployeeOrgan(sysUser.getId(),"",sysUser.getIsSuperAdmin()));
|
|
|
+ List<CourseGroupExportDto> vipGroupExports = courseScheduleDao.getVipGroupExport(organizationService.getEmployeeOrgan(""));
|
|
|
if (vipGroupExports == null || vipGroupExports.size() == 0) {
|
|
|
response.setStatus(500);
|
|
|
response.setContentType("Content-Type: application/json;charset=UTF-8");
|
|
@@ -1652,11 +1583,7 @@ public class ExportController extends BaseController {
|
|
|
public void extraExercisesReplys(ExtraExercilseReplyQueryInfo queryInfo, HttpServletResponse response) throws IOException {
|
|
|
queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- if (sysUser == null) {
|
|
|
- throw new BizException("用户信息获取失败");
|
|
|
- }
|
|
|
- queryInfo.setOrganIdList(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganIdList(),sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganIdList(organizationService.getEmployeeOrgan(queryInfo.getOrganIdList()));
|
|
|
List<ExtraExerciseStudentsDto> rows = extracurricularExercisesReplyService.findExtraExercises(queryInfo).getRows();
|
|
|
if (CollectionUtils.isEmpty(rows)) {
|
|
|
response.setStatus(500);
|
|
@@ -1701,11 +1628,7 @@ public class ExportController extends BaseController {
|
|
|
public void exercisesSituations(StudentExercisesSituationQueryInfo queryInfo, HttpServletResponse response) throws IOException {
|
|
|
queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- if (sysUser == null) {
|
|
|
- throw new BizException("用户信息获取失败");
|
|
|
- }
|
|
|
- queryInfo.setOrganIdList(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganIdList(),sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganIdList(organizationService.getEmployeeOrgan(queryInfo.getOrganIdList()));
|
|
|
List<StudentExercisesSituationDto> rows = studentExtracurricularExercisesSituationService.findStudentExtracurricularExercisesSituations(queryInfo).getRows();
|
|
|
if (CollectionUtils.isEmpty(rows)) {
|
|
|
response.setStatus(500);
|
|
@@ -1744,11 +1667,7 @@ public class ExportController extends BaseController {
|
|
|
public void isSettlementCourseSalarys(CourseSalaryQueryInfo4Web queryInfo, HttpServletResponse response) throws IOException {
|
|
|
queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- if (sysUser == null) {
|
|
|
- throw new BizException("用户信息获取失败");
|
|
|
- }
|
|
|
- queryInfo.setOrganIdList(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganIdList(),sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganIdList(organizationService.getEmployeeOrgan(queryInfo.getOrganIdList()));
|
|
|
List<TeacherCourseSalaryDetail4WebDto> rows = courseScheduleTeacherSalaryService.findIsSettlementCourseSalarys(queryInfo).getRows();
|
|
|
if (CollectionUtils.isEmpty(rows)) {
|
|
|
response.setStatus(500);
|
|
@@ -1817,11 +1736,7 @@ public class ExportController extends BaseController {
|
|
|
public void operatingStudents(StudentOperatingQueryInfo queryInfo, HttpServletResponse response) {
|
|
|
queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- if (sysUser == null) {
|
|
|
- throw new BizException("用户信息获取失败");
|
|
|
- }
|
|
|
- queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
PageInfo<Student4operating> PageOperatingStudents = studentManageService.getOperatingStudents(queryInfo);
|
|
|
|
|
|
if (PageOperatingStudents.getTotal() <= 0) {
|
|
@@ -1884,7 +1799,7 @@ public class ExportController extends BaseController {
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/vipCourseReviews')")
|
|
|
public void vipCourseReviews(CourseReviewQueryInfo queryInfo, HttpServletResponse response) throws IOException {
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
queryInfo.setIsExport(1);
|
|
|
queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
@@ -2021,11 +1936,7 @@ public class ExportController extends BaseController {
|
|
|
@RequestMapping("export/cooperationOrgan")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/cooperationOrgan')")
|
|
|
public void cooperationOrgan(CooperationOrganQueryInfo queryInfo, HttpServletResponse response) throws IOException {
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- if (sysUser == null) {
|
|
|
- throw new IOException("用户信息获取失败");
|
|
|
- }
|
|
|
- queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
queryInfo.setRows(65000);
|
|
|
PageInfo<CooperationOrgan> pageList = cooperationOrganService.queryPage(queryInfo);
|
|
|
if (pageList.getTotal() <= 0) {
|
|
@@ -2238,10 +2149,6 @@ public class ExportController extends BaseController {
|
|
|
@RequestMapping("export/teacherDefaultSalary")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/teacherDefaultSalary')")
|
|
|
public void exportTeacherDefaultSalary(String organIdList, HttpServletResponse response) throws IOException {
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- if (sysUser == null) {
|
|
|
- throw new IOException("用户信息获取失败");
|
|
|
- }
|
|
|
List<TeacherDefaultSalaryDto> pageList = teacherService.queryTeacherDefaultSalary(organIdList);
|
|
|
if (pageList.size() <= 0) {
|
|
|
response.setStatus(200);
|
|
@@ -2472,11 +2379,7 @@ public class ExportController extends BaseController {
|
|
|
@RequestMapping("export/exportSellOrders")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/exportSellOrders')")
|
|
|
public void exportSellOrders(HttpServletResponse response, SellOrderQueryInfo queryInfo) throws IOException {
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- if (sysUser == null) {
|
|
|
- throw new BizException("用户信息获取失败");
|
|
|
- }
|
|
|
- queryInfo.setOrganIdList(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganIdList(),sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganIdList(organizationService.getEmployeeOrgan(queryInfo.getOrganIdList()));
|
|
|
if (queryInfo.getEndTime() != null) {
|
|
|
queryInfo.setEndTime(DateUtil.getLastTimeWithDay(queryInfo.getEndTime()));
|
|
|
}
|
|
@@ -2576,11 +2479,7 @@ public class ExportController extends BaseController {
|
|
|
@RequestMapping("export/musicGroupQuit")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/musicGroupQuit')")
|
|
|
public void musicGroupQuit(MusicGroupQuitQueryInfo queryInfo, HttpServletResponse response) throws IOException {
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- if (sysUser == null) {
|
|
|
- throw new BizException("用户信息获取失败");
|
|
|
- }
|
|
|
- queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
PageInfo<MusicGroupQuit> result = musicGroupQuitService.queryPage(queryInfo);
|
|
@@ -2623,7 +2522,7 @@ public class ExportController extends BaseController {
|
|
|
if (sysUser == null) {
|
|
|
throw new BizException("用户信息获取失败");
|
|
|
}
|
|
|
- queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
PageInfo<TeacherServeDto> result = studentExtracurricularExercisesSituationService.queryTeacherServeInfo(queryInfo);
|
|
@@ -2730,7 +2629,7 @@ public class ExportController extends BaseController {
|
|
|
if (sysUser == null) {
|
|
|
throw new BizException("用户信息获取失败");
|
|
|
}
|
|
|
- queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
PageInfo<TeacherCourseStatistics> result = teacherCourseStatisticsService.queryPageDetail(queryInfo);
|
|
@@ -2822,7 +2721,7 @@ public class ExportController extends BaseController {
|
|
|
if (sysUser == null) {
|
|
|
throw new BizException("用户信息获取失败");
|
|
|
}
|
|
|
- queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
List<Teacher> rows = teacherService.queryPageDetail(queryInfo).getRows();
|