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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<?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.DlShebeixxMapper">
 
    <resultMap type="DlShebeixx" id="DlShebeixxResult">
        <result property="id"    column="id"    />
        <result property="kuangDuanSBLX"    column="kuangDuanSBLX"    />
        <result property="kuangDuanSBLXMC"    column="kuangDuanSBLXMC"    />
        <result property="sheBeiBM"    column="sheBeiBM"    />
        <result property="sheBeiMC"    column="sheBeiMC"    />
        <result property="guiGeXH"    column="guiGeXH"    />
        <result property="sheBeiLX"    column="sheBeiLX"    />
        <result property="shengChanRQ"    column="shengChanRQ"    />
        <result property="suoShuXT"    column="suoShuXT"    />
        <result property="anZhuangRQ"    column="anZhuangRQ"    />
        <result property="anZhuangWZ"    column="anZhuangWZ"    />
        <result property="shengChanCJ"    column="shengChanCJ"    />
        <result property="chuChangBM"    column="chuChangBM"    />
        <result property="anBIaoZSBH"    column="anBIaoZSBH"    />
        <result property="fangBaoZSBH"    column="fangBaoZSBH"    />
        <result property="eDingDY"    column="eDingDY"    />
        <result property="eDingDL"    column="eDingDL"    />
        <result property="eDingGL"    column="eDingGL"    />
        <result property="xiTongBM"    column="xiTongBM"    />
        <result property="wenJianFL"    column="wenJianFL"    />
    </resultMap>
 
    <sql id="selectDlShebeixxVo">
        select id, kuangDuanSBLX, kuangDuanSBLXMC,xiTongBM,wenJianFL, sheBeiBM, sheBeiMC, guiGeXH, sheBeiLX, shengChanRQ, suoShuXT, anZhuangRQ, anZhuangWZ, shengChanCJ, chuChangBM, anBIaoZSBH, fangBaoZSBH, eDingDY, eDingDL, eDingGL from dl_shebeixx
    </sql>
 
    <select id="selectDlShebeixxList" parameterType="DlShebeixx" resultMap="DlShebeixxResult">
        <include refid="selectDlShebeixxVo"/>
        <where>
            <if test="kuangDuanSBLX != null "> and kuangDuanSBLX = #{kuangDuanSBLX}</if>
            <if test="kuangDuanSBLXMC != null  and kuangDuanSBLXMC != ''"> and kuangDuanSBLXMC = #{kuangDuanSBLXMC}</if>
            <if test="sheBeiBM != null  and sheBeiBM != ''"> and sheBeiBM = #{sheBeiBM}</if>
            <if test="sheBeiMC != null  and sheBeiMC != ''"> and sheBeiMC = #{sheBeiMC}</if>
            <if test="guiGeXH != null  and guiGeXH != ''"> and guiGeXH = #{guiGeXH}</if>
            <if test="sheBeiLX != null "> and sheBeiLX = #{sheBeiLX}</if>
            <if test="shengChanRQ != null "> and shengChanRQ = #{shengChanRQ}</if>
            <if test="suoShuXT != null  and suoShuXT != ''"> and suoShuXT = #{suoShuXT}</if>
            <if test="anZhuangRQ != null "> and anZhuangRQ = #{anZhuangRQ}</if>
            <if test="anZhuangWZ != null  and anZhuangWZ != ''"> and anZhuangWZ = #{anZhuangWZ}</if>
            <if test="shengChanCJ != null  and shengChanCJ != ''"> and shengChanCJ = #{shengChanCJ}</if>
            <if test="chuChangBM != null  and chuChangBM != ''"> and chuChangBM = #{chuChangBM}</if>
            <if test="anBIaoZSBH != null  and anBIaoZSBH != ''"> and anBIaoZSBH = #{anBIaoZSBH}</if>
            <if test="fangBaoZSBH != null  and fangBaoZSBH != ''"> and fangBaoZSBH = #{fangBaoZSBH}</if>
            <if test="eDingDY != null "> and eDingDY = #{eDingDY}</if>
            <if test="eDingDL != null "> and eDingDL = #{eDingDL}</if>
            <if test="eDingGL != null "> and eDingGL = #{eDingGL}</if>
            <if test="xiTongBM != null "> and xiTongBM = #{xiTongBM}</if>
            <if test="wenJianFL != null "> and wenJianFL = #{wenJianFL}</if>
        </where>
    </select>
 
    <select id="selectListByGroupBy" parameterType="DlShebeixx" resultMap="DlShebeixxResult">
        select xiTongBM,wenJianFL from dl_shebeixx where xiTongBM is not null and wenJianFL  is not null  GROUP BY xiTongBM,wenJianFL
    </select>
 
 
    <select id="selectDlShebeixxById" parameterType="Long" resultMap="DlShebeixxResult">
        <include refid="selectDlShebeixxVo"/>
        where id = #{id}
    </select>
 
    <insert id="insertDlShebeixx" parameterType="DlShebeixx" useGeneratedKeys="true" keyProperty="id">
        insert into dl_shebeixx
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="kuangDuanSBLX != null">kuangDuanSBLX,</if>
            <if test="kuangDuanSBLXMC != null">kuangDuanSBLXMC,</if>
            <if test="sheBeiBM != null">sheBeiBM,</if>
            <if test="sheBeiMC != null">sheBeiMC,</if>
            <if test="guiGeXH != null">guiGeXH,</if>
            <if test="sheBeiLX != null">sheBeiLX,</if>
            <if test="shengChanRQ != null">shengChanRQ,</if>
            <if test="suoShuXT != null">suoShuXT,</if>
            <if test="anZhuangRQ != null">anZhuangRQ,</if>
            <if test="anZhuangWZ != null">anZhuangWZ,</if>
            <if test="shengChanCJ != null">shengChanCJ,</if>
            <if test="chuChangBM != null">chuChangBM,</if>
            <if test="anBIaoZSBH != null">anBIaoZSBH,</if>
            <if test="fangBaoZSBH != null">fangBaoZSBH,</if>
            <if test="eDingDY != null">eDingDY,</if>
            <if test="eDingDL != null">eDingDL,</if>
            <if test="eDingGL != null">eDingGL,</if>
            <if test="xiTongBM != null">xiTongBM,</if>
            <if test="wenJianFL != null">wenJianFL,</if>
         </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="kuangDuanSBLX != null">#{kuangDuanSBLX},</if>
            <if test="kuangDuanSBLXMC != null">#{kuangDuanSBLXMC},</if>
            <if test="sheBeiBM != null">#{sheBeiBM},</if>
            <if test="sheBeiMC != null">#{sheBeiMC},</if>
            <if test="guiGeXH != null">#{guiGeXH},</if>
            <if test="sheBeiLX != null">#{sheBeiLX},</if>
            <if test="shengChanRQ != null">#{shengChanRQ},</if>
            <if test="suoShuXT != null">#{suoShuXT},</if>
            <if test="anZhuangRQ != null">#{anZhuangRQ},</if>
            <if test="anZhuangWZ != null">#{anZhuangWZ},</if>
            <if test="shengChanCJ != null">#{shengChanCJ},</if>
            <if test="chuChangBM != null">#{chuChangBM},</if>
            <if test="anBIaoZSBH != null">#{anBIaoZSBH},</if>
            <if test="fangBaoZSBH != null">#{fangBaoZSBH},</if>
            <if test="eDingDY != null">#{eDingDY},</if>
            <if test="eDingDL != null">#{eDingDL},</if>
            <if test="eDingGL != null">#{eDingGL},</if>
            <if test="xiTongBM != null">#{xiTongBM},</if>
            <if test="wenJianFL != null">#{wenJianFL},</if>
         </trim>
    </insert>
 
    <update id="updateDlShebeixx" parameterType="DlShebeixx">
        update dl_shebeixx
        <trim prefix="SET" suffixOverrides=",">
            <if test="kuangDuanSBLX != null">kuangDuanSBLX = #{kuangDuanSBLX},</if>
            <if test="kuangDuanSBLXMC != null">kuangDuanSBLXMC = #{kuangDuanSBLXMC},</if>
            <if test="sheBeiBM != null">sheBeiBM = #{sheBeiBM},</if>
            <if test="sheBeiMC != null">sheBeiMC = #{sheBeiMC},</if>
            <if test="guiGeXH != null">guiGeXH = #{guiGeXH},</if>
            <if test="sheBeiLX != null">sheBeiLX = #{sheBeiLX},</if>
            <if test="shengChanRQ != null">shengChanRQ = #{shengChanRQ},</if>
            <if test="suoShuXT != null">suoShuXT = #{suoShuXT},</if>
            <if test="anZhuangRQ != null">anZhuangRQ = #{anZhuangRQ},</if>
            <if test="anZhuangWZ != null">anZhuangWZ = #{anZhuangWZ},</if>
            <if test="shengChanCJ != null">shengChanCJ = #{shengChanCJ},</if>
            <if test="chuChangBM != null">chuChangBM = #{chuChangBM},</if>
            <if test="anBIaoZSBH != null">anBIaoZSBH = #{anBIaoZSBH},</if>
            <if test="fangBaoZSBH != null">fangBaoZSBH = #{fangBaoZSBH},</if>
            <if test="eDingDY != null">eDingDY = #{eDingDY},</if>
            <if test="eDingDL != null">eDingDL = #{eDingDL},</if>
            <if test="eDingGL != null">eDingGL = #{eDingGL},</if>
            <if test="xiTongBM != null">xiTongBM = #{xiTongBM},</if>
            <if test="wenJianFL != null">wenJianFL = #{wenJianFL},</if>
        </trim>
        where id = #{id}
    </update>
 
    <delete id="deleteDlShebeixxById" parameterType="Long">
        delete from dl_shebeixx where id = #{id}
    </delete>
 
    <delete id="deleteDlShebeixxByIds" parameterType="String">
        delete from dl_shebeixx where id in
        <foreach item="id" collection="array" open="(" separator="," close=")">
            #{id}
        </foreach>
    </delete>
</mapper>