|
@@ -11,10 +11,7 @@ import com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender.PaymentCalenderStatus
|
|
|
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.biz.service.*;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
|
import com.ym.mec.common.entity.HttpResponseResult;
|
|
|
import com.ym.mec.common.exception.BizException;
|
|
@@ -51,6 +48,10 @@ public class MusicGroupPaymentCalenderController extends BaseController {
|
|
|
private MusicGroupPaymentStudentCourseDetailDao musicGroupPaymentStudentCourseDetailDao;
|
|
|
@Autowired
|
|
|
private MusicGroupPaymentCalenderActivityService musicGroupPaymentCalenderActivityService;
|
|
|
+ @Autowired
|
|
|
+ private MusicGroupPaymentCalenderMemberService musicGroupPaymentCalenderMemberService;
|
|
|
+ @Autowired
|
|
|
+ private MusicGroupPaymentCalenderRepairService musicGroupPaymentCalenderRepairService;
|
|
|
@Autowired
|
|
|
private MemberRankPrivilegesService memberRankPrivilegesService;
|
|
|
|
|
@@ -78,19 +79,15 @@ public class MusicGroupPaymentCalenderController extends BaseController {
|
|
|
if (studentRegistration == null) {
|
|
|
return failed("乐团报名信息不存在");
|
|
|
}
|
|
|
- ModelMap model = new ModelMap();
|
|
|
+ ModelMap model = new ModelMap(10);
|
|
|
//课程相关信息
|
|
|
- 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("musicGroupPaymentCalenderStudentDetails",musicGroupPaymentCalenderStudentDetailDao.findByBatchNoAndUserId(calender.getBatchNo(),userId));
|
|
|
+ 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", calender.getCurrentTotalAmount());
|
|
|
model.put("balance",studentRegistration.getBalance());
|
|
|
+ model.put("member",musicGroupPaymentCalenderMemberService.findByCalenderId(calenderId));
|
|
|
+ model.put("repair",musicGroupPaymentCalenderRepairService.findByCalenderId(calenderId));
|
|
|
model.put("calender",calender);
|
|
|
model.put("memberPrivilegesItemList", memberRankPrivilegesService.queryByMemberRankId(calender.getMemberRankSettingId()));
|
|
|
return succeed(model);
|