|
@@ -5,6 +5,7 @@ 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.entity.Employee;
|
|
|
+import com.ym.mec.biz.dal.entity.MusicGroup;
|
|
|
import com.ym.mec.biz.dal.page.ArrearageStudentsQueryInfo;
|
|
|
import com.ym.mec.biz.service.EmployeeService;
|
|
|
import com.ym.mec.common.page.PageInfo;
|
|
@@ -128,4 +129,28 @@ public class MusicGroupPaymentCalenderDetailController extends BaseController {
|
|
|
}
|
|
|
return succeed(musicGroupPaymentCalenderDetailService.queryArrearageStudents(queryInfo));
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "获取未缴费学员关联乐团列表")
|
|
|
+ @GetMapping("/getNoPaymentStudentMusicGroups")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('musicGroupPaymentCalenderDetail/getNoPaymentStudentMusicGroups')")
|
|
|
+ public HttpResponseResult<List<MusicGroup>> getNoPaymentStudentMusicGroups(String organIds){
|
|
|
+ SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
+ if (sysUser == null) {
|
|
|
+ return failed("用户信息获取失败");
|
|
|
+ }
|
|
|
+ if (!sysUser.getIsSuperAdmin()) {
|
|
|
+ Employee employee = employeeService.get(sysUser.getId());
|
|
|
+ if (StringUtils.isBlank(organIds)) {
|
|
|
+ organIds = employee.getOrganIdList();
|
|
|
+ }else if(StringUtils.isEmpty(employee.getOrganIdList())){
|
|
|
+ return failed("用户所在分部异常");
|
|
|
+ }else {
|
|
|
+ List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
|
|
|
+ if(!list.containsAll(Arrays.asList(organIds.split(",")))){
|
|
|
+ return failed("非法请求");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return succeed(musicGroupPaymentCalenderDetailService.getNoPaymentStudentMusicGroups(organIds));
|
|
|
+ }
|
|
|
}
|