|
@@ -74,9 +74,8 @@ public class EstimatedValveServiceImpl implements EstimatedValveService, Initial
|
|
|
String currTime = LocalDateTime.now().format(dfYmd) + " " + sendTime;;
|
|
|
DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
|
|
LocalDateTime localDateTime = LocalDateTime.parse(currTime,df);
|
|
|
- LocalDateTime esTime = localDateTime.plusMinutes(30);
|
|
|
- //String cron = String.format("%s %s %s * * ?",esTime.getSecond(),esTime.getMinute(),esTime.getHour());
|
|
|
- String cron = String.format("%s %s %s * * ?",0,12,17);
|
|
|
+ localDateTime = localDateTime.plusMinutes(30);
|
|
|
+ String cron = String.format("%s %s %s * * ?",localDateTime.getSecond(),localDateTime.getMinute(),localDateTime.getHour());
|
|
|
//String cron = "0 */2 * * * ?";
|
|
|
//String cron ="0 40 14 * * ?";
|
|
|
//String cron = "0 "+Integer.valueOf(minute)+" "+Integer.valueOf(time)+" * * ?";
|