|
@@ -352,7 +352,9 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
Date date = new Date();
|
|
|
// 判断缴费开始时间、结束时间是否被其他缴费记录占用
|
|
|
// int count = musicGroupPaymentCalenderDao.queryIntersectionByPaymentDate(calender.getMusicGroupId(), startTime,endTime);
|
|
|
- int count = musicGroupPaymentCalenderDao.queryIntersectionByDate(calender.getMusicGroupId(), startTime,endTime);
|
|
|
+ String format = DateUtil.format(startTime, DateUtil.DEFAULT_PATTERN);
|
|
|
+ String format1 = DateUtil.format(endTime, DateUtil.DEFAULT_PATTERN);
|
|
|
+ int count = musicGroupPaymentCalenderDao.queryIntersectionByDate(calender.getMusicGroupId(), format,format1);
|
|
|
if (count > 0) {
|
|
|
throw new BizException("缴费时间存在冲突,请修改缴费开始日期");
|
|
|
}
|