From 7be0d5b901b999d2347774df3cc1a64927838bb3 Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: 星期二, 15 四月 2025 10:10:35 +0800
Subject: [PATCH] 优化每年专项数据获取

---
 src/main/resources/mybatis/tr/TbBaseCheckScoreMapper.xml |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mybatis/tr/TbBaseCheckScoreMapper.xml b/src/main/resources/mybatis/tr/TbBaseCheckScoreMapper.xml
index f9e35ce..7e30393 100644
--- a/src/main/resources/mybatis/tr/TbBaseCheckScoreMapper.xml
+++ b/src/main/resources/mybatis/tr/TbBaseCheckScoreMapper.xml
@@ -18,12 +18,20 @@
         <result property="updateBy" column="update_by"/>
         <result property="updateDate" column="update_date"/>
     </resultMap>
+    <insert id="save" parameterType="com.ruoyi.project.tr.specialCheck.domin.TbBaseCheckScore">
+        insert into tb_base_check_score ( id, check_item_id, is_reject, deduct_point, deduct_illustrate, deleted, create_by, create_date, update_by, update_date)
+            values (#{id}, #{checkItemId}, #{isReject}, #{deductPoint}, #{deductIllustrate}, #{deleted}, #{createBy}, #{createDate}, #{updateBy}, #{updateDate})
 
-<!--    List<TbBaseCheckScore> selectTbBaseCheckScorePage(TbBaseCheckScoreBO tbBaseCheckScoreBO);-->
+    </insert>
+
+    <!--    List<TbBaseCheckScore> selectTbBaseCheckScorePage(TbBaseCheckScoreBO tbBaseCheckScoreBO);-->
     <select id="selectTbBaseCheckScorePage" resultMap="BaseResultMap">
         select * from tb_base_check_score
         <where>
             deleted = 0
+            <if test="checkItemId != null">
+                and check_item_id = #{checkItemId}
+            </if>
             <if test="isReject != null">
                 and is_reject = #{isReject}
             </if>
@@ -35,4 +43,8 @@
         select * from tb_base_check_score
         where id = #{checkScoreId}
     </select>
+<!--    List<TbBaseCheckTask> listTbBaseCheckTask();-->
+    <select id="listTbBaseCheckTask" resultMap="BaseResultMap">
+        select * from tb_base_check_score
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.2