|
@@ -115,7 +115,7 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
@Autowired
|
|
|
private MemberFeeSettingDao memberFeeSettingDao;
|
|
|
@Autowired
|
|
|
- private MemberRankSettingDao memberRankSettingDao;
|
|
|
+ private MemberRankPrivilegesService memberRankPrivilegesService;
|
|
|
@Autowired
|
|
|
private CloudTeacherOrderDao cloudTeacherOrderDao;
|
|
|
@Autowired
|
|
@@ -124,6 +124,10 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
private MusicGroupPaymentCalenderMemberServiceImpl musicGroupPaymentCalenderMemberService;
|
|
|
@Autowired
|
|
|
private MusicGroupPaymentCalenderRepairServiceImpl musicGroupPaymentCalenderRepairService;
|
|
|
+ @Autowired
|
|
|
+ private StudentDao studentDao;
|
|
|
+ @Autowired
|
|
|
+ private ActivityUserMapperService activityUserMapperService;
|
|
|
|
|
|
@Override
|
|
|
public BaseDAO<Long, MusicGroupPaymentCalender> getDAO() {
|
|
@@ -337,7 +341,7 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
musicGroupPaymentCalender.setOriginalMemberPaymentAmount(originalMemberPaymentAmount);
|
|
|
musicGroupPaymentCalender.setAttribute2(musicGroupPaymentCalenderDto.getAttribute2());
|
|
|
musicGroupPaymentCalender.setDeadlinePaymentDate(musicGroupPaymentDateRange.getDeadlinePaymentDate());
|
|
|
- musicGroupPaymentCalender.setIsGiveMusicNetwork(musicGroupPaymentCalenderDto.getIsGiveMusicNetwork());
|
|
|
+// musicGroupPaymentCalender.setIsGiveMusicNetwork(musicGroupPaymentCalenderDto.getIsGiveMusicNetwork());
|
|
|
musicGroupPaymentCalender.setMemo(musicGroupPaymentCalenderDto.getMemo());
|
|
|
musicGroupPaymentCalender.setMusicGroupId(musicGroupId);
|
|
|
musicGroupPaymentCalender.setMusicGroupOrganizationCourseSettingId(musicGroupPaymentCalenderDto.getMusicGroupOrganizationCourseSettingId());
|
|
@@ -382,11 +386,8 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
}
|
|
|
musicGroupPaymentCalender.setMusicGroupPaymentCalenderCourseSettingsList(newCSList);
|
|
|
}
|
|
|
- musicGroupPaymentCalender.setPaymentAmount(totalPaymentAmount);
|
|
|
- musicGroupPaymentCalender.setPaymentPattern(musicGroupPaymentCalenderDto.getPaymentPattern());
|
|
|
- musicGroupPaymentCalender.setPaymentValidEndDate(musicGroupPaymentDateRange.getPaymentValidEndDate());
|
|
|
- musicGroupPaymentCalender.setPaymentValidStartDate(musicGroupPaymentDateRange.getPaymentValidStartDate());
|
|
|
-
|
|
|
+ musicGroupPaymentCalender.setCurrentTotalAmount(totalPaymentAmount);
|
|
|
+
|
|
|
if (paymentType == PaymentType.MUSIC_APPLY) {
|
|
|
if (i == 0) {
|
|
|
musicGroupPaymentCalender.setPaymentType(paymentType);
|
|
@@ -409,20 +410,10 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
if (musicGroupPaymentCalender.getDeadlinePaymentDate() == null && payUserType == PayUserType.STUDENT) {
|
|
|
musicGroupPaymentCalender.setDeadlinePaymentDate(DateUtil.addDays(musicGroupPaymentCalender.getStartPaymentDate(), 3));
|
|
|
}
|
|
|
- //校验缴费有效期冲突
|
|
|
- if (paymentType != ADD_STUDENT && paymentType != ADD_COURSE && paymentType != SPAN_GROUP_CLASS_ADJUST) {
|
|
|
- if(musicGroupPaymentCalender.getPaymentValidStartDate() != null){
|
|
|
- int count = musicGroupPaymentCalenderDao.queryIntersectionByValidDate(musicGroupId, musicGroupPaymentCalender.getPayUserType(),
|
|
|
- musicGroupPaymentCalender.getPaymentValidStartDate(), musicGroupPaymentCalender.getPaymentValidEndDate(), null);
|
|
|
- if (count > 0) {
|
|
|
- throw new BizException("缴费有效期存在冲突,请修改缴费有效期");
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
if (paymentType == PaymentType.ADD_STUDENT) {
|
|
|
musicGroupPaymentCalender.setPayUserType(STUDENT);
|
|
|
- musicGroupPaymentCalender.setIsGiveMusicNetwork(false);
|
|
|
+// musicGroupPaymentCalender.setIsGiveMusicNetwork(false);
|
|
|
if (musicGroupPaymentCalender.getStatus() != AUDITING) {
|
|
|
musicGroupPaymentCalender.setExpectNum(1);
|
|
|
}
|
|
@@ -440,9 +431,9 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
// 设置批次号
|
|
|
musicGroupPaymentCalender.setBatchNo(batchNo);
|
|
|
//设置会员缴费金额、级别以及有效期
|
|
|
- musicGroupPaymentCalender.setMemberPaymentAmount(musicGroupPaymentCalenderDto.getMemberPaymentAmount());
|
|
|
- musicGroupPaymentCalender.setMemberRankSettingId(musicGroupPaymentCalenderDto.getMemberRankSettingId());
|
|
|
- musicGroupPaymentCalender.setMemberValidDate(musicGroupPaymentCalenderDto.getMemberValidDate());
|
|
|
+// musicGroupPaymentCalender.setMemberPaymentAmount(musicGroupPaymentCalenderDto.getMemberPaymentAmount());
|
|
|
+// musicGroupPaymentCalender.setMemberRankSettingId(musicGroupPaymentCalenderDto.getMemberRankSettingId());
|
|
|
+// musicGroupPaymentCalender.setMemberValidDate(musicGroupPaymentCalenderDto.getMemberValidDate());
|
|
|
musicGroupPaymentCalenderDto.setBatchNo(batchNo);
|
|
|
musicGroupPaymentCalenderDao.insert(musicGroupPaymentCalender);
|
|
|
|
|
@@ -564,9 +555,6 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
}
|
|
|
musicGroupPaymentBaseCalender.setMusicGroup(musicGroup);
|
|
|
|
|
|
- //检测缴费项目是否有费用变更
|
|
|
-// Map<CalenderBaseServiceEnum, MusicGroupPaymentCalenderBaseService> calenderBaseServiceMap = MusicGroupPaymentCalenderBaseService.calenderBaseServiceMap;
|
|
|
-
|
|
|
//计算缴费项目总金额(前端录入)
|
|
|
BigDecimal courseActualAmount = musicGroupPaymentCalenderCourseSettingsService.getActualAmount(musicGroupPaymentBaseCalender);
|
|
|
BigDecimal memberActualAmount = musicGroupPaymentCalenderMemberService.getActualAmount(musicGroupPaymentBaseCalender);
|
|
@@ -692,10 +680,14 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
result.put("course", musicGroupPaymentCalenderCourseSettingsService.queryCalenderCourseSettings(calenderId));
|
|
|
//乐保
|
|
|
result.put("repair",musicGroupPaymentCalenderRepairService.findByCalenderId(calenderId));
|
|
|
+ MusicGroupPaymentCalenderMember calenderMember = musicGroupPaymentCalenderMemberService.findByCalenderId(calenderId);
|
|
|
//会员信息
|
|
|
- result.put("member",musicGroupPaymentCalenderMemberService.findByCalenderId(calenderId));
|
|
|
+ result.put("member",calenderMember);
|
|
|
//活动相关信息
|
|
|
result.put("activity",musicGroupPaymentCalenderActivityService.findByCalenderId(calenderId));
|
|
|
+ if(calenderMember != null){
|
|
|
+ result.put("memberPrivilegesItemList", memberRankPrivilegesService.queryByMemberRankId(calenderMember.getMemberRankSettingId()));
|
|
|
+ }
|
|
|
return result;
|
|
|
}
|
|
|
|
|
@@ -799,9 +791,6 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
// 获取设置的课程
|
|
|
List<MusicGroupPaymentCalenderCourseSettings> musicGroupPaymentCalenderCourseSettingsList = musicGroupPaymentCalenderDto
|
|
|
.getMusicGroupPaymentCalenderCourseSettingsList();
|
|
|
-// if (musicGroupPaymentCalenderCourseSettingsList == null) {
|
|
|
-// musicGroupPaymentCalenderCourseSettingsList = new ArrayList<>();
|
|
|
-// }
|
|
|
|
|
|
//会员原价
|
|
|
BigDecimal memberPaymentAmount = BigDecimal.ZERO;
|
|
@@ -934,7 +923,7 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
musicGroupPaymentCalender.setAttribute2(musicGroupPaymentCalenderDto.getAttribute2());
|
|
|
musicGroupPaymentCalender.setOriginalMemberPaymentAmount(originalMemberPaymentAmount);
|
|
|
musicGroupPaymentCalender.setDeadlinePaymentDate(musicGroupPaymentDateRange.getDeadlinePaymentDate());
|
|
|
- musicGroupPaymentCalender.setIsGiveMusicNetwork(musicGroupPaymentCalenderDto.getIsGiveMusicNetwork());
|
|
|
+// musicGroupPaymentCalender.setIsGiveMusicNetwork(musicGroupPaymentCalenderDto.getIsGiveMusicNetwork());
|
|
|
musicGroupPaymentCalender.setMemo(musicGroupPaymentCalenderDto.getMemo());
|
|
|
musicGroupPaymentCalender.setMusicGroupId(musicGroupId);
|
|
|
musicGroupPaymentCalender.setMusicGroupOrganizationCourseSettingId(musicGroupPaymentCalenderDto.getMusicGroupOrganizationCourseSettingId());
|
|
@@ -983,11 +972,8 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
musicGroupPaymentCalender.setMusicGroupPaymentCalenderCourseSettingsList(newCSList);
|
|
|
}
|
|
|
|
|
|
- musicGroupPaymentCalender.setPaymentAmount(totalPaymentAmount);
|
|
|
- musicGroupPaymentCalender.setPaymentPattern(musicGroupPaymentCalenderDto.getPaymentPattern());
|
|
|
- musicGroupPaymentCalender.setPaymentValidEndDate(musicGroupPaymentDateRange.getPaymentValidEndDate());
|
|
|
- musicGroupPaymentCalender.setPaymentValidStartDate(musicGroupPaymentDateRange.getPaymentValidStartDate());
|
|
|
-
|
|
|
+ musicGroupPaymentCalender.setCurrentTotalAmount(totalPaymentAmount);
|
|
|
+
|
|
|
if (paymentType == PaymentType.MUSIC_APPLY) {
|
|
|
if (i == 0) {
|
|
|
musicGroupPaymentCalender.setPaymentType(paymentType);
|
|
@@ -1010,19 +996,10 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
if (musicGroupPaymentCalender.getDeadlinePaymentDate() == null && payUserType == PayUserType.STUDENT) {
|
|
|
musicGroupPaymentCalender.setDeadlinePaymentDate(DateUtil.addDays(musicGroupPaymentCalender.getStartPaymentDate(), 3));
|
|
|
}
|
|
|
- if (paymentType != ADD_STUDENT && paymentType != ADD_COURSE && paymentType != SPAN_GROUP_CLASS_ADJUST) {
|
|
|
- if(musicGroupPaymentCalender.getPaymentValidStartDate() != null){
|
|
|
- int count = musicGroupPaymentCalenderDao.queryIntersectionByValidDate(musicGroupId, musicGroupPaymentCalender.getPayUserType(),
|
|
|
- musicGroupPaymentCalender.getPaymentValidStartDate(), musicGroupPaymentCalender.getPaymentValidEndDate(), null);
|
|
|
- if (count > 0) {
|
|
|
- throw new BizException("缴费有效期存在冲突,请修改缴费有效期");
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
if (paymentType == PaymentType.ADD_STUDENT) {
|
|
|
musicGroupPaymentCalender.setPayUserType(STUDENT);
|
|
|
- musicGroupPaymentCalender.setIsGiveMusicNetwork(false);
|
|
|
+// musicGroupPaymentCalender.setIsGiveMusicNetwork(false);
|
|
|
if (musicGroupPaymentCalender.getStatus() != AUDITING) {
|
|
|
musicGroupPaymentCalender.setExpectNum(1);
|
|
|
}
|
|
@@ -1040,9 +1017,9 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
// 设置批次号
|
|
|
musicGroupPaymentCalender.setBatchNo(batchNo);
|
|
|
//设置会员缴费金额、级别以及有效期
|
|
|
- musicGroupPaymentCalender.setMemberPaymentAmount(musicGroupPaymentCalenderDto.getMemberPaymentAmount());
|
|
|
- musicGroupPaymentCalender.setMemberRankSettingId(musicGroupPaymentCalenderDto.getMemberRankSettingId());
|
|
|
- musicGroupPaymentCalender.setMemberValidDate(musicGroupPaymentCalenderDto.getMemberValidDate());
|
|
|
+// musicGroupPaymentCalender.setMemberPaymentAmount(musicGroupPaymentCalenderDto.getMemberPaymentAmount());
|
|
|
+// musicGroupPaymentCalender.setMemberRankSettingId(musicGroupPaymentCalenderDto.getMemberRankSettingId());
|
|
|
+// musicGroupPaymentCalender.setMemberValidDate(musicGroupPaymentCalenderDto.getMemberValidDate());
|
|
|
musicGroupPaymentCalenderDto.setBatchNo(batchNo);
|
|
|
musicGroupPaymentCalenderDao.insert(musicGroupPaymentCalender);
|
|
|
List<MusicGroupPaymentCalenderCourseSettings> currentMusicGroupPaymentCalenderCourseSettings = musicGroupPaymentCalender
|
|
@@ -1152,20 +1129,13 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
Date date = new Date();
|
|
|
String studentIdStr = musicGroupPaymentCalender.getStudentIds();
|
|
|
if (StringUtils.isNoneBlank(studentIdStr)) {
|
|
|
- //计算总费用
|
|
|
- BigDecimal expectAmount = BigDecimal.ZERO;
|
|
|
- BigDecimal expectMemberAmount = musicGroupPaymentCalender.getMemberPaymentAmount();
|
|
|
- if(musicGroupPaymentCalenderCourseSettingsList != null && musicGroupPaymentCalenderCourseSettingsList.size() > 0){
|
|
|
- for(MusicGroupPaymentCalenderCourseSettings musicGroupPaymentCalenderCourseSettings : musicGroupPaymentCalenderCourseSettingsList){
|
|
|
- expectAmount = expectAmount.add(musicGroupPaymentCalenderCourseSettings.getCourseCurrentPrice());
|
|
|
- }
|
|
|
- }
|
|
|
//当前乐团是否有预排课计划
|
|
|
MusicGroupSchoolTermCourseDetail termCourseDetail = musicGroupSchoolTermCourseDetailDao.findByCourseDateAndMusicGroupId(musicGroup.getId(), null, 0);
|
|
|
-
|
|
|
List<MusicGroupPaymentStudentCourseDetail> musicGroupPaymentStudentCourseDetailList = new ArrayList<MusicGroupPaymentStudentCourseDetail>();
|
|
|
MusicGroupPaymentStudentCourseDetail musicGroupPaymentStudentCourseDetail = null;
|
|
|
|
|
|
+ List<MusicGroupPaymentCalenderActivity> calenderActivities = musicGroupPaymentCalenderActivityService.findByCalenderId(musicGroupPaymentCalender.getId());
|
|
|
+ MusicGroupPaymentCalenderMember calenderMember = musicGroupPaymentCalenderMemberService.findByCalenderId(musicGroupPaymentCalender.getId());
|
|
|
for (String studentId : studentIdStr.split(",")) {
|
|
|
if(termCourseDetail != null){
|
|
|
//是否已经预排部分课程
|
|
@@ -1184,8 +1154,6 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
MusicGroupPaymentCalenderDetail musicGroupPaymentCalenderDetail = new MusicGroupPaymentCalenderDetail();
|
|
|
musicGroupPaymentCalenderDetail.setMusicGroupPaymentCalenderId(musicGroupPaymentCalender.getId());
|
|
|
musicGroupPaymentCalenderDetail.setCreateTime(date);
|
|
|
-// musicGroupPaymentCalenderDetail.setExpectAmount(expectAmount);
|
|
|
-// musicGroupPaymentCalenderDetail.setExpectMemberAmount(expectMemberAmount);
|
|
|
musicGroupPaymentCalenderDetail.setPaymentStatus(PaymentStatus.NON_PAYMENT);
|
|
|
musicGroupPaymentCalenderDetail.setUpdateTime(date);
|
|
|
musicGroupPaymentCalenderDetail.setUserId(Integer.parseInt(studentId));
|
|
@@ -1194,30 +1162,40 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
|
|
|
musicGroupPaymentCalenderDetailDao.insert(musicGroupPaymentCalenderDetail);
|
|
|
//如果是0元那么更新fee表和studentRegistration表
|
|
|
- if(expectAmount.doubleValue() == 0d && expectMemberAmount.doubleValue() == 0d){
|
|
|
+ if(musicGroupPaymentCalender.getCurrentTotalAmount().compareTo(BigDecimal.ZERO) == 0){
|
|
|
// 添加会员有效时长
|
|
|
- if(musicGroupPaymentCalender.getMemberRankSettingId() != null){
|
|
|
+ if(calenderMember != null){
|
|
|
CloudTeacherOrder cloudTeacherOrder = new CloudTeacherOrder();
|
|
|
- cloudTeacherOrder.setLevel(musicGroupPaymentCalender.getMemberRankSettingId());
|
|
|
+ cloudTeacherOrder.setLevel(calenderMember.getMemberRankSettingId());
|
|
|
cloudTeacherOrder.setOrganId(musicGroup.getOrganId());
|
|
|
- cloudTeacherOrder.setType(musicGroupPaymentCalender.getMemberPeriod());
|
|
|
+ cloudTeacherOrder.setType(calenderMember.getPeriod());
|
|
|
cloudTeacherOrder.setStudentId(Integer.parseInt(studentId));
|
|
|
cloudTeacherOrder.setOrderId(musicGroup.getOrganId().longValue());
|
|
|
- cloudTeacherOrder.setTime(musicGroupPaymentCalender.getMemberValidDate());
|
|
|
- cloudTeacherOrder.setAmount(expectMemberAmount);
|
|
|
+ cloudTeacherOrder.setTime(calenderMember.getNum().intValue());
|
|
|
+ cloudTeacherOrder.setAmount(BigDecimal.ZERO);
|
|
|
cloudTeacherOrder.setStatus(1);
|
|
|
cloudTeacherOrder.setRemark("进行中乐团0元加学生");
|
|
|
cloudTeacherOrder.setMusicGroupId(musicGroup.getId());
|
|
|
cloudTeacherOrderDao.insert(cloudTeacherOrder);
|
|
|
-// studentService.updateMemberRank(cloudTeacherOrder);
|
|
|
}
|
|
|
- MusicGroupStudentFee musicGroupStudentFee = musicGroupStudentFeeDao.findByUser(Integer.parseInt(studentId), musicGroupPaymentCalender.getMusicGroupId());
|
|
|
- if (musicGroupStudentFee != null) {
|
|
|
- musicGroupStudentFee.setUpdateTime(date);
|
|
|
- musicGroupStudentFee.setLatestPaidTime(date);
|
|
|
- musicGroupStudentFee.setPaymentStatus(PaymentStatus.PAID_COMPLETED);
|
|
|
- musicGroupStudentFee.setTemporaryCourseFee(new BigDecimal(0));
|
|
|
- musicGroupStudentFeeDao.update(musicGroupStudentFee);
|
|
|
+ //添加小课包
|
|
|
+ if(calenderActivities != null && calenderActivities.size() > 0){
|
|
|
+ List<ActivityUserMapper> activityUserMapperList = new ArrayList<>();
|
|
|
+ for (MusicGroupPaymentCalenderActivity calenderActivity : calenderActivities) {
|
|
|
+ ActivityUserMapper activityUserMapper = new ActivityUserMapper();
|
|
|
+ activityUserMapper.setActualPrice(BigDecimal.ZERO);
|
|
|
+ activityUserMapper.setActivityId(calenderActivity.getActivityId());
|
|
|
+ Student student = studentDao.get(Integer.parseInt(studentId));
|
|
|
+ activityUserMapper.setUserId(Integer.parseInt(studentId));
|
|
|
+ activityUserMapper.setTeacherId(student.getTeacherId());
|
|
|
+ if("网管课".equals(calenderActivity.getCategoryName())){
|
|
|
+ activityUserMapper.setPracticeFlag(1);
|
|
|
+ }else {
|
|
|
+ activityUserMapper.setVipFlag(1);
|
|
|
+ }
|
|
|
+ activityUserMapperList.add(activityUserMapper);
|
|
|
+ }
|
|
|
+ activityUserMapperService.batchInsert(activityUserMapperList);
|
|
|
}
|
|
|
//如果是进行中加学员
|
|
|
StudentRegistration studentRegistration = studentRegistrationDao.queryByUserIdAndMusicGroupId(Integer.parseInt(studentId), musicGroupPaymentCalender.getMusicGroupId());
|
|
@@ -1358,12 +1336,12 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
}
|
|
|
calenderAuditDetailDto.setMusicGroupPaymentCalenders(groupPaymentCalenders);
|
|
|
MusicGroupPaymentCalender paymentCalender = groupPaymentCalenders.get(0);
|
|
|
- if(paymentCalender.getMemberRankSettingId() != null){
|
|
|
- MemberRankSetting memberRankSetting = memberRankSettingDao.get(paymentCalender.getMemberRankSettingId());
|
|
|
- if(memberRankSetting != null){
|
|
|
- paymentCalender.setMemberRankSettingName(memberRankSetting.getName());
|
|
|
- }
|
|
|
- }
|
|
|
+// if(paymentCalender.getMemberRankSettingId() != null){
|
|
|
+// MemberRankSetting memberRankSetting = memberRankSettingDao.get(paymentCalender.getMemberRankSettingId());
|
|
|
+// if(memberRankSetting != null){
|
|
|
+// paymentCalender.setMemberRankSettingName(memberRankSetting.getName());
|
|
|
+// }
|
|
|
+// }
|
|
|
if(paymentCalender.getPaymentType() == ADD_STUDENT){
|
|
|
try {
|
|
|
String studentIds = groupPaymentCalenders.get(0).getStudentIds();
|
|
@@ -1464,7 +1442,7 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
for (MusicGroupPaymentCalender musicGroupPaymentCalender : musicGroupPaymentCalenders) {
|
|
|
//如果是报名项目,将乐团改为审核中,缴费项目修改状态,审核状态改为审核通过
|
|
|
if(musicGroupPaymentCalender.getPayUserType() == SCHOOL){
|
|
|
- if(musicGroupPaymentCalender.getPaymentAmount().doubleValue() > 0){
|
|
|
+ if(musicGroupPaymentCalender.getCurrentTotalAmount().compareTo(BigDecimal.ZERO) > 0){
|
|
|
musicGroupPaymentCalender.setStatus(PaymentCalenderStatusEnum.OPEN);
|
|
|
}else{
|
|
|
musicGroupPaymentCalender.setStatus(PaymentCalenderStatusEnum.PAID);
|