Skip to content

Commit f54c85b

Browse files
committed
Java: MultiDataSource 优化 CVAuto 导出 Excel 报告接口
1 parent cd69b02 commit f54c85b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/java/apijson/boot/FileController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ private MediaType determineContentType(String fileName) {
191191
}
192192
}
193193

194-
@GetMapping("/download/report/{reportId}/cv")
194+
@GetMapping("/download/cv/report/{reportId}")
195195
@ResponseBody
196196
public ResponseEntity<Object> downloadCVReport(@PathVariable(name = "reportId") String reportId) throws FileNotFoundException, IOException {
197197
String name = "CVAuto_report_" + reportId + ".xlsx";
@@ -220,7 +220,7 @@ public ResponseEntity<Object> downloadCVReport(@PathVariable(name = "reportId")
220220
{ // Random <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
221221
JSONObject random = new JSONObject();
222222
random.put("documentId@", "TestRecord/documentId");
223-
random.put("@column", "id,img");
223+
random.put("@column", "id,file,img");
224224
random.put("@order", "date-");
225225
random.put("@combine", "file[>,img[>");
226226
random.put("file[>", 0);

0 commit comments

Comments
 (0)