admin
2024-02-21 2272213fea7ab9ea6250eefad55bb113ce2b1837
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?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.dl.mapper.DlShebeixxCdSssjMapper">
 
    <resultMap type="DlShebeixxCdSssj" id="DlShebeixxCdSssjResult">
        <result property="id"    column="id"    />
        <result property="ceDianBM"    column="ceDianBM"    />
        <result property="ceDianLXBM"    column="ceDianLXBM"    />
        <result property="ceDianLXMC"    column="ceDianLXMC"    />
        <result property="suoShuSBBM"    column="suoShuSBBM"    />
        <result property="ceDianSZ"    column="ceDianSZ"    />
        <result property="ceDianSZDW"    column="ceDianSZDW"    />
        <result property="ceDianZT"    column="ceDianZT"    />
        <result property="shuJuSJ"    column="shuJuSJ"    />
        <result property="xiTongBM"    column="xiTongBM"    />
        <result property="wenJianFL"    column="wenJianFL"    />
    </resultMap>
 
    <sql id="selectDlShebeixxCdSssjVo">
        select id, ceDianBM, ceDianLXBM, ceDianLXMC,xiTongBM,wenJianFL, suoShuSBBM, ceDianSZ, ceDianSZDW, ceDianZT, shuJuSJ from dl_shebeixx_cd_sssj
    </sql>
 
    <select id="selectDlShebeixxCdSssjList" parameterType="DlShebeixxCdSssj" resultMap="DlShebeixxCdSssjResult">
        <include refid="selectDlShebeixxCdSssjVo"/>
        <where>
            <if test="ceDianBM != null  and ceDianBM != ''"> and ceDianBM = #{ceDianBM}</if>
            <if test="ceDianLXBM != null  and ceDianLXBM != ''"> and ceDianLXBM = #{ceDianLXBM}</if>
            <if test="ceDianLXMC != null  and ceDianLXMC != ''"> and ceDianLXMC = #{ceDianLXMC}</if>
            <if test="suoShuSBBM != null  and suoShuSBBM != ''"> and suoShuSBBM = #{suoShuSBBM}</if>
            <if test="ceDianSZ != null  and ceDianSZ != ''"> and ceDianSZ = #{ceDianSZ}</if>
            <if test="ceDianSZDW != null  and ceDianSZDW != ''"> and ceDianSZDW = #{ceDianSZDW}</if>
            <if test="ceDianZT != null  and ceDianZT != ''"> and ceDianZT = #{ceDianZT}</if>
            <if test="shuJuSJ != null "> and shuJuSJ = #{shuJuSJ}</if>
            <if test="xiTongBM != null "> and xiTongBM = #{xiTongBM}</if>
            <if test="wenJianFL != null "> and wenJianFL = #{wenJianFL}</if>
        </where>
    </select>
 
    <select id="selectListByGroupBy" parameterType="DlShebeixxCdSssj" resultMap="DlShebeixxCdSssjResult">
        select xiTongBM,wenJianFL from dl_shebeixx_cd_sssj where xiTongBM is not null and wenJianFL  is not null  GROUP BY xiTongBM,wenJianFL
    </select>
 
    <select id="selectDlShebeixxCdSssjById" parameterType="Long" resultMap="DlShebeixxCdSssjResult">
        <include refid="selectDlShebeixxCdSssjVo"/>
        where id = #{id}
    </select>
 
    <insert id="insertDlShebeixxCdSssj" parameterType="DlShebeixxCdSssj" useGeneratedKeys="true" keyProperty="id">
        insert into dl_shebeixx_cd_sssj
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="ceDianBM != null">ceDianBM,</if>
            <if test="ceDianLXBM != null">ceDianLXBM,</if>
            <if test="ceDianLXMC != null">ceDianLXMC,</if>
            <if test="suoShuSBBM != null">suoShuSBBM,</if>
            <if test="ceDianSZ != null">ceDianSZ,</if>
            <if test="ceDianSZDW != null">ceDianSZDW,</if>
            <if test="ceDianZT != null">ceDianZT,</if>
            <if test="shuJuSJ != null">shuJuSJ,</if>
            <if test="xiTongBM != null">xiTongBM,</if>
            <if test="wenJianFL != null">wenJianFL,</if>
         </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="ceDianBM != null">#{ceDianBM},</if>
            <if test="ceDianLXBM != null">#{ceDianLXBM},</if>
            <if test="ceDianLXMC != null">#{ceDianLXMC},</if>
            <if test="suoShuSBBM != null">#{suoShuSBBM},</if>
            <if test="ceDianSZ != null">#{ceDianSZ},</if>
            <if test="ceDianSZDW != null">#{ceDianSZDW},</if>
            <if test="ceDianZT != null">#{ceDianZT},</if>
            <if test="shuJuSJ != null">#{shuJuSJ},</if>
            <if test="xiTongBM != null">#{xiTongBM},</if>
            <if test="wenJianFL != null">#{wenJianFL},</if>
         </trim>
    </insert>
 
    <update id="updateDlShebeixxCdSssj" parameterType="DlShebeixxCdSssj">
        update dl_shebeixx_cd_sssj
        <trim prefix="SET" suffixOverrides=",">
            <if test="ceDianBM != null">ceDianBM = #{ceDianBM},</if>
            <if test="ceDianLXBM != null">ceDianLXBM = #{ceDianLXBM},</if>
            <if test="ceDianLXMC != null">ceDianLXMC = #{ceDianLXMC},</if>
            <if test="suoShuSBBM != null">suoShuSBBM = #{suoShuSBBM},</if>
            <if test="ceDianSZ != null">ceDianSZ = #{ceDianSZ},</if>
            <if test="ceDianSZDW != null">ceDianSZDW = #{ceDianSZDW},</if>
            <if test="ceDianZT != null">ceDianZT = #{ceDianZT},</if>
            <if test="shuJuSJ != null">shuJuSJ = #{shuJuSJ},</if>
            <if test="xiTongBM != null">xiTongBM = #{xiTongBM},</if>
            <if test="wenJianFL != null">wenJianFL = #{wenJianFL},</if>
        </trim>
        where id = #{id}
    </update>
 
    <delete id="deleteDlShebeixxCdSssjById" parameterType="Long">
        delete from dl_shebeixx_cd_sssj where id = #{id}
    </delete>
 
    <delete id="deleteDlShebeixxCdSssjByIds" parameterType="String">
        delete from dl_shebeixx_cd_sssj where id in
        <foreach item="id" collection="array" open="(" separator="," close=")">
            #{id}
        </foreach>
    </delete>
</mapper>