|
@@ -10,6 +10,7 @@ import com.ym.mec.biz.dal.enums.*;
|
|
|
import com.ym.mec.biz.dal.page.CloudTeacherActiveQueryInfo;
|
|
|
import com.ym.mec.biz.dal.page.OrganCloudStudyStudentDataQueryInfo;
|
|
|
import com.ym.mec.biz.dal.page.StudentQueryInfo;
|
|
|
+import com.ym.mec.biz.service.OrganizationService;
|
|
|
import com.ym.mec.biz.service.StudentService;
|
|
|
import com.ym.mec.biz.service.SysConfigService;
|
|
|
import com.ym.mec.biz.service.SysMessageService;
|
|
@@ -68,9 +69,10 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
private OrganizationDao organizationDao;
|
|
|
@Autowired
|
|
|
private IndexBaseMonthDataDao indexBaseMonthDataDao;
|
|
|
-
|
|
|
@Autowired
|
|
|
private EmployeeDao employeeDao;
|
|
|
+ @Autowired
|
|
|
+ private OrganizationService organizationService;
|
|
|
|
|
|
@Override
|
|
|
public BaseDAO<Integer, Student> getDAO() {
|
|
@@ -526,6 +528,13 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
|
|
|
List<Map<Integer, String>> studentGroupNamesMapList = studentRegistrationDao.queryStudentMusicGroupNamesMap(studentIds);
|
|
|
Map<Integer, String> studentGroupNamesMap = MapUtil.convertIntegerMap(studentGroupNamesMapList);
|
|
|
+
|
|
|
+ List<Map<Integer, String>> studentGroupEduMapList = studentRegistrationDao.queryStudentMusicGroupEduMap(studentIds);
|
|
|
+ Map<Integer, String> studentGroupEduMap = MapUtil.convertIntegerMap(studentGroupEduMapList);
|
|
|
+
|
|
|
+ List<Map<Integer, BigDecimal>> activeAmountMapList = cloudTeacherOrderDao.queryActiveAmountMap(studentIds);
|
|
|
+ Map<Integer, BigDecimal> activeAmountMap = MapUtil.convertIntegerMap(activeAmountMapList);
|
|
|
+
|
|
|
Set<Integer> hasVipCourseStudentIds = courseScheduleStudentPaymentDao.getHasVipCourseStudentIds(studentIds);
|
|
|
|
|
|
List<Map<Integer, String>> studentSchoolNamesMapList = studentDao.getStudentCooperationNameMap(studentIds);
|
|
@@ -558,10 +567,23 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
if(!CollectionUtils.isEmpty(studentNotStartPracticeCourseNumMapList)){
|
|
|
studentNotStartPracticeCourseNumMap = MapUtil.convertIntegerMap(studentNotStartPracticeCourseNumMapList);
|
|
|
}
|
|
|
-
|
|
|
+ //获取分部年级列表
|
|
|
+ Map<Integer, String> gradeList = organizationService.getGradeList(1);
|
|
|
for (EduOrganStudentListDto eduOrganStudentListDto : dataList1) {
|
|
|
EduOrganStudentListExportDto data = new EduOrganStudentListExportDto();
|
|
|
BeanUtils.copyProperties(eduOrganStudentListDto, data);
|
|
|
+ if (StringUtils.isNotEmpty(eduOrganStudentListDto.getCurrentGradeNum())) {
|
|
|
+ String grade = gradeList.get(Integer.parseInt(eduOrganStudentListDto.getCurrentGradeNum()));
|
|
|
+ if (StringUtils.isNotEmpty(grade)) {
|
|
|
+ data.setCurrentGradeNum(grade);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(activeAmountMap.containsKey(data.getStudentId())){
|
|
|
+ data.setActiveAmount(activeAmountMap.get(data.getStudentId()));
|
|
|
+ }
|
|
|
+ if(studentGroupEduMap.containsKey(data.getStudentId())){
|
|
|
+ data.setEducationName(studentGroupEduMap.get(data.getStudentId()));
|
|
|
+ }
|
|
|
if(studentGroupNamesMap.containsKey(data.getStudentId())){
|
|
|
data.setMusicGroupNames(studentGroupNamesMap.get(data.getStudentId()));
|
|
|
}
|
|
@@ -914,14 +936,15 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
@Override
|
|
|
public void remarkCountFlag() {
|
|
|
//清除标记
|
|
|
-// studentDao.cleanCountFlag();
|
|
|
+ studentDao.cleanCountFlag();
|
|
|
//打标记
|
|
|
// List<Integer> studentIds = new ArrayList<>();
|
|
|
//获取在会员团的学员
|
|
|
// studentIds.addAll(studentRegistrationDao.queryHasMemberGroupStudent());
|
|
|
//获取购买过云教练(非活动)的学员
|
|
|
// studentIds.addAll(cloudTeacherOrderDao.getStudentIds());
|
|
|
-// studentDao.remarkCountFlag(studentIds);
|
|
|
+ //标记目标学员
|
|
|
+ studentDao.remarkCountFlag();
|
|
|
//更新目标学员、目标金额
|
|
|
SysConfig config = sysConfigDao.findByParamName("cloud_teacher_active_target");
|
|
|
config.setParanValue(JSON.toJSONString(studentRegistrationDao.queryOrganTarget()));
|