From f565fbc09724992d53ec6632c3e5d1de3325f328 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期四, 11 一月 2024 17:33:44 +0800
Subject: [PATCH] 1. 调整返回接口的异常捕获类为自定义异常类; 2. 修改AreaVo类中时间参数的类型; 3. 新增文档生成任务类型,并新增文档后台生成任务逻辑;

---
 src/main/kotlin/cn/flightfeather/supervision/lightshare/service/impl/SearchServiceImpl.kt |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/main/kotlin/cn/flightfeather/supervision/lightshare/service/impl/SearchServiceImpl.kt b/src/main/kotlin/cn/flightfeather/supervision/lightshare/service/impl/SearchServiceImpl.kt
index 3070b2e..8b0e284 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/service/impl/SearchServiceImpl.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/service/impl/SearchServiceImpl.kt
@@ -17,6 +17,7 @@
 import cn.flightfeather.supervision.lightshare.vo.*
 import com.github.pagehelper.PageHelper
 import org.springframework.beans.BeanUtils
+import org.springframework.beans.factory.annotation.Value
 import org.springframework.stereotype.Service
 import tk.mybatis.mapper.entity.Example
 import java.io.File
@@ -55,7 +56,9 @@
         val ledgerSubTypeMapper: LedgerSubTypeMapper,
         val ledgerRecordMapper: LedgerRecordMapper,
         val userMapMapper: UserMapMapper,
-        val taskService: TaskService
+        val taskService: TaskService,
+        @Value("\${filePath}") var filePath: String,
+        @Value("\${imgPath}") var imgPath: String
 ) : SearchService {
 
     private val dateUtil = DateUtil()
@@ -122,7 +125,7 @@
             setDateHeader("Expires", 0)
         }
 
-        val p = Constant.DEFAULT_FILE_PATH + "/files/autoscore/"
+        val p = "$filePath/autoscore/"
         val file = File(p + fileName)
         if (config.forceUpdate || !file.exists()) {
             t.toFile(p)

--
Gitblit v1.9.3