|
@@ -58,7 +58,7 @@ public class ExportController extends BaseController {
|
|
@Autowired
|
|
@Autowired
|
|
private EmployeeService employeeService;
|
|
private EmployeeService employeeService;
|
|
@Autowired
|
|
@Autowired
|
|
- private EmployeeDao employeeDao;
|
|
|
|
|
|
+ private OrganizationService organizationService;
|
|
@Autowired
|
|
@Autowired
|
|
private VipGroupDao vipGroupDao;
|
|
private VipGroupDao vipGroupDao;
|
|
@Autowired
|
|
@Autowired
|
|
@@ -144,8 +144,6 @@ public class ExportController extends BaseController {
|
|
@Autowired
|
|
@Autowired
|
|
private StudentService studentService;
|
|
private StudentService studentService;
|
|
@Autowired
|
|
@Autowired
|
|
- private OrganizationService organizationService;
|
|
|
|
- @Autowired
|
|
|
|
private MusicEnlightenmentQuestionnaireService musicEnlightenmentQuestionnaireService;
|
|
private MusicEnlightenmentQuestionnaireService musicEnlightenmentQuestionnaireService;
|
|
@Autowired
|
|
@Autowired
|
|
private MusicGroupService musicGroupService;
|
|
private MusicGroupService musicGroupService;
|
|
@@ -160,17 +158,7 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new BizException("用户信息获取失败");
|
|
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.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
queryInfo.setPage(1);
|
|
queryInfo.setPage(1);
|
|
queryInfo.setRows(49999);
|
|
queryInfo.setRows(49999);
|
|
List<SysUserCashAccountLog> rows = sysUserCashAccountLogService.queryPage(queryInfo).getRows();
|
|
List<SysUserCashAccountLog> rows = sysUserCashAccountLogService.queryPage(queryInfo).getRows();
|
|
@@ -211,17 +199,7 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new BizException("用户信息获取失败");
|
|
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.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
queryInfo.setPage(1);
|
|
queryInfo.setPage(1);
|
|
queryInfo.setRows(49999);
|
|
queryInfo.setRows(49999);
|
|
List<MusicGroup> rows = musicGroupService.queryMusicGroupPage(queryInfo).getRows();
|
|
List<MusicGroup> rows = musicGroupService.queryMusicGroupPage(queryInfo).getRows();
|
|
@@ -263,17 +241,7 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new BizException("用户信息获取失败");
|
|
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.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
queryInfo.setPage(1);
|
|
queryInfo.setPage(1);
|
|
queryInfo.setRows(49999);
|
|
queryInfo.setRows(49999);
|
|
List<ChildrenStatisticsDetailDto> rows = childrenDayReserveService.exportStatisticsDetail(queryInfo);
|
|
List<ChildrenStatisticsDetailDto> rows = childrenDayReserveService.exportStatisticsDetail(queryInfo);
|
|
@@ -386,18 +354,8 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new BizException("用户信息获取失败");
|
|
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("非法请求");
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- List<SysUserCashAccountDetail> cashAccountDetails = sysUserCashAccountDetailDao.exportDetail(queryInfo);
|
|
|
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
|
|
+ List<SysUserCashAccountDetail> cashAccountDetails = sysUserCashAccountDetailDao.exportDetail(queryInfo);
|
|
if(cashAccountDetails.size() < 1){
|
|
if(cashAccountDetails.size() < 1){
|
|
throw new BizException("没有可导出数据");
|
|
throw new BizException("没有可导出数据");
|
|
}
|
|
}
|
|
@@ -438,17 +396,7 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new BizException("用户信息获取失败");
|
|
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.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
List<SysUserCoursesAccountDetail> coursesAccountDetails = sysUserCoursesAccountDetailDao.exportDetail(queryInfo);
|
|
List<SysUserCoursesAccountDetail> coursesAccountDetails = sysUserCoursesAccountDetailDao.exportDetail(queryInfo);
|
|
if(coursesAccountDetails.size() < 1){
|
|
if(coursesAccountDetails.size() < 1){
|
|
throw new BizException("没有可导出数据");
|
|
throw new BizException("没有可导出数据");
|
|
@@ -492,17 +440,7 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new BizException("用户信息获取失败");
|
|
throw new BizException("用户信息获取失败");
|
|
}
|
|
}
|
|
- Employee employee = employeeDao.get(sysUser.getId());
|
|
|
|
- if (org.apache.commons.lang3.StringUtils.isEmpty(queryInfo.getOrganIdList())) {
|
|
|
|
- queryInfo.setOrganIdList(employee.getOrganIdList());
|
|
|
|
- } else if (org.apache.commons.lang3.StringUtils.isEmpty(employee.getOrganIdList())) {
|
|
|
|
- throw new BizException("用户所在分部异常");
|
|
|
|
- } else {
|
|
|
|
- List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
|
|
|
|
- if (!list.containsAll(Arrays.asList(queryInfo.getOrganIdList().split(",")))) {
|
|
|
|
- throw new BizException("非法请求");
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ queryInfo.setOrganIdList(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganIdList(),sysUser.getIsSuperAdmin()));
|
|
List<ClassGroupTeachersDto> rows = classGroupService.queryClassGroupPage(queryInfo).getRows();
|
|
List<ClassGroupTeachersDto> rows = classGroupService.queryClassGroupPage(queryInfo).getRows();
|
|
for (ClassGroupTeachersDto row : rows) {
|
|
for (ClassGroupTeachersDto row : rows) {
|
|
List<ClassGroupTeacherMapper> classGroupTeacherMapperList = row.getClassGroupTeacherMapperList();
|
|
List<ClassGroupTeacherMapper> classGroupTeacherMapperList = row.getClassGroupTeacherMapperList();
|
|
@@ -590,17 +528,7 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new BizException("用户信息获取失败");
|
|
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.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
List<ExportVipGroupActivityDto> rows = vipGroupActivityService.exportVipGroupActivity(queryInfo);
|
|
List<ExportVipGroupActivityDto> rows = vipGroupActivityService.exportVipGroupActivity(queryInfo);
|
|
OutputStream outputStream = response.getOutputStream();
|
|
OutputStream outputStream = response.getOutputStream();
|
|
try {
|
|
try {
|
|
@@ -639,17 +567,7 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new BizException("用户信息获取失败");
|
|
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.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
List<ExportStudentAttendanceDto> rows = studentAttendanceService.exportStudentAttendancesQueryPage(queryInfo).getRows();
|
|
List<ExportStudentAttendanceDto> rows = studentAttendanceService.exportStudentAttendancesQueryPage(queryInfo).getRows();
|
|
OutputStream outputStream = response.getOutputStream();
|
|
OutputStream outputStream = response.getOutputStream();
|
|
try {
|
|
try {
|
|
@@ -719,17 +637,7 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new BizException("用户信息获取失败");
|
|
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.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
queryInfo.setPage(1);
|
|
queryInfo.setPage(1);
|
|
queryInfo.setRows(49999);
|
|
queryInfo.setRows(49999);
|
|
List<MusicGroupPaymentCalenderAuditDto> rows = musicGroupPaymentCalenderService.auditList(queryInfo).getRows();
|
|
List<MusicGroupPaymentCalenderAuditDto> rows = musicGroupPaymentCalenderService.auditList(queryInfo).getRows();
|
|
@@ -768,17 +676,7 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new BizException("用户信息获取失败");
|
|
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.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
List rows = teacherAttendanceService.queryTeacherAttendances(queryInfo).getRows();
|
|
List rows = teacherAttendanceService.queryTeacherAttendances(queryInfo).getRows();
|
|
OutputStream outputStream = response.getOutputStream();
|
|
OutputStream outputStream = response.getOutputStream();
|
|
try {
|
|
try {
|
|
@@ -814,17 +712,7 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new BizException("用户信息获取失败");
|
|
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.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
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();
|
|
@@ -863,17 +751,7 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new BizException("用户信息获取失败");
|
|
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.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
List<StudentBuyPracticeDto> rows = practiceGroupService.studentBuys(queryInfo).getRows();
|
|
List<StudentBuyPracticeDto> rows = practiceGroupService.studentBuys(queryInfo).getRows();
|
|
OutputStream outputStream = response.getOutputStream();
|
|
OutputStream outputStream = response.getOutputStream();
|
|
try {
|
|
try {
|
|
@@ -988,17 +866,7 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new BizException("用户信息获取失败");
|
|
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.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
Date endTime = queryInfo.getEndTime();
|
|
Date endTime = queryInfo.getEndTime();
|
|
if (endTime != null) {
|
|
if (endTime != null) {
|
|
queryInfo.setEndTime(DateUtil.addDays(endTime, 1));
|
|
queryInfo.setEndTime(DateUtil.addDays(endTime, 1));
|
|
@@ -1039,17 +907,7 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new BizException("用户信息获取失败");
|
|
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.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
queryInfo.setIsExport(true);
|
|
queryInfo.setIsExport(true);
|
|
List<StudentManageListDto> rows = studentManageService.findStudentsByOrganId(queryInfo).getRows();
|
|
List<StudentManageListDto> rows = studentManageService.findStudentsByOrganId(queryInfo).getRows();
|
|
OutputStream outputStream = response.getOutputStream();
|
|
OutputStream outputStream = response.getOutputStream();
|
|
@@ -1093,17 +951,7 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new BizException("用户信息获取失败");
|
|
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.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
List<PracticeGroupDto> rows = practiceGroupService.findPracticeGroups(queryInfo).getRows();
|
|
List<PracticeGroupDto> rows = practiceGroupService.findPracticeGroups(queryInfo).getRows();
|
|
OutputStream outputStream = response.getOutputStream();
|
|
OutputStream outputStream = response.getOutputStream();
|
|
if (rows != null && rows.size() > 0) {
|
|
if (rows != null && rows.size() > 0) {
|
|
@@ -1156,17 +1004,7 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new BizException("用户信息获取失败");
|
|
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.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
List<VipGroup> rows = vipGroupService.findVipGroups(queryInfo).getRows();
|
|
List<VipGroup> rows = vipGroupService.findVipGroups(queryInfo).getRows();
|
|
OutputStream outputStream = response.getOutputStream();
|
|
OutputStream outputStream = response.getOutputStream();
|
|
if (rows != null && rows.size() > 0) {
|
|
if (rows != null && rows.size() > 0) {
|
|
@@ -1210,17 +1048,7 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new BizException("用户信息获取失败");
|
|
throw new BizException("用户信息获取失败");
|
|
}
|
|
}
|
|
- Employee employee = employeeDao.get(sysUser.getId());
|
|
|
|
- if (org.apache.commons.lang3.StringUtils.isEmpty(queryInfo.getOrganIdList())) {
|
|
|
|
- queryInfo.setOrganIdList(employee.getOrganIdList());
|
|
|
|
- } else if (org.apache.commons.lang3.StringUtils.isEmpty(employee.getOrganIdList())) {
|
|
|
|
- throw new BizException("用户所在分部异常");
|
|
|
|
- } else {
|
|
|
|
- List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
|
|
|
|
- if (!list.containsAll(Arrays.asList(queryInfo.getOrganIdList().split(",")))) {
|
|
|
|
- throw new BizException("非法请求");
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ queryInfo.setOrganIdList(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganIdList(),sysUser.getIsSuperAdmin()));
|
|
Map<String, Object> params = new HashMap<>();
|
|
Map<String, Object> params = new HashMap<>();
|
|
MapUtil.populateMap(params, queryInfo);
|
|
MapUtil.populateMap(params, queryInfo);
|
|
int count = scheduleService.endCountCourseSchedules(params);
|
|
int count = scheduleService.endCountCourseSchedules(params);
|
|
@@ -1260,17 +1088,7 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new BizException("用户信息获取失败");
|
|
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.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
List<SporadicChargeInfo> rows = sporadicChargeInfoService.queryDetailPage(queryInfo).getRows();
|
|
List<SporadicChargeInfo> rows = sporadicChargeInfoService.queryDetailPage(queryInfo).getRows();
|
|
for (SporadicChargeInfo row : rows) {
|
|
for (SporadicChargeInfo row : rows) {
|
|
row.setOpenFlagStr(row.getOpenFlag().equals(0) ? "开启" : "关闭");
|
|
row.setOpenFlagStr(row.getOpenFlag().equals(0) ? "开启" : "关闭");
|
|
@@ -1460,12 +1278,7 @@ public class ExportController extends BaseController {
|
|
@PreAuthorize("@pcs.hasPermissions('export/orderList')")
|
|
@PreAuthorize("@pcs.hasPermissions('export/orderList')")
|
|
public HttpResponseResult orderList(StudentPaymentOrderQueryInfo queryInfo) throws Exception {
|
|
public HttpResponseResult orderList(StudentPaymentOrderQueryInfo queryInfo) throws Exception {
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
- Employee employee = employeeDao.get(sysUser.getId());
|
|
|
|
- if (StringUtils.isEmpty(queryInfo.getRoutingOrganId()) && "3".equals(queryInfo.getOrderType())) {
|
|
|
|
- queryInfo.setRoutingOrganId(employee.getOrganIdList());
|
|
|
|
- } else if (StringUtils.isEmpty(queryInfo.getOrganId())) {
|
|
|
|
- queryInfo.setOrganId(employee.getOrganIdList());
|
|
|
|
- }
|
|
|
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
if (StringUtils.isNotBlank(queryInfo.getSearch())) {
|
|
if (StringUtils.isNotBlank(queryInfo.getSearch())) {
|
|
List<BasicUserDto> users = studentPaymentOrderDao.getUsers(queryInfo.getSearch());
|
|
List<BasicUserDto> users = studentPaymentOrderDao.getUsers(queryInfo.getSearch());
|
|
List<Integer> userIds = users.stream().map(BasicUserDto::getUserId).collect(Collectors.toList());
|
|
List<Integer> userIds = users.stream().map(BasicUserDto::getUserId).collect(Collectors.toList());
|
|
@@ -1613,8 +1426,7 @@ public class ExportController extends BaseController {
|
|
@PreAuthorize("@pcs.hasPermissions('export/courseReviews')")
|
|
@PreAuthorize("@pcs.hasPermissions('export/courseReviews')")
|
|
public void courseReviews(CourseReviewQueryInfo queryInfo, HttpServletResponse response) throws IOException {
|
|
public void courseReviews(CourseReviewQueryInfo queryInfo, HttpServletResponse response) throws IOException {
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
- Employee employee = employeeDao.get(sysUser.getId());
|
|
|
|
- queryInfo.setOrganId(employee.getOrganIdList());
|
|
|
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),"",sysUser.getIsSuperAdmin()));
|
|
queryInfo.setIsExport(1);
|
|
queryInfo.setIsExport(1);
|
|
queryInfo.setPage(1);
|
|
queryInfo.setPage(1);
|
|
queryInfo.setRows(49999);
|
|
queryInfo.setRows(49999);
|
|
@@ -1699,9 +1511,7 @@ public class ExportController extends BaseController {
|
|
@PreAuthorize("@pcs.hasPermissions('export/practiceGroup')")
|
|
@PreAuthorize("@pcs.hasPermissions('export/practiceGroup')")
|
|
public void practiceGroup(HttpServletResponse response) throws IOException {
|
|
public void practiceGroup(HttpServletResponse response) throws IOException {
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
- String organIds = null;
|
|
|
|
- Employee employee = employeeDao.get(sysUser.getId());
|
|
|
|
- organIds = employee.getOrganIdList();
|
|
|
|
|
|
+ String organIds = organizationService.getEmployeeOrgan(sysUser.getId(),"",sysUser.getIsSuperAdmin());
|
|
|
|
|
|
List<CourseGroupExportDto> practiceGroupExports = practiceGroupDao.getPracticeGroupExport(organIds, TenantContextHolder.getTenantId());
|
|
List<CourseGroupExportDto> practiceGroupExports = practiceGroupDao.getPracticeGroupExport(organIds, TenantContextHolder.getTenantId());
|
|
if (practiceGroupExports == null || practiceGroupExports.size() == 0) {
|
|
if (practiceGroupExports == null || practiceGroupExports.size() == 0) {
|
|
@@ -1769,11 +1579,8 @@ public class ExportController extends BaseController {
|
|
@PreAuthorize("@pcs.hasPermissions('export/vipGroup')")
|
|
@PreAuthorize("@pcs.hasPermissions('export/vipGroup')")
|
|
public void vipGroup(HttpServletResponse response) throws IOException {
|
|
public void vipGroup(HttpServletResponse response) throws IOException {
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
- String organIds = null;
|
|
|
|
- Employee employee = employeeDao.get(sysUser.getId());
|
|
|
|
- organIds = employee.getOrganIdList();
|
|
|
|
|
|
|
|
- List<CourseGroupExportDto> vipGroupExports = courseScheduleDao.getVipGroupExport(organIds);
|
|
|
|
|
|
+ List<CourseGroupExportDto> vipGroupExports = courseScheduleDao.getVipGroupExport(organizationService.getEmployeeOrgan(sysUser.getId(),"",sysUser.getIsSuperAdmin()));
|
|
if (vipGroupExports == null || vipGroupExports.size() == 0) {
|
|
if (vipGroupExports == null || vipGroupExports.size() == 0) {
|
|
response.setStatus(500);
|
|
response.setStatus(500);
|
|
response.setContentType("Content-Type: application/json;charset=UTF-8");
|
|
response.setContentType("Content-Type: application/json;charset=UTF-8");
|
|
@@ -1854,17 +1661,7 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new BizException("用户信息获取失败");
|
|
throw new BizException("用户信息获取失败");
|
|
}
|
|
}
|
|
- Employee employee = employeeDao.get(sysUser.getId());
|
|
|
|
- if (org.apache.commons.lang3.StringUtils.isEmpty(queryInfo.getOrganIdList())) {
|
|
|
|
- queryInfo.setOrganIdList(employee.getOrganIdList());
|
|
|
|
- } else if (org.apache.commons.lang3.StringUtils.isEmpty(employee.getOrganIdList())) {
|
|
|
|
- throw new BizException("用户所在分部异常");
|
|
|
|
- } else {
|
|
|
|
- List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
|
|
|
|
- if (!list.containsAll(Arrays.asList(queryInfo.getOrganIdList().split(",")))) {
|
|
|
|
- throw new BizException("非法请求");
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ queryInfo.setOrganIdList(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganIdList(),sysUser.getIsSuperAdmin()));
|
|
List<ExtraExerciseStudentsDto> rows = extracurricularExercisesReplyService.findExtraExercises(queryInfo).getRows();
|
|
List<ExtraExerciseStudentsDto> rows = extracurricularExercisesReplyService.findExtraExercises(queryInfo).getRows();
|
|
if (CollectionUtils.isEmpty(rows)) {
|
|
if (CollectionUtils.isEmpty(rows)) {
|
|
response.setStatus(500);
|
|
response.setStatus(500);
|
|
@@ -1913,17 +1710,7 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new BizException("用户信息获取失败");
|
|
throw new BizException("用户信息获取失败");
|
|
}
|
|
}
|
|
- Employee employee = employeeDao.get(sysUser.getId());
|
|
|
|
- if (org.apache.commons.lang3.StringUtils.isEmpty(queryInfo.getOrganIdList())) {
|
|
|
|
- queryInfo.setOrganIdList(employee.getOrganIdList());
|
|
|
|
- } else if (org.apache.commons.lang3.StringUtils.isEmpty(employee.getOrganIdList())) {
|
|
|
|
- throw new BizException("用户所在分部异常");
|
|
|
|
- } else {
|
|
|
|
- List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
|
|
|
|
- if (!list.containsAll(Arrays.asList(queryInfo.getOrganIdList().split(",")))) {
|
|
|
|
- throw new BizException("非法请求");
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ queryInfo.setOrganIdList(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganIdList(),sysUser.getIsSuperAdmin()));
|
|
List<StudentExercisesSituationDto> rows = studentExtracurricularExercisesSituationService.findStudentExtracurricularExercisesSituations(queryInfo).getRows();
|
|
List<StudentExercisesSituationDto> rows = studentExtracurricularExercisesSituationService.findStudentExtracurricularExercisesSituations(queryInfo).getRows();
|
|
if (CollectionUtils.isEmpty(rows)) {
|
|
if (CollectionUtils.isEmpty(rows)) {
|
|
response.setStatus(500);
|
|
response.setStatus(500);
|
|
@@ -1966,17 +1753,7 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new BizException("用户信息获取失败");
|
|
throw new BizException("用户信息获取失败");
|
|
}
|
|
}
|
|
- Employee employee = employeeDao.get(sysUser.getId());
|
|
|
|
- if (org.apache.commons.lang3.StringUtils.isEmpty(queryInfo.getOrganIdList())) {
|
|
|
|
- queryInfo.setOrganIdList(employee.getOrganIdList());
|
|
|
|
- } else if (org.apache.commons.lang3.StringUtils.isEmpty(employee.getOrganIdList())) {
|
|
|
|
- throw new BizException("用户所在分部异常");
|
|
|
|
- } else {
|
|
|
|
- List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
|
|
|
|
- if (!list.containsAll(Arrays.asList(queryInfo.getOrganIdList().split(",")))) {
|
|
|
|
- throw new BizException("非法请求");
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ queryInfo.setOrganIdList(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganIdList(),sysUser.getIsSuperAdmin()));
|
|
List<TeacherCourseSalaryDetail4WebDto> rows = courseScheduleTeacherSalaryService.findIsSettlementCourseSalarys(queryInfo).getRows();
|
|
List<TeacherCourseSalaryDetail4WebDto> rows = courseScheduleTeacherSalaryService.findIsSettlementCourseSalarys(queryInfo).getRows();
|
|
if (CollectionUtils.isEmpty(rows)) {
|
|
if (CollectionUtils.isEmpty(rows)) {
|
|
response.setStatus(500);
|
|
response.setStatus(500);
|
|
@@ -2049,17 +1826,7 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new BizException("用户信息获取失败");
|
|
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.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
PageInfo<Student4operating> PageOperatingStudents = studentManageService.getOperatingStudents(queryInfo);
|
|
PageInfo<Student4operating> PageOperatingStudents = studentManageService.getOperatingStudents(queryInfo);
|
|
|
|
|
|
if (PageOperatingStudents.getTotal() <= 0) {
|
|
if (PageOperatingStudents.getTotal() <= 0) {
|
|
@@ -2122,8 +1889,7 @@ public class ExportController extends BaseController {
|
|
@PreAuthorize("@pcs.hasPermissions('export/vipCourseReviews')")
|
|
@PreAuthorize("@pcs.hasPermissions('export/vipCourseReviews')")
|
|
public void vipCourseReviews(CourseReviewQueryInfo queryInfo, HttpServletResponse response) throws IOException {
|
|
public void vipCourseReviews(CourseReviewQueryInfo queryInfo, HttpServletResponse response) throws IOException {
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
- Employee employee = employeeDao.get(sysUser.getId());
|
|
|
|
- queryInfo.setOrganId(employee.getOrganIdList());
|
|
|
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
queryInfo.setIsExport(1);
|
|
queryInfo.setIsExport(1);
|
|
queryInfo.setPage(1);
|
|
queryInfo.setPage(1);
|
|
queryInfo.setRows(49999);
|
|
queryInfo.setRows(49999);
|
|
@@ -2264,17 +2030,7 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new IOException("用户信息获取失败");
|
|
throw new IOException("用户信息获取失败");
|
|
}
|
|
}
|
|
- Employee employee = employeeDao.get(sysUser.getId());
|
|
|
|
- if (StringUtils.isEmpty(queryInfo.getOrganId())) {
|
|
|
|
- queryInfo.setOrganId(employee.getOrganIdList());
|
|
|
|
- } else if (StringUtils.isEmpty(employee.getOrganIdList())) {
|
|
|
|
- throw new IOException("用户所在分部异常");
|
|
|
|
- } else {
|
|
|
|
- List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
|
|
|
|
- if (!list.containsAll(Arrays.asList(queryInfo.getOrganId().split(",")))) {
|
|
|
|
- throw new IOException("非法请求");
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
queryInfo.setRows(65000);
|
|
queryInfo.setRows(65000);
|
|
PageInfo<CooperationOrgan> pageList = cooperationOrganService.queryPage(queryInfo);
|
|
PageInfo<CooperationOrgan> pageList = cooperationOrganService.queryPage(queryInfo);
|
|
if (pageList.getTotal() <= 0) {
|
|
if (pageList.getTotal() <= 0) {
|
|
@@ -2314,10 +2070,7 @@ public class ExportController extends BaseController {
|
|
@PreAuthorize("@pcs.hasPermissions('export/musicGroupRegister')")
|
|
@PreAuthorize("@pcs.hasPermissions('export/musicGroupRegister')")
|
|
public void musicGroupRegister(String organIds, HttpServletResponse response) throws IOException {
|
|
public void musicGroupRegister(String organIds, HttpServletResponse response) throws IOException {
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
- Employee employee = employeeDao.get(sysUser.getId());
|
|
|
|
- if (StringUtils.isBlank(organIds)) {
|
|
|
|
- organIds = employee.getOrganIdList();
|
|
|
|
- }
|
|
|
|
|
|
+ organIds = organizationService.getEmployeeOrgan(sysUser.getId(),organIds,sysUser.getIsSuperAdmin());
|
|
List<MusicGroupStatusEnum> musicGroupStatusList = new ArrayList<>();
|
|
List<MusicGroupStatusEnum> musicGroupStatusList = new ArrayList<>();
|
|
musicGroupStatusList.add(MusicGroupStatusEnum.APPLY);
|
|
musicGroupStatusList.add(MusicGroupStatusEnum.APPLY);
|
|
musicGroupStatusList.add(MusicGroupStatusEnum.PAY);
|
|
musicGroupStatusList.add(MusicGroupStatusEnum.PAY);
|
|
@@ -2442,13 +2195,7 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new BizException("用户信息获取失败");
|
|
throw new BizException("用户信息获取失败");
|
|
}
|
|
}
|
|
- Employee employee = employeeDao.get(sysUser.getId());
|
|
|
|
- if (StringUtils.isEmpty(queryInfo.getRoutingOrganId()) && queryInfo.getOrderType().equals("3")) {
|
|
|
|
- queryInfo.setRoutingOrganId(employee.getOrganIdList());
|
|
|
|
- queryInfo.setOldOrganId(employee.getOrganIdList());
|
|
|
|
- } else if (StringUtils.isEmpty(queryInfo.getOrganId())) {
|
|
|
|
- queryInfo.setOrganId(employee.getOrganIdList());
|
|
|
|
- }
|
|
|
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
if (StringUtils.isNotBlank(queryInfo.getSearch())) {
|
|
if (StringUtils.isNotBlank(queryInfo.getSearch())) {
|
|
List<BasicUserDto> users = studentPaymentOrderDao.getUsers(queryInfo.getSearch());
|
|
List<BasicUserDto> users = studentPaymentOrderDao.getUsers(queryInfo.getSearch());
|
|
List<Integer> userIds = users.stream().map(BasicUserDto::getUserId).collect(Collectors.toList());
|
|
List<Integer> userIds = users.stream().map(BasicUserDto::getUserId).collect(Collectors.toList());
|
|
@@ -2550,10 +2297,7 @@ public class ExportController extends BaseController {
|
|
@PreAuthorize("@pcs.hasPermissions('export/musicGroupNormalStudentNum')")
|
|
@PreAuthorize("@pcs.hasPermissions('export/musicGroupNormalStudentNum')")
|
|
public void musicGroupNormalStudentNum(String organIds, HttpServletResponse response) throws IOException {
|
|
public void musicGroupNormalStudentNum(String organIds, HttpServletResponse response) throws IOException {
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
- Employee employee = employeeDao.get(sysUser.getId());
|
|
|
|
- if (StringUtils.isBlank(organIds)) {
|
|
|
|
- organIds = employee.getOrganIdList();
|
|
|
|
- }
|
|
|
|
|
|
+ organIds = organizationService.getEmployeeOrgan(sysUser.getId(),organIds,sysUser.getIsSuperAdmin());
|
|
|
|
|
|
List<MusicGroupStatusEnum> musicGroupStatusList = new ArrayList<>();
|
|
List<MusicGroupStatusEnum> musicGroupStatusList = new ArrayList<>();
|
|
musicGroupStatusList.add(MusicGroupStatusEnum.PAY);
|
|
musicGroupStatusList.add(MusicGroupStatusEnum.PAY);
|
|
@@ -2644,10 +2388,7 @@ public class ExportController extends BaseController {
|
|
@PreAuthorize("@pcs.hasPermissions('export/studentOrder')")
|
|
@PreAuthorize("@pcs.hasPermissions('export/studentOrder')")
|
|
public void studentOrder(String organIds, Date date, HttpServletResponse response) throws IOException {
|
|
public void studentOrder(String organIds, Date date, HttpServletResponse response) throws IOException {
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
- Employee employee = employeeDao.get(sysUser.getId());
|
|
|
|
- if (StringUtils.isBlank(organIds)) {
|
|
|
|
- organIds = employee.getOrganIdList();
|
|
|
|
- }
|
|
|
|
|
|
+ organIds = organizationService.getEmployeeOrgan(sysUser.getId(),organIds,sysUser.getIsSuperAdmin());
|
|
Date startTime = DateUtil.getFirstDayOfMonth(date);
|
|
Date startTime = DateUtil.getFirstDayOfMonth(date);
|
|
Date EndTime = DateUtil.getLastSecondWithDay(DateUtil.getLastDayOfMonth(date));
|
|
Date EndTime = DateUtil.getLastSecondWithDay(DateUtil.getLastDayOfMonth(date));
|
|
|
|
|
|
@@ -2740,17 +2481,7 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new BizException("用户信息获取失败");
|
|
throw new BizException("用户信息获取失败");
|
|
}
|
|
}
|
|
- Employee employee = employeeDao.get(sysUser.getId());
|
|
|
|
- if (StringUtils.isEmpty(queryInfo.getOrganIdList())) {
|
|
|
|
- queryInfo.setOrganIdList(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.getOrganIdList().split(",")))) {
|
|
|
|
- throw new BizException("非法请求");
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ queryInfo.setOrganIdList(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganIdList(),sysUser.getIsSuperAdmin()));
|
|
if (queryInfo.getEndTime() != null) {
|
|
if (queryInfo.getEndTime() != null) {
|
|
queryInfo.setEndTime(DateUtil.getLastTimeWithDay(queryInfo.getEndTime()));
|
|
queryInfo.setEndTime(DateUtil.getLastTimeWithDay(queryInfo.getEndTime()));
|
|
}
|
|
}
|
|
@@ -3156,17 +2887,7 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new BizException("用户信息获取失败");
|
|
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.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(),queryInfo.getOrganId(),sysUser.getIsSuperAdmin()));
|
|
queryInfo.setPage(1);
|
|
queryInfo.setPage(1);
|
|
queryInfo.setRows(49999);
|
|
queryInfo.setRows(49999);
|
|
List<Teacher> rows = teacherService.queryPageDetail(queryInfo).getRows();
|
|
List<Teacher> rows = teacherService.queryPageDetail(queryInfo).getRows();
|
|
@@ -3296,18 +3017,17 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new BizException("用户信息获取失败");
|
|
throw new BizException("用户信息获取失败");
|
|
}
|
|
}
|
|
- Employee employee = employeeDao.get(sysUser.getId());
|
|
|
|
|
|
+ String organIds = organizationService.getEmployeeOrgan(sysUser.getId(),"",sysUser.getIsSuperAdmin());
|
|
queryInfo.setPage(1);
|
|
queryInfo.setPage(1);
|
|
queryInfo.setRows(49999);
|
|
queryInfo.setRows(49999);
|
|
-
|
|
|
|
- List<Integer> organIds = new ArrayList<>();
|
|
|
|
- if(StringUtils.isNotBlank(queryInfo.getOrganIds())){
|
|
|
|
- organIds = Arrays.stream(queryInfo.getOrganIds().split(",")).map(id->Integer.valueOf(id)).collect(Collectors.toList());
|
|
|
|
- }else if(StringUtils.isNotBlank(employee.getOrganIdList())){
|
|
|
|
- organIds = Arrays.stream(employee.getOrganIdList().split(",")).map(id->Integer.valueOf(id)).collect(Collectors.toList());
|
|
|
|
|
|
+ if(StringUtils.isEmpty(organIds)){
|
|
|
|
+ throw new BizException("没有可导出的记录");
|
|
|
|
+ }
|
|
|
|
+ List<Integer> collect = Arrays.stream(organIds.split(",")).mapToInt(Integer::parseInt).boxed().collect(Collectors.toList());
|
|
|
|
+ List<Integer> ids = collect.stream().filter(id -> !OrganizationService.EXCLUDE_ORGAN_IDS.contains(id)).collect(Collectors.toList());
|
|
|
|
+ if(ids == null || ids.size() == 0){
|
|
|
|
+ throw new BizException("没有可导出的记录");
|
|
}
|
|
}
|
|
- List<Integer> ids = organIds.stream().filter(id -> !OrganizationService.EXCLUDE_ORGAN_IDS.contains(id)).collect(Collectors.toList());
|
|
|
|
-
|
|
|
|
List<EduOrganStudentDataDto> rows = studentService.queryOrganStudentOverView(ids, queryInfo).getRows();
|
|
List<EduOrganStudentDataDto> rows = studentService.queryOrganStudentOverView(ids, queryInfo).getRows();
|
|
if (CollectionUtils.isEmpty(rows)) {
|
|
if (CollectionUtils.isEmpty(rows)) {
|
|
response.setStatus(200);
|
|
response.setStatus(200);
|
|
@@ -3349,18 +3069,17 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new BizException("用户信息获取失败");
|
|
throw new BizException("用户信息获取失败");
|
|
}
|
|
}
|
|
- Employee employee = employeeDao.get(sysUser.getId());
|
|
|
|
|
|
+ String organIds = organizationService.getEmployeeOrgan(sysUser.getId(),"",sysUser.getIsSuperAdmin());
|
|
queryInfo.setPage(1);
|
|
queryInfo.setPage(1);
|
|
queryInfo.setRows(49999);
|
|
queryInfo.setRows(49999);
|
|
-
|
|
|
|
- List<Integer> organIds = new ArrayList<>();
|
|
|
|
- if(StringUtils.isNotBlank(queryInfo.getOrganIds())){
|
|
|
|
- organIds = Arrays.stream(queryInfo.getOrganIds().split(",")).map(id->Integer.valueOf(id)).collect(Collectors.toList());
|
|
|
|
- }else if(StringUtils.isNotBlank(employee.getOrganIdList())){
|
|
|
|
- organIds = Arrays.stream(employee.getOrganIdList().split(",")).map(id->Integer.valueOf(id)).collect(Collectors.toList());
|
|
|
|
|
|
+ if(StringUtils.isEmpty(organIds)){
|
|
|
|
+ throw new BizException("没有可导出的记录");
|
|
|
|
+ }
|
|
|
|
+ List<Integer> collect = Arrays.stream(organIds.split(",")).mapToInt(Integer::parseInt).boxed().collect(Collectors.toList());
|
|
|
|
+ List<Integer> ids = collect.stream().filter(id -> !OrganizationService.EXCLUDE_ORGAN_IDS.contains(id)).collect(Collectors.toList());
|
|
|
|
+ if(ids == null || ids.size() == 0){
|
|
|
|
+ throw new BizException("没有可导出的记录");
|
|
}
|
|
}
|
|
- List<Integer> ids = organIds.stream().filter(id -> !OrganizationService.EXCLUDE_ORGAN_IDS.contains(id)).collect(Collectors.toList());
|
|
|
|
-
|
|
|
|
List<EduOrganStudentDataDto> rows = indexService.organStudentOverView(ids, queryInfo).getRows();
|
|
List<EduOrganStudentDataDto> rows = indexService.organStudentOverView(ids, queryInfo).getRows();
|
|
if (CollectionUtils.isEmpty(rows)) {
|
|
if (CollectionUtils.isEmpty(rows)) {
|
|
response.setStatus(200);
|
|
response.setStatus(200);
|
|
@@ -3455,16 +3174,17 @@ public class ExportController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
throw new BizException("用户信息获取失败");
|
|
throw new BizException("用户信息获取失败");
|
|
}
|
|
}
|
|
- Employee employee = employeeDao.get(sysUser.getId());
|
|
|
|
|
|
+ String organIds = organizationService.getEmployeeOrgan(sysUser.getId(),"",sysUser.getIsSuperAdmin());
|
|
queryInfo.setPage(1);
|
|
queryInfo.setPage(1);
|
|
queryInfo.setRows(49999);
|
|
queryInfo.setRows(49999);
|
|
- List<Integer> organIds = new ArrayList<>();
|
|
|
|
- if(StringUtils.isNotBlank(queryInfo.getOrganIds())){
|
|
|
|
- organIds = Arrays.stream(queryInfo.getOrganIds().split(",")).map(id->Integer.valueOf(id)).collect(Collectors.toList());
|
|
|
|
- }else if(StringUtils.isNotBlank(employee.getOrganIdList())){
|
|
|
|
- organIds = Arrays.stream(employee.getOrganIdList().split(",")).map(id->Integer.valueOf(id)).collect(Collectors.toList());
|
|
|
|
|
|
+ if(StringUtils.isEmpty(organIds)){
|
|
|
|
+ throw new BizException("没有可导出的记录");
|
|
|
|
+ }
|
|
|
|
+ List<Integer> collect = Arrays.stream(organIds.split(",")).mapToInt(Integer::parseInt).boxed().collect(Collectors.toList());
|
|
|
|
+ List<Integer> ids = collect.stream().filter(id -> !OrganizationService.EXCLUDE_ORGAN_IDS.contains(id)).collect(Collectors.toList());
|
|
|
|
+ if(ids == null || ids.size() == 0){
|
|
|
|
+ throw new BizException("没有可导出的记录");
|
|
}
|
|
}
|
|
- List<Integer> ids = organIds.stream().filter(id -> !OrganizationService.EXCLUDE_ORGAN_IDS.contains(id)).collect(Collectors.toList());
|
|
|
|
Object object = studentService.countCloudTeacherActive(ids, queryInfo).get("resultList");
|
|
Object object = studentService.countCloudTeacherActive(ids, queryInfo).get("resultList");
|
|
if(object == null){
|
|
if(object == null){
|
|
throw new BizException("没有可导出的记录");
|
|
throw new BizException("没有可导出的记录");
|