From b212ef0208cb094f63ea8a239a1361f8e859c839 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期一, 08 七月 2024 17:40:39 +0800
Subject: [PATCH] 2024.7.8

---
 src/main/kotlin/cn/flightfeather/supervision/domain/ds1/repository/SceneRep.kt |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 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 cec2e1a..d5f3c14 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
@@ -5,7 +5,6 @@
 import cn.flightfeather.supervision.domain.ds1.entity.Scense
 import cn.flightfeather.supervision.domain.ds1.mapper.ScenseMapper
 import cn.flightfeather.supervision.domain.ds1.mapper.UserinfoMapper
-import javafx.scene.Scene
 import org.springframework.stereotype.Repository
 import tk.mybatis.mapper.entity.Example
 import java.util.*
@@ -20,11 +19,11 @@
     private val subTaskRep: SubTaskRep,
 ) {
 
-    fun insert(scense: Scense?):Int {
-        scense ?: return 0
-        if (scense.guid == null) scense.guid = UUIDGenerator.generate16ShortUUID()
-        scense.createdate = Date()
-        return scenseMapper.insertSelective(scense)
+    fun insert(scene: Scense?):Int {
+        scene ?: return 0
+        if (scene.guid == null) scene.guid = UUIDGenerator.generate16ShortUUID()
+        scene.createdate = Date()
+        return scenseMapper.insertSelective(scene)
     }
 
     /**
@@ -53,7 +52,7 @@
     }
 
     fun findBySubTask(subTaskId: String): Scense? {
-        val subtask = subTaskRep.find(subTaskId)
+        val subtask = subTaskRep.findOne(subTaskId)
         return scenseMapper.selectByPrimaryKey(subtask?.scenseid)
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3