双重预防项目-国泰新华二开定制版
heheng
2025-04-15 7be0d5b901b999d2347774df3cc1a64927838bb3
src/main/resources/mybatis/tr/TbBaseCheckScoreMapper.xml
@@ -18,17 +18,33 @@
        <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>
            order by  create_date desc
        </where>
    </select>
<!--    TbBaseCheckScore getBaseCheckScoreByScoreId(String checkScoreId);-->
    <select id="getBaseCheckScoreByScoreId" resultMap="BaseResultMap">
        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>