mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-10 19:36:50 +08:00
fix: 修复下载excel接口入参问题
This commit is contained in:
@@ -18,6 +18,7 @@ import javax.servlet.http.HttpServletResponse;
|
|||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
import java.time.format.DateTimeFormatter;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -105,8 +106,9 @@ public class CaseAiChatApi extends ApiBaseController {
|
|||||||
public void downloadConversationExcel(@RequestParam String startTime,
|
public void downloadConversationExcel(@RequestParam String startTime,
|
||||||
@RequestParam String endTime,
|
@RequestParam String endTime,
|
||||||
HttpServletResponse response) {
|
HttpServletResponse response) {
|
||||||
LocalDate startDate = LocalDate.parse(startTime);
|
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
||||||
LocalDate endDate = LocalDate.parse(endTime);
|
LocalDate startDate = LocalDate.parse(startTime, formatter);
|
||||||
|
LocalDate endDate = LocalDate.parse(endTime, formatter);
|
||||||
caseAiChatService.getConversationExcel(startDate.atStartOfDay(), endDate.atTime(23, 59, 59), response);
|
caseAiChatService.getConversationExcel(startDate.atStartOfDay(), endDate.atTime(23, 59, 59), response);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user