ApiZhQyxxListMapper.xml
10.9 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
<?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.apiZhQyxxList.mapper.ApiZhQyxxListMapper">
<resultMap type="ApiZhQyxxList" id="ApiZhQyxxListResult">
<result property="id" column="id" />
<result property="authCode" column="auth_code" />
<result property="nsrsbh" column="nsrsbh" />
<result property="djxh" column="djxh" />
<result property="nsrmc" column="nsrmc" />
<result property="dlhyDm" column="dlhyDm" />
<result property="dlhymc" column="dlhymc" />
<result property="cyDm" column="cyDm" />
<result property="cymc" column="cymc" />
<result property="scjydz" column="scjydz" />
<result property="dsswjgDm" column="dsswjgDm" />
<result property="dsswjgmc" column="dsswjgmc" />
<result property="nsrztmc" column="nsrztmc" />
<result property="zzsnsrlxId" column="zzsnsrlxId" />
<result property="nsrlx" column="nsrlx" />
<result property="nsrxydjId" column="nsrxydjId" />
<result property="scjyddhhm" column="scjyddhhm" />
<result property="djzclxDm" column="djzclxDm" />
<result property="djzclxmc" column="djzclxmc" />
<result property="minKprq" column="minKprq" />
<result property="kprqMinMonth" column="kprqMinMonth" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="lhpjJb" column="lhpjJb" />
<result property="lhpjDf" column="lhpjDf" />
<result property="pdNd" column="pdNd" />
</resultMap>
<sql id="selectApiZhQyxxListVo">
select id, auth_code, nsrsbh, djxh, nsrmc, dlhyDm, dlhymc, cyDm, cymc, scjydz, dsswjgDm, dsswjgmc, nsrztmc, zzsnsrlxId, nsrlx, nsrxydjId, scjyddhhm, djzclxDm, djzclxmc, minKprq, kprqMinMonth, create_time, update_time, lhpjJb, lhpjDf, pdNd from api_zh_qyxx_list
</sql>
<select id="selectApiZhQyxxListList" parameterType="ApiZhQyxxList" resultMap="ApiZhQyxxListResult">
<include refid="selectApiZhQyxxListVo"/>
<where>
<if test="id != null "> and id = #{id}</if>
<if test="authCode != null and authCode != '' "> and auth_code = #{authCode}</if>
<if test="nsrsbh != null and nsrsbh != '' "> and nsrsbh = #{nsrsbh}</if>
<if test="djxh != null and djxh != '' "> and djxh = #{djxh}</if>
<if test="nsrmc != null and nsrmc != '' "> and nsrmc = #{nsrmc}</if>
<if test="dlhyDm != null and dlhyDm != '' "> and dlhyDm = #{dlhyDm}</if>
<if test="dlhymc != null and dlhymc != '' "> and dlhymc = #{dlhymc}</if>
<if test="cyDm != null and cyDm != '' "> and cyDm = #{cyDm}</if>
<if test="cymc != null and cymc != '' "> and cymc = #{cymc}</if>
<if test="scjydz != null and scjydz != '' "> and scjydz = #{scjydz}</if>
<if test="dsswjgDm != null and dsswjgDm != '' "> and dsswjgDm = #{dsswjgDm}</if>
<if test="dsswjgmc != null and dsswjgmc != '' "> and dsswjgmc = #{dsswjgmc}</if>
<if test="nsrztmc != null and nsrztmc != '' "> and nsrztmc = #{nsrztmc}</if>
<if test="zzsnsrlxId != null and zzsnsrlxId != '' "> and zzsnsrlxId = #{zzsnsrlxId}</if>
<if test="nsrlx != null and nsrlx != '' "> and nsrlx = #{nsrlx}</if>
<if test="nsrxydjId != null and nsrxydjId != '' "> and nsrxydjId = #{nsrxydjId}</if>
<if test="scjyddhhm != null and scjyddhhm != '' "> and scjyddhhm = #{scjyddhhm}</if>
<if test="djzclxDm != null and djzclxDm != '' "> and djzclxDm = #{djzclxDm}</if>
<if test="djzclxmc != null and djzclxmc != '' "> and djzclxmc = #{djzclxmc}</if>
<if test="minKprq != null and minKprq != '' "> and minKprq = #{minKprq}</if>
<if test="kprqMinMonth != null and kprqMinMonth != '' "> and kprqMinMonth = #{kprqMinMonth}</if>
<if test="createTime != null "> and create_time = #{createTime}</if>
<if test="updateTime != null "> and update_time = #{updateTime}</if>
<if test="lhpjJb != null and lhpjJb != '' "> and lhpjJb = #{lhpjJb}</if>
<if test="lhpjDf != null and lhpjDf != '' "> and lhpjDf = #{lhpjDf}</if>
<if test="pdNd != null and pdNd != '' "> and pdNd = #{pdNd}</if>
</where>
</select>
<select id="selectApiZhQyxxListById" parameterType="Integer" resultMap="ApiZhQyxxListResult">
<include refid="selectApiZhQyxxListVo"/>
where id = #{id}
</select>
<insert id="insertApiZhQyxxList" parameterType="ApiZhQyxxList" useGeneratedKeys="true" keyProperty="id">
insert into api_zh_qyxx_list
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="authCode != null and authCode != '' ">auth_code,</if>
<if test="nsrsbh != null and nsrsbh != '' ">nsrsbh,</if>
<if test="djxh != null and djxh != '' ">djxh,</if>
<if test="nsrmc != null and nsrmc != '' ">nsrmc,</if>
<if test="dlhyDm != null and dlhyDm != '' ">dlhyDm,</if>
<if test="dlhymc != null and dlhymc != '' ">dlhymc,</if>
<if test="cyDm != null and cyDm != '' ">cyDm,</if>
<if test="cymc != null and cymc != '' ">cymc,</if>
<if test="scjydz != null and scjydz != '' ">scjydz,</if>
<if test="dsswjgDm != null and dsswjgDm != '' ">dsswjgDm,</if>
<if test="dsswjgmc != null and dsswjgmc != '' ">dsswjgmc,</if>
<if test="nsrztmc != null and nsrztmc != '' ">nsrztmc,</if>
<if test="zzsnsrlxId != null and zzsnsrlxId != '' ">zzsnsrlxId,</if>
<if test="nsrlx != null and nsrlx != '' ">nsrlx,</if>
<if test="nsrxydjId != null and nsrxydjId != '' ">nsrxydjId,</if>
<if test="scjyddhhm != null and scjyddhhm != '' ">scjyddhhm,</if>
<if test="djzclxDm != null and djzclxDm != '' ">djzclxDm,</if>
<if test="djzclxmc != null and djzclxmc != '' ">djzclxmc,</if>
<if test="minKprq != null and minKprq != '' ">minKprq,</if>
<if test="kprqMinMonth != null and kprqMinMonth != '' ">kprqMinMonth,</if>
<if test="createTime != null ">create_time,</if>
<if test="updateTime != null ">update_time,</if>
<if test="lhpjJb != null and lhpjJb != '' ">lhpjJb,</if>
<if test="lhpjDf != null and lhpjDf != '' ">lhpjDf,</if>
<if test="pdNd != null and pdNd != '' ">pdNd,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="authCode != null and authCode != '' ">#{authCode},</if>
<if test="nsrsbh != null and nsrsbh != '' ">#{nsrsbh},</if>
<if test="djxh != null and djxh != '' ">#{djxh},</if>
<if test="nsrmc != null and nsrmc != '' ">#{nsrmc},</if>
<if test="dlhyDm != null and dlhyDm != '' ">#{dlhyDm},</if>
<if test="dlhymc != null and dlhymc != '' ">#{dlhymc},</if>
<if test="cyDm != null and cyDm != '' ">#{cyDm},</if>
<if test="cymc != null and cymc != '' ">#{cymc},</if>
<if test="scjydz != null and scjydz != '' ">#{scjydz},</if>
<if test="dsswjgDm != null and dsswjgDm != '' ">#{dsswjgDm},</if>
<if test="dsswjgmc != null and dsswjgmc != '' ">#{dsswjgmc},</if>
<if test="nsrztmc != null and nsrztmc != '' ">#{nsrztmc},</if>
<if test="zzsnsrlxId != null and zzsnsrlxId != '' ">#{zzsnsrlxId},</if>
<if test="nsrlx != null and nsrlx != '' ">#{nsrlx},</if>
<if test="nsrxydjId != null and nsrxydjId != '' ">#{nsrxydjId},</if>
<if test="scjyddhhm != null and scjyddhhm != '' ">#{scjyddhhm},</if>
<if test="djzclxDm != null and djzclxDm != '' ">#{djzclxDm},</if>
<if test="djzclxmc != null and djzclxmc != '' ">#{djzclxmc},</if>
<if test="minKprq != null and minKprq != '' ">#{minKprq},</if>
<if test="kprqMinMonth != null and kprqMinMonth != '' ">#{kprqMinMonth},</if>
<if test="createTime != null ">#{createTime},</if>
<if test="updateTime != null ">#{updateTime},</if>
<if test="lhpjJb != null and lhpjJb != '' ">#{lhpjJb},</if>
<if test="lhpjDf != null and lhpjDf != '' ">#{lhpjDf},</if>
<if test="pdNd != null and pdNd != '' ">#{pdNd},</if>
</trim>
</insert>
<update id="updateApiZhQyxxList" parameterType="ApiZhQyxxList">
update api_zh_qyxx_list
<trim prefix="SET" suffixOverrides=",">
<if test="authCode != null and authCode != '' ">auth_code = #{authCode},</if>
<if test="nsrsbh != null and nsrsbh != '' ">nsrsbh = #{nsrsbh},</if>
<if test="djxh != null and djxh != '' ">djxh = #{djxh},</if>
<if test="nsrmc != null and nsrmc != '' ">nsrmc = #{nsrmc},</if>
<if test="dlhyDm != null and dlhyDm != '' ">dlhyDm = #{dlhyDm},</if>
<if test="dlhymc != null and dlhymc != '' ">dlhymc = #{dlhymc},</if>
<if test="cyDm != null and cyDm != '' ">cyDm = #{cyDm},</if>
<if test="cymc != null and cymc != '' ">cymc = #{cymc},</if>
<if test="scjydz != null and scjydz != '' ">scjydz = #{scjydz},</if>
<if test="dsswjgDm != null and dsswjgDm != '' ">dsswjgDm = #{dsswjgDm},</if>
<if test="dsswjgmc != null and dsswjgmc != '' ">dsswjgmc = #{dsswjgmc},</if>
<if test="nsrztmc != null and nsrztmc != '' ">nsrztmc = #{nsrztmc},</if>
<if test="zzsnsrlxId != null and zzsnsrlxId != '' ">zzsnsrlxId = #{zzsnsrlxId},</if>
<if test="nsrlx != null and nsrlx != '' ">nsrlx = #{nsrlx},</if>
<if test="nsrxydjId != null and nsrxydjId != '' ">nsrxydjId = #{nsrxydjId},</if>
<if test="scjyddhhm != null and scjyddhhm != '' ">scjyddhhm = #{scjyddhhm},</if>
<if test="djzclxDm != null and djzclxDm != '' ">djzclxDm = #{djzclxDm},</if>
<if test="djzclxmc != null and djzclxmc != '' ">djzclxmc = #{djzclxmc},</if>
<if test="minKprq != null and minKprq != '' ">minKprq = #{minKprq},</if>
<if test="kprqMinMonth != null and kprqMinMonth != '' ">kprqMinMonth = #{kprqMinMonth},</if>
<if test="createTime != null ">create_time = #{createTime},</if>
<if test="updateTime != null ">update_time = #{updateTime},</if>
<if test="lhpjJb != null and lhpjJb != '' ">lhpjJb = #{lhpjJb},</if>
<if test="lhpjDf != null and lhpjDf != '' ">lhpjDf = #{lhpjDf},</if>
<if test="pdNd != null and pdNd != '' ">pdNd = #{pdNd},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteApiZhQyxxListById" parameterType="Integer">
delete from api_zh_qyxx_list where id = #{id}
</delete>
<delete id="deleteApiZhQyxxListByIds" parameterType="String">
delete from api_zh_qyxx_list where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>