|
@@ -2384,6 +2384,10 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou
|
|
|
ZoneId zoneId = ZoneId.systemDefault();
|
|
|
|
|
|
LocalDate now = LocalDate.now();
|
|
|
+ LocalDate tempCourseDate=LocalDate.parse("2020-03-01", DateUtil.dateFormatter);
|
|
|
+ if(now.isBefore(tempCourseDate)){
|
|
|
+ now = tempCourseDate;
|
|
|
+ }
|
|
|
if(renew){
|
|
|
PracticeGroup userLatestPracticeGroup = practiceGroupDao.findUserPracticeGroup(userId,groupId);
|
|
|
if(Objects.nonNull(userLatestPracticeGroup)){
|
|
@@ -2641,6 +2645,10 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou
|
|
|
|
|
|
Date now=new Date();
|
|
|
LocalDate courseStartDay=LocalDate.now();
|
|
|
+ LocalDate tempCourseLocalDate=LocalDate.parse("2020-03-01", DateUtil.dateFormatter);
|
|
|
+ if(courseStartDay.isBefore(tempCourseLocalDate)){
|
|
|
+ courseStartDay = tempCourseLocalDate;
|
|
|
+ }
|
|
|
if(practiceGroupBuyParams.isRenew()){
|
|
|
if(Objects.isNull(practiceGroupBuyParams.getGroupId())){
|
|
|
return BaseController.failed(HttpStatus.EXPECTATION_FAILED, "请选择需要续费的课程");
|