|
@@ -3,6 +3,7 @@ package com.ym.mec.web.controller;
|
|
|
import com.ym.mec.biz.dal.dao.EmployeeDao;
|
|
|
import com.ym.mec.biz.dal.dto.*;
|
|
|
import com.ym.mec.biz.dal.entity.Employee;
|
|
|
+import com.ym.mec.biz.dal.entity.MusicGroupPaymentCalenderStudentDetail;
|
|
|
import com.ym.mec.common.exception.BizException;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
@@ -13,6 +14,7 @@ import io.swagger.annotations.ApiParam;
|
|
|
import java.util.Arrays;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -381,10 +383,11 @@ public class ClassGroupController extends BaseController {
|
|
|
@PostMapping("/queryStudentPaymentCalenders")
|
|
|
@PreAuthorize("@pcs.hasPermissions('classGroup/queryStudentPaymentCalenders')")
|
|
|
public HttpResponseResult queryStudentPaymentCalenders(@RequestBody MergeClassSplitClassAffirmDto mergeClassSplitClassAffirmDto) {
|
|
|
- return succeed(classGroupService.queryStudentPaymentCalenders(mergeClassSplitClassAffirmDto.getMasterClassGroupId(),
|
|
|
+ Map<Integer, List<MusicGroupPaymentCalenderStudentDetail>> collect = classGroupService.queryStudentPaymentCalenders(mergeClassSplitClassAffirmDto.getMasterClassGroupId(),
|
|
|
mergeClassSplitClassAffirmDto.getClassGroupStudents(),
|
|
|
mergeClassSplitClassAffirmDto.getStudentIds())
|
|
|
- .stream().collect(Collectors.groupingBy(e -> e.getClassGroupId())));
|
|
|
+ .stream().collect(Collectors.groupingBy(e -> e.getClassGroupId()));
|
|
|
+ return succeed(collect);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "跨团班级合并提交")
|