|
@@ -2,22 +2,17 @@ package com.ym.mec.web.controller;
|
|
|
|
|
|
import com.ym.mec.auth.api.client.SysUserFeignService;
|
|
import com.ym.mec.auth.api.client.SysUserFeignService;
|
|
import com.ym.mec.auth.api.entity.SysUser;
|
|
import com.ym.mec.auth.api.entity.SysUser;
|
|
-import com.ym.mec.biz.dal.dao.EmployeeDao;
|
|
|
|
import com.ym.mec.biz.dal.dto.MusicArrearageStudentDto;
|
|
import com.ym.mec.biz.dal.dto.MusicArrearageStudentDto;
|
|
import com.ym.mec.biz.dal.entity.Employee;
|
|
import com.ym.mec.biz.dal.entity.Employee;
|
|
import com.ym.mec.biz.dal.entity.MusicGroup;
|
|
import com.ym.mec.biz.dal.entity.MusicGroup;
|
|
import com.ym.mec.biz.dal.page.ArrearageStudentsQueryInfo;
|
|
import com.ym.mec.biz.dal.page.ArrearageStudentsQueryInfo;
|
|
import com.ym.mec.biz.service.EmployeeService;
|
|
import com.ym.mec.biz.service.EmployeeService;
|
|
import com.ym.mec.common.page.PageInfo;
|
|
import com.ym.mec.common.page.PageInfo;
|
|
-import com.ym.mec.common.page.QueryInfo;
|
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
-
|
|
|
|
import java.math.BigDecimal;
|
|
import java.math.BigDecimal;
|
|
import java.util.Arrays;
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
-import java.util.Set;
|
|
|
|
-
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
@@ -26,7 +21,6 @@ import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
-
|
|
|
|
import com.ym.mec.biz.dal.dto.MusicGroupPaymentCalenderAddStudentDto;
|
|
import com.ym.mec.biz.dal.dto.MusicGroupPaymentCalenderAddStudentDto;
|
|
import com.ym.mec.biz.dal.page.MusicCalenderDetailQueryInfo;
|
|
import com.ym.mec.biz.dal.page.MusicCalenderDetailQueryInfo;
|
|
import com.ym.mec.biz.service.MusicGroupPaymentCalenderDetailService;
|
|
import com.ym.mec.biz.service.MusicGroupPaymentCalenderDetailService;
|
|
@@ -122,17 +116,17 @@ public class MusicGroupPaymentCalenderDetailController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
return failed("用户信息获取失败");
|
|
return failed("用户信息获取失败");
|
|
}
|
|
}
|
|
- Employee employee = employeeService.get(sysUser.getId());
|
|
|
|
- if (StringUtils.isBlank(queryInfo.getOrganIds())) {
|
|
|
|
- queryInfo.setOrganIds(employee.getOrganIdList());
|
|
|
|
- }else if(StringUtils.isEmpty(employee.getOrganIdList())){
|
|
|
|
- return failed("用户所在分部异常");
|
|
|
|
- }else {
|
|
|
|
- List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
|
|
|
|
- if(!list.containsAll(Arrays.asList(queryInfo.getOrganIds().split(",")))){
|
|
|
|
- return failed("非法请求");
|
|
|
|
- }
|
|
|
|
|
|
+ Employee employee = employeeService.get(sysUser.getId());
|
|
|
|
+ if (StringUtils.isBlank(queryInfo.getOrganIds())) {
|
|
|
|
+ queryInfo.setOrganIds(employee.getOrganIdList());
|
|
|
|
+ }else if(StringUtils.isEmpty(employee.getOrganIdList())){
|
|
|
|
+ return failed("用户所在分部异常");
|
|
|
|
+ }else {
|
|
|
|
+ List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
|
|
|
|
+ if(!list.containsAll(Arrays.asList(queryInfo.getOrganIds().split(",")))){
|
|
|
|
+ return failed("非法请求");
|
|
}
|
|
}
|
|
|
|
+ }
|
|
return succeed(musicGroupPaymentCalenderDetailService.queryArrearageStudents(queryInfo));
|
|
return succeed(musicGroupPaymentCalenderDetailService.queryArrearageStudents(queryInfo));
|
|
}
|
|
}
|
|
|
|
|