双重预防项目-国泰新华二开定制版
heheng
2025-06-25 f8606e6c37bbc815b59d0452fd7c3ecb0dcb6cef
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.project.tr.specialCheck.mapper.TbBaseCheckScoreMapper">
 
    <resultMap id="BaseResultMap" type="com.ruoyi.project.tr.specialCheck.domin.TbBaseCheckScore">
        <id property="id" column="id"/>
 
        <result property="checkItemId" column="check_item_id"/>
        <result property="isReject" column="is_reject"/>
        <result property="deductPoint" column="deduct_point"/>
        <result property="deductIllustrate" column="deduct_illustrate"/>
 
        <result property="deleted" column="deleted"/>
        <result property="createBy" column="create_by"/>
        <result property="createDate" column="create_date"/>
        <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})
 
    </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>