From 0516cba27e632f20efac2752787f38f0c87baafa Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期三, 25 九月 2024 09:24:05 +0800
Subject: [PATCH] 1. 新增自动评估添加和更新接口

---
 src/main/kotlin/cn/flightfeather/supervision/domain/ds1/repository/SceneRep.kt |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/main/kotlin/cn/flightfeather/supervision/domain/ds1/repository/SceneRep.kt b/src/main/kotlin/cn/flightfeather/supervision/domain/ds1/repository/SceneRep.kt
index d5f3c14..7db939a 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/domain/ds1/repository/SceneRep.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/domain/ds1/repository/SceneRep.kt
@@ -26,13 +26,6 @@
         return scenseMapper.insertSelective(scene)
     }
 
-    /**
-     * 鏌ユ壘鍦烘櫙
-     */
-    fun findScene(topTaskId: String, sceneTypeId: Int? = null, townCode: String? = null): List<Scense?> {
-        return scenseMapper.getSceneByType(topTaskId, sceneTypeId, townCode)
-    }
-
     fun findScene(userId: String?): Scense? {
         val user = userinfoMapper.selectByPrimaryKey(userId) ?: throw BizException("鐢ㄦ埛id涓嶅瓨鍦�")
         return scenseMapper.selectByPrimaryKey(user.dGuid)
@@ -45,12 +38,19 @@
         })
     }
 
-    fun findScenes(nameList: List<String?>): List<Scense?> {
+    fun findSceneList(nameList: List<String?>): List<Scense?> {
         return scenseMapper.selectByExample(Example(Scense::class.java).apply {
             createCriteria().andIn("name", nameList)
         })
     }
 
+    /**
+     * 鏌ユ壘鍦烘櫙
+     */
+    fun findSceneList(topTaskId: String, sceneTypeId: Int? = null, townCode: String? = null): List<Scense?> {
+        return scenseMapper.getSceneByType(topTaskId, sceneTypeId, townCode)
+    }
+
     fun findBySubTask(subTaskId: String): Scense? {
         val subtask = subTaskRep.findOne(subTaskId)
         return scenseMapper.selectByPrimaryKey(subtask?.scenseid)

--
Gitblit v1.9.3