From aa2051a2327c079105110f5424f3a44ffaa0c7bb Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期五, 25 八月 2023 10:11:08 +0800
Subject: [PATCH] 延期整改

---
 src/main/resources/mybatis/tr/BaseCheckPointMapper.xml |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mybatis/tr/BaseCheckPointMapper.xml b/src/main/resources/mybatis/tr/BaseCheckPointMapper.xml
index 48c462e..7afe839 100644
--- a/src/main/resources/mybatis/tr/BaseCheckPointMapper.xml
+++ b/src/main/resources/mybatis/tr/BaseCheckPointMapper.xml
@@ -39,7 +39,7 @@
         where check_point_id = #{checkPointId}
     </select>
         
-    <insert id="insertBaseCheckPoint" parameterType="BaseCheckPoint">
+    <insert id="insertBaseCheckPoint" parameterType="BaseCheckPoint" useGeneratedKeys="true" keyProperty="checkPointId">
         insert into tr_base_check_point
         <trim prefix="(" suffix=")" suffixOverrides=",">
             <if test="checkPointId != null ">check_point_id,</if>
@@ -93,5 +93,10 @@
             #{checkPointId}
         </foreach>
     </delete>
-    
+
+
+<!--    BaseCheckPoint getBaseCheckPointById(Long checkPointId);-->
+    <select id="getBaseCheckPointById" resultType="com.ruoyi.project.tr.baseCheckPoint.domain.BaseCheckPoint">
+        select * from tr_base_check_point where check_point_id = #{checkPointId}
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.2