|
@@ -89,6 +89,18 @@ public class SysPublicParamServiceImpl extends ServiceImpl<SysPublicParamMapper,
|
|
|
startParam = new SysPublicParam();
|
|
|
startParam.setPublicValue(hour+":0"+min+":0"+second);
|
|
|
}
|
|
|
+ StringBuffer sb = new StringBuffer();
|
|
|
+ sb.append("活动");
|
|
|
+ if (hour<10){
|
|
|
+ sb.append("0");
|
|
|
+ }
|
|
|
+ sb.append(hour+"点");
|
|
|
+ if (min>0&&min<10){
|
|
|
+ sb.append("0"+min+"分");
|
|
|
+ }else if (min>0&&min>=10){
|
|
|
+ sb.append(min+"分");
|
|
|
+ }
|
|
|
+ sb.append("准时开启");
|
|
|
LocalDateTime start = now.withHour(hour).withMinute(min).withSecond(second).withNano(0);
|
|
|
if (now.isBefore(end)&&now.isAfter(start)){
|
|
|
int i = LocalDateTime.now().getDayOfWeek().getValue();
|
|
@@ -98,7 +110,7 @@ public class SysPublicParamServiceImpl extends ServiceImpl<SysPublicParamMapper,
|
|
|
}
|
|
|
return Results.success(publicParam.getPublicValue());
|
|
|
}else{
|
|
|
- return Results.error(10,"活动"+startParam.getPublicValue()+"准时开启");
|
|
|
+ return Results.error(10,sb.toString());
|
|
|
}
|
|
|
|
|
|
}
|