|
@@ -12,6 +12,7 @@ import com.ym.mec.biz.dal.entity.MusicGroupPaymentCalenderDetail;
|
|
|
import com.ym.mec.biz.dal.entity.MusicGroupStudentFee.PaymentStatus;
|
|
|
import com.ym.mec.biz.dal.entity.StudentRegistration;
|
|
|
import com.ym.mec.biz.service.MemberRankPrivilegesService;
|
|
|
+import com.ym.mec.biz.service.MusicGroupPaymentCalenderActivityService;
|
|
|
import com.ym.mec.biz.service.MusicGroupPaymentCalenderService;
|
|
|
import com.ym.mec.biz.service.StudentRegistrationService;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
@@ -48,6 +49,8 @@ public class MusicGroupPaymentCalenderController extends BaseController {
|
|
|
private MusicGroupPaymentCalenderStudentDetailDao musicGroupPaymentCalenderStudentDetailDao;
|
|
|
@Autowired
|
|
|
private MusicGroupPaymentStudentCourseDetailDao musicGroupPaymentStudentCourseDetailDao;
|
|
|
+ @Autowired
|
|
|
+ private MusicGroupPaymentCalenderActivityService musicGroupPaymentCalenderActivityService;
|
|
|
@Autowired
|
|
|
private MemberRankPrivilegesService memberRankPrivilegesService;
|
|
|
|
|
@@ -76,14 +79,17 @@ public class MusicGroupPaymentCalenderController extends BaseController {
|
|
|
return failed("乐团报名信息不存在");
|
|
|
}
|
|
|
ModelMap model = new ModelMap();
|
|
|
+ //课程相关信息
|
|
|
if(calender.getPaymentType() == MusicGroupPaymentCalender.PaymentType.SPAN_GROUP_CLASS_ADJUST){
|
|
|
model.put("musicGroupPaymentCalenderStudentDetails",musicGroupPaymentCalenderStudentDetailDao.findByBatchNoAndUserId(calender.getBatchNo(),userId));
|
|
|
}else {
|
|
|
model.put("calenderCourseSettings", musicGroupPaymentStudentCourseDetailDao.findByCalenderAndUserId(calenderId,userId));
|
|
|
}
|
|
|
+ //活动相关信息
|
|
|
+ model.put("activity",musicGroupPaymentCalenderActivityService.findByCalenderId(calenderId));
|
|
|
calender.setMemberPaymentAmount(calenderDetail.getExpectMemberAmount());
|
|
|
model.put("musicGroup",musicGroupDao.get(musicGroupId));
|
|
|
- model.put("amount", calenderDetail.getExpectAmount().add(calenderDetail.getExpectMemberAmount()));
|
|
|
+ model.put("amount", calender.getPaymentAmount());
|
|
|
model.put("balance",studentRegistration.getBalance());
|
|
|
model.put("calender",calender);
|
|
|
model.put("memberPrivilegesItemList", memberRankPrivilegesService.queryByMemberRankId(calender.getMemberRankSettingId()));
|