|
@@ -19,6 +19,7 @@ import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
|
|
|
+import java.time.temporal.ChronoUnit;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
import java.util.Objects;
|
|
import java.util.Objects;
|
|
@@ -179,7 +180,8 @@ public class CustomerController {
|
|
|
.filter(Objects::nonNull)
|
|
.filter(Objects::nonNull)
|
|
|
//设置时间
|
|
//设置时间
|
|
|
.peek(read -> {
|
|
.peek(read -> {
|
|
|
- if (read.getReadDate() != null) read.setForDate(read.getReadDate().toLocalDate());
|
|
|
|
|
|
|
+ if (read.getReadDate() != null)
|
|
|
|
|
+ read.setForDate(read.getReadDate().truncatedTo(ChronoUnit.MONTHS).toLocalDate());
|
|
|
})
|
|
})
|
|
|
.collect(Collectors.toList());
|
|
.collect(Collectors.toList());
|
|
|
if (CollectionUtils.isEmpty(dates)) continue;
|
|
if (CollectionUtils.isEmpty(dates)) continue;
|