|
@@ -1,6 +1,5 @@
|
|
|
package com.ym.mec.biz.service.impl;
|
|
|
|
|
|
-import com.aliyun.oss.common.utils.DateUtil;
|
|
|
import com.ym.mec.biz.dal.dao.ClassGroupDao;
|
|
|
import com.ym.mec.biz.dal.dao.MusicGroupPaymentCalenderDao;
|
|
|
import com.ym.mec.biz.dal.dao.MusicGroupStudentFeeDao;
|
|
@@ -14,8 +13,8 @@ import com.ym.mec.common.dal.BaseDAO;
|
|
|
import com.ym.mec.common.entity.ImGroupModel;
|
|
|
import com.ym.mec.common.page.PageInfo;
|
|
|
import com.ym.mec.common.service.impl.BaseServiceImpl;
|
|
|
-import com.ym.mec.common.utils.DateUtils;
|
|
|
import com.ym.mec.util.collection.MapUtil;
|
|
|
+import com.ym.mec.util.date.DateUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -338,19 +337,17 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
e.setStudentNames(classGroupDao.findVipStuNames(e.getMusicGroupId()));
|
|
|
}else {
|
|
|
//获取学员乐团课的续费状态
|
|
|
-
|
|
|
- //获取当前乐团缴费周期
|
|
|
- List<MusicGroupPaymentCalender> musicGroupPaymentCalenders = musicGroupPaymentCalenderDao.findByMusicGroupId(e.getMusicGroupId());
|
|
|
- //获取下次缴费时间
|
|
|
MusicGroupStudentFee musicGroupStudentFee = musicGroupStudentFeeDao.findByUser(userId,e.getMusicGroupId());
|
|
|
if(musicGroupStudentFee != null){
|
|
|
-
|
|
|
+ int i = DateUtil.daysBetween(new Date(),musicGroupStudentFee.getNextPaymentDate());
|
|
|
+ e.setRenewStatus(i < 8?0:1);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
return classGroupDao.queryCoursePage(userId);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
@Override
|
|
|
public List<ImGroupModel> queryUserGroups(Integer userId) {
|
|
|
return classGroupDao.queryUserGroups(userId);
|