ApiZhKphzxxListMapper.xml
13.5 KB
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
<?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.lhcredit.project.business.apiZhKphzxxList.mapper.ApiZhKphzxxListMapper">
<resultMap type="ApiZhKphzxxList" id="ApiZhKphzxxListResult">
<result property="id" column="id" />
<result property="authCode" column="auth_code" />
<result property="djxh" column="djxh" />
<result property="nsrsbh" column="nsrsbh" />
<result property="dlhyDm" column="dlhyDm" />
<result property="dlhymc" column="dlhymc" />
<result property="dykptsLp" column="dykptsLp" />
<result property="dykptsQb" column="dykptsQb" />
<result property="lpje" column="lpje" />
<result property="lpwsje" column="lpwsje" />
<result property="lpse" column="lpse" />
<result property="lpsl" column="lpsl" />
<result property="fpje" column="fpje" />
<result property="fpsl" column="fpsl" />
<result property="fpwsje" column="fpwsje" />
<result property="fpse" column="fpse" />
<result property="hpje" column="hpje" />
<result property="hpwsje" column="hpwsje" />
<result property="hpse" column="hpse" />
<result property="hpsl" column="hpsl" />
<result property="yxhpje" column="yxhpje" />
<result property="yxhpsl" column="yxhpsl" />
<result property="kpje" column="kpje" />
<result property="wsje" column="wsje" />
<result property="se" column="se" />
<result property="yxwsje" column="yxwsje" />
<result property="kpsl" column="kpsl" />
<result property="kpqj" column="kpqj" />
<result property="kpyf" column="kpyf" />
<result property="lxwjyts" column="lxwjyts" />
<result property="zddzje" column="zddzje" />
<result property="zjkpsj" column="zjkpsj" />
<result property="ppkpje" column="ppkpje" />
<result property="ppwsje" column="ppwsje" />
<result property="ppkpsl" column="ppkpsl" />
<result property="zpkpje" column="zpkpje" />
<result property="zpwsje" column="zpwsje" />
<result property="zpkpsl" column="zpkpsl" />
<result property="yxhpwsje" column="yxhpwsje" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectApiZhKphzxxListVo">
select id, auth_code, djxh, nsrsbh, dlhyDm, dlhymc, dykptsLp, dykptsQb, lpje, lpwsje, lpse, lpsl, fpje, fpsl, fpwsje, fpse, hpje, hpwsje, hpse, hpsl, yxhpje, yxhpsl, kpje, wsje, se, yxwsje, kpsl, kpqj, kpyf, lxwjyts, zddzje, zjkpsj, ppkpje, ppwsje, ppkpsl, zpkpje, zpwsje, zpkpsl, yxhpwsje, create_time, update_time from api_zh_kphzxx_list
</sql>
<select id="selectApiZhKphzxxListList" parameterType="ApiZhKphzxxList" resultMap="ApiZhKphzxxListResult">
<include refid="selectApiZhKphzxxListVo"/>
<where>
<if test="id != null "> and id = #{id}</if>
<if test="authCode != null and authCode != '' "> and auth_code = #{authCode}</if>
<if test="djxh != null and djxh != '' "> and djxh = #{djxh}</if>
<if test="nsrsbh != null and nsrsbh != '' "> and nsrsbh = #{nsrsbh}</if>
<if test="dlhyDm != null and dlhyDm != '' "> and dlhyDm = #{dlhyDm}</if>
<if test="dlhymc != null and dlhymc != '' "> and dlhymc = #{dlhymc}</if>
<if test="dykptsLp != null "> and dykptsLp = #{dykptsLp}</if>
<if test="dykptsQb != null "> and dykptsQb = #{dykptsQb}</if>
<if test="lpje != null "> and lpje = #{lpje}</if>
<if test="lpwsje != null "> and lpwsje = #{lpwsje}</if>
<if test="lpse != null "> and lpse = #{lpse}</if>
<if test="lpsl != null "> and lpsl = #{lpsl}</if>
<if test="fpje != null "> and fpje = #{fpje}</if>
<if test="fpsl != null "> and fpsl = #{fpsl}</if>
<if test="fpwsje != null "> and fpwsje = #{fpwsje}</if>
<if test="fpse != null "> and fpse = #{fpse}</if>
<if test="hpje != null "> and hpje = #{hpje}</if>
<if test="hpwsje != null "> and hpwsje = #{hpwsje}</if>
<if test="hpse != null "> and hpse = #{hpse}</if>
<if test="hpsl != null "> and hpsl = #{hpsl}</if>
<if test="yxhpje != null "> and yxhpje = #{yxhpje}</if>
<if test="yxhpsl != null "> and yxhpsl = #{yxhpsl}</if>
<if test="kpje != null "> and kpje = #{kpje}</if>
<if test="wsje != null "> and wsje = #{wsje}</if>
<if test="se != null "> and se = #{se}</if>
<if test="yxwsje != null "> and yxwsje = #{yxwsje}</if>
<if test="kpsl != null "> and kpsl = #{kpsl}</if>
<if test="kpqj != null and kpqj != '' "> and kpqj = #{kpqj}</if>
<if test="kpyf != null and kpyf != '' "> and kpyf = #{kpyf}</if>
<if test="lxwjyts != null "> and lxwjyts = #{lxwjyts}</if>
<if test="zddzje != null "> and zddzje = #{zddzje}</if>
<if test="zjkpsj != null and zjkpsj != '' "> and zjkpsj = #{zjkpsj}</if>
<if test="ppkpje != null "> and ppkpje = #{ppkpje}</if>
<if test="ppwsje != null "> and ppwsje = #{ppwsje}</if>
<if test="ppkpsl != null "> and ppkpsl = #{ppkpsl}</if>
<if test="zpkpje != null "> and zpkpje = #{zpkpje}</if>
<if test="zpwsje != null "> and zpwsje = #{zpwsje}</if>
<if test="zpkpsl != null "> and zpkpsl = #{zpkpsl}</if>
<if test="yxhpwsje != null "> and yxhpwsje = #{yxhpwsje}</if>
<if test="createTime != null "> and create_time = #{createTime}</if>
<if test="updateTime != null "> and update_time = #{updateTime}</if>
</where>
</select>
<select id="selectApiZhKphzxxListById" parameterType="Integer" resultMap="ApiZhKphzxxListResult">
<include refid="selectApiZhKphzxxListVo"/>
where id = #{id}
</select>
<insert id="insertApiZhKphzxxList" parameterType="ApiZhKphzxxList" useGeneratedKeys="true" keyProperty="id">
insert into api_zh_kphzxx_list
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="authCode != null and authCode != '' ">auth_code,</if>
<if test="djxh != null and djxh != '' ">djxh,</if>
<if test="nsrsbh != null and nsrsbh != '' ">nsrsbh,</if>
<if test="dlhyDm != null and dlhyDm != '' ">dlhyDm,</if>
<if test="dlhymc != null and dlhymc != '' ">dlhymc,</if>
<if test="dykptsLp != null ">dykptsLp,</if>
<if test="dykptsQb != null ">dykptsQb,</if>
<if test="lpje != null ">lpje,</if>
<if test="lpwsje != null ">lpwsje,</if>
<if test="lpse != null ">lpse,</if>
<if test="lpsl != null ">lpsl,</if>
<if test="fpje != null ">fpje,</if>
<if test="fpsl != null ">fpsl,</if>
<if test="fpwsje != null ">fpwsje,</if>
<if test="fpse != null ">fpse,</if>
<if test="hpje != null ">hpje,</if>
<if test="hpwsje != null ">hpwsje,</if>
<if test="hpse != null ">hpse,</if>
<if test="hpsl != null ">hpsl,</if>
<if test="yxhpje != null ">yxhpje,</if>
<if test="yxhpsl != null ">yxhpsl,</if>
<if test="kpje != null ">kpje,</if>
<if test="wsje != null ">wsje,</if>
<if test="se != null ">se,</if>
<if test="yxwsje != null ">yxwsje,</if>
<if test="kpsl != null ">kpsl,</if>
<if test="kpqj != null and kpqj != '' ">kpqj,</if>
<if test="kpyf != null and kpyf != '' ">kpyf,</if>
<if test="lxwjyts != null ">lxwjyts,</if>
<if test="zddzje != null ">zddzje,</if>
<if test="zjkpsj != null and zjkpsj != '' ">zjkpsj,</if>
<if test="ppkpje != null ">ppkpje,</if>
<if test="ppwsje != null ">ppwsje,</if>
<if test="ppkpsl != null ">ppkpsl,</if>
<if test="zpkpje != null ">zpkpje,</if>
<if test="zpwsje != null ">zpwsje,</if>
<if test="zpkpsl != null ">zpkpsl,</if>
<if test="yxhpwsje != null ">yxhpwsje,</if>
<if test="createTime != null ">create_time,</if>
<if test="updateTime != null ">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="authCode != null and authCode != '' ">#{authCode},</if>
<if test="djxh != null and djxh != '' ">#{djxh},</if>
<if test="nsrsbh != null and nsrsbh != '' ">#{nsrsbh},</if>
<if test="dlhyDm != null and dlhyDm != '' ">#{dlhyDm},</if>
<if test="dlhymc != null and dlhymc != '' ">#{dlhymc},</if>
<if test="dykptsLp != null ">#{dykptsLp},</if>
<if test="dykptsQb != null ">#{dykptsQb},</if>
<if test="lpje != null ">#{lpje},</if>
<if test="lpwsje != null ">#{lpwsje},</if>
<if test="lpse != null ">#{lpse},</if>
<if test="lpsl != null ">#{lpsl},</if>
<if test="fpje != null ">#{fpje},</if>
<if test="fpsl != null ">#{fpsl},</if>
<if test="fpwsje != null ">#{fpwsje},</if>
<if test="fpse != null ">#{fpse},</if>
<if test="hpje != null ">#{hpje},</if>
<if test="hpwsje != null ">#{hpwsje},</if>
<if test="hpse != null ">#{hpse},</if>
<if test="hpsl != null ">#{hpsl},</if>
<if test="yxhpje != null ">#{yxhpje},</if>
<if test="yxhpsl != null ">#{yxhpsl},</if>
<if test="kpje != null ">#{kpje},</if>
<if test="wsje != null ">#{wsje},</if>
<if test="se != null ">#{se},</if>
<if test="yxwsje != null ">#{yxwsje},</if>
<if test="kpsl != null ">#{kpsl},</if>
<if test="kpqj != null and kpqj != '' ">#{kpqj},</if>
<if test="kpyf != null and kpyf != '' ">#{kpyf},</if>
<if test="lxwjyts != null ">#{lxwjyts},</if>
<if test="zddzje != null ">#{zddzje},</if>
<if test="zjkpsj != null and zjkpsj != '' ">#{zjkpsj},</if>
<if test="ppkpje != null ">#{ppkpje},</if>
<if test="ppwsje != null ">#{ppwsje},</if>
<if test="ppkpsl != null ">#{ppkpsl},</if>
<if test="zpkpje != null ">#{zpkpje},</if>
<if test="zpwsje != null ">#{zpwsje},</if>
<if test="zpkpsl != null ">#{zpkpsl},</if>
<if test="yxhpwsje != null ">#{yxhpwsje},</if>
<if test="createTime != null ">#{createTime},</if>
<if test="updateTime != null ">#{updateTime},</if>
</trim>
</insert>
<update id="updateApiZhKphzxxList" parameterType="ApiZhKphzxxList">
update api_zh_kphzxx_list
<trim prefix="SET" suffixOverrides=",">
<if test="authCode != null and authCode != '' ">auth_code = #{authCode},</if>
<if test="djxh != null and djxh != '' ">djxh = #{djxh},</if>
<if test="nsrsbh != null and nsrsbh != '' ">nsrsbh = #{nsrsbh},</if>
<if test="dlhyDm != null and dlhyDm != '' ">dlhyDm = #{dlhyDm},</if>
<if test="dlhymc != null and dlhymc != '' ">dlhymc = #{dlhymc},</if>
<if test="dykptsLp != null ">dykptsLp = #{dykptsLp},</if>
<if test="dykptsQb != null ">dykptsQb = #{dykptsQb},</if>
<if test="lpje != null ">lpje = #{lpje},</if>
<if test="lpwsje != null ">lpwsje = #{lpwsje},</if>
<if test="lpse != null ">lpse = #{lpse},</if>
<if test="lpsl != null ">lpsl = #{lpsl},</if>
<if test="fpje != null ">fpje = #{fpje},</if>
<if test="fpsl != null ">fpsl = #{fpsl},</if>
<if test="fpwsje != null ">fpwsje = #{fpwsje},</if>
<if test="fpse != null ">fpse = #{fpse},</if>
<if test="hpje != null ">hpje = #{hpje},</if>
<if test="hpwsje != null ">hpwsje = #{hpwsje},</if>
<if test="hpse != null ">hpse = #{hpse},</if>
<if test="hpsl != null ">hpsl = #{hpsl},</if>
<if test="yxhpje != null ">yxhpje = #{yxhpje},</if>
<if test="yxhpsl != null ">yxhpsl = #{yxhpsl},</if>
<if test="kpje != null ">kpje = #{kpje},</if>
<if test="wsje != null ">wsje = #{wsje},</if>
<if test="se != null ">se = #{se},</if>
<if test="yxwsje != null ">yxwsje = #{yxwsje},</if>
<if test="kpsl != null ">kpsl = #{kpsl},</if>
<if test="kpqj != null and kpqj != '' ">kpqj = #{kpqj},</if>
<if test="kpyf != null and kpyf != '' ">kpyf = #{kpyf},</if>
<if test="lxwjyts != null ">lxwjyts = #{lxwjyts},</if>
<if test="zddzje != null ">zddzje = #{zddzje},</if>
<if test="zjkpsj != null and zjkpsj != '' ">zjkpsj = #{zjkpsj},</if>
<if test="ppkpje != null ">ppkpje = #{ppkpje},</if>
<if test="ppwsje != null ">ppwsje = #{ppwsje},</if>
<if test="ppkpsl != null ">ppkpsl = #{ppkpsl},</if>
<if test="zpkpje != null ">zpkpje = #{zpkpje},</if>
<if test="zpwsje != null ">zpwsje = #{zpwsje},</if>
<if test="zpkpsl != null ">zpkpsl = #{zpkpsl},</if>
<if test="yxhpwsje != null ">yxhpwsje = #{yxhpwsje},</if>
<if test="createTime != null ">create_time = #{createTime},</if>
<if test="updateTime != null ">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteApiZhKphzxxListById" parameterType="Integer">
delete from api_zh_kphzxx_list where id = #{id}
</delete>
<delete id="deleteApiZhKphzxxListByIds" parameterType="String">
delete from api_zh_kphzxx_list where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>