From b180708562d6fb872c83c05756e8041d9967483a Mon Sep 17 00:00:00 2001
From: Riku <risaku@163.com>
Date: 星期一, 22 十二月 2025 21:04:13 +0800
Subject: [PATCH] 2025.12.22 1. 修改日任务统计接口,新增当天内整改问题数和48小时内整改问题数统计

---
 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