From 9cb8d7e0f4ffca386b14a15f8a0aca4d1db23252 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期四, 30 十月 2025 15:58:45 +0800
Subject: [PATCH] 2025.10.30 新增单场景纵向统计接口
---
src/main/kotlin/cn/flightfeather/supervision/lightshare/web/TableController.kt | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/TableController.kt b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/TableController.kt
index f29168f..2ce97e6 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/TableController.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/TableController.kt
@@ -1,6 +1,7 @@
package cn.flightfeather.supervision.lightshare.web
import cn.flightfeather.supervision.common.utils.DateUtil
+import cn.flightfeather.supervision.config.IgnoreResponseAdvice
import org.docx4j.dml.wordprocessingDrawing.Inline
import org.docx4j.jaxb.Context
import org.docx4j.openpackaging.packages.WordprocessingMLPackage
@@ -19,6 +20,7 @@
@ApiIgnore
@Controller
+@IgnoreResponseAdvice
@RequestMapping("table")
class TableController {
@@ -48,7 +50,7 @@
fun testdate() {
val wordMLPackage = WordprocessingMLPackage.createPackage()
wordMLPackage.mainDocumentPart.addAltChunk(AltChunkType.Html, t.block()!!.toString().toByteArray())
- val time = DateUtil().getTime(Date()).toString()
+ val time = DateUtil.getTime(Date()).toString()
val outputfilepath = File("/Users/liwei/resource/supervision/src/main/resources/public/htmltable.docx")
wordMLPackage.save(outputfilepath)
//Thread.sleep(1000)
@@ -68,7 +70,7 @@
val paragraphOfText = wordMLPackage.mainDocumentPart.createParagraphOfText("Field 1")
addTableCell(tr, paragraphOfText)
- val time = DateUtil().getTime(Date())
+ val time = DateUtil.getTime(Date())
val file = File("/Users/liwei/resource/supervision/src/main/resources/static/images/tutu.png")
val paragraphWithImage = addInlineImageToParagraph(createInlineImage(file))
addTableCell(tr, paragraphWithImage)
--
Gitblit v1.9.3