|
|
@@ -334,7 +334,9 @@ public class UserPlanServiceImpl extends ServiceImpl<UserPlanMapper, UserPlan> i
|
|
|
Date date1 = new Date(bo.getEndTime() * 1000L);
|
|
|
//获得相隔天数
|
|
|
int dutyDays = getDutyDays(new Date(), date1, bo.getStudyCount(), bo.getStudyDay());
|
|
|
-
|
|
|
+ if (dutyDays < 1){
|
|
|
+ throw new IllegalArgumentException("没有学习天数,请认真填写开始结束时间");
|
|
|
+ }
|
|
|
List<Long> seLongs = baseMapper.selectGoods(aLong);
|
|
|
Long allNum = 0L;
|
|
|
for (Long seLong : seLongs) {
|