|
@@ -43,6 +43,8 @@ public class StudentStatisticsServiceImpl extends BaseServiceImpl<Integer, Stude
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public void updateStudentStatistics() {
|
|
public void updateStudentStatistics() {
|
|
|
|
+ //更新学员基本信息
|
|
|
|
+ studentBasicInfoDao.updateStudentBasicInfo();
|
|
RedisTemplate<String, Integer> redisTemplate = redisCache.getRedisTemplate();
|
|
RedisTemplate<String, Integer> redisTemplate = redisCache.getRedisTemplate();
|
|
Integer num = redisTemplate.opsForValue().get("updateStudentStatisticsNum:");
|
|
Integer num = redisTemplate.opsForValue().get("updateStudentStatisticsNum:");
|
|
if(num == null || num == 1){
|
|
if(num == null || num == 1){
|
|
@@ -72,6 +74,9 @@ public class StudentStatisticsServiceImpl extends BaseServiceImpl<Integer, Stude
|
|
}else if (num == 8){
|
|
}else if (num == 8){
|
|
//更新乐团主管、指导老师
|
|
//更新乐团主管、指导老师
|
|
studentStatisticsDao.updateTeacherAndEdu();
|
|
studentStatisticsDao.updateTeacherAndEdu();
|
|
|
|
+ }else if (num == 8){
|
|
|
|
+ //更新学员合作单位
|
|
|
|
+ studentStatisticsDao.updateCooperationOrgan();
|
|
} else if (num == 9) {
|
|
} else if (num == 9) {
|
|
//更新第一次付费时间
|
|
//更新第一次付费时间
|
|
studentStatisticsDao.updateFirstOrderTime();
|
|
studentStatisticsDao.updateFirstOrderTime();
|