|
@@ -24,6 +24,7 @@ import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
+import java.time.LocalDate;
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.time.temporal.ChronoUnit;
|
|
|
import java.util.ArrayList;
|
|
@@ -180,7 +181,7 @@ public class TaskController {
|
|
|
saveInformationListWithCount(task, taskInformation, between, executorIdList);
|
|
|
}else if (task.getRepeatEndDate()!=null){
|
|
|
TaskInformation taskInformation = selectTaskInformation(task);
|
|
|
- if (LocalDateTime.now().isAfter(task.getRepeatEndDate())){
|
|
|
+ if (LocalDate.now().isAfter(task.getRepeatEndDate())){
|
|
|
continue;
|
|
|
}
|
|
|
int between = (int) ChronoUnit.DAYS.between(LocalDateTime.now(), task.getRepeatEndDate());
|
|
@@ -200,7 +201,7 @@ public class TaskController {
|
|
|
saveInformationListWithCount(task, taskInformation, between, executorIdList);
|
|
|
}else if (task.getRepeatEndDate()!=null){
|
|
|
TaskInformation taskInformation = selectTaskInformation(task);
|
|
|
- if (LocalDateTime.now().isAfter(task.getRepeatEndDate())){
|
|
|
+ if (LocalDate.now().isAfter(task.getRepeatEndDate())){
|
|
|
continue;
|
|
|
}
|
|
|
int between = (int) ChronoUnit.DAYS.between(LocalDateTime.now(), task.getRepeatEndDate());
|
|
@@ -224,7 +225,7 @@ public class TaskController {
|
|
|
saveInformationListWithCount(task, taskInformation, between, executorIdList);
|
|
|
}else if (task.getRepeatEndDate()!=null){
|
|
|
TaskInformation taskInformation = selectTaskInformation(task);
|
|
|
- if (LocalDateTime.now().isAfter(task.getRepeatEndDate())){
|
|
|
+ if (LocalDate.now().isAfter(task.getRepeatEndDate())){
|
|
|
continue;
|
|
|
}
|
|
|
int between = (int) ChronoUnit.DAYS.between(LocalDateTime.now(), task.getRepeatEndDate());
|
|
@@ -249,7 +250,7 @@ public class TaskController {
|
|
|
saveInformationListWithCount(task, taskInformation, between, executorIdList);
|
|
|
}else if (task.getRepeatEndDate()!=null){
|
|
|
TaskInformation taskInformation = selectTaskInformation(task);
|
|
|
- if (LocalDateTime.now().isAfter(task.getRepeatEndDate())){
|
|
|
+ if (LocalDate.now().isAfter(task.getRepeatEndDate())){
|
|
|
continue;
|
|
|
}
|
|
|
int between = (int) ChronoUnit.DAYS.between(LocalDateTime.now(), task.getRepeatEndDate());
|