ApiZhSbxxListMapper.xml
7.12 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
<?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.apiZhSbxxList.mapper.ApiZhSbxxListMapper">
<resultMap type="ApiZhSbxxList" id="ApiZhSbxxListResult">
<result property="id" column="id" />
<result property="authCode" column="auth_code" />
<result property="sbrq" column="sbrq" />
<result property="djxh" column="djxh" />
<result property="nsrsbh" column="nsrsbh" />
<result property="jmse" column="jmse" />
<result property="ysx" column="ysx" />
<result property="sbqx" column="sbqx" />
<result property="skssqq" column="skssqq" />
<result property="skssqz" column="skssqz" />
<result property="ybtse" column="ybtse" />
<result property="yjse" column="yjse" />
<result property="ynse" column="ynse" />
<result property="jsyj" column="jsyj" />
<result property="zsxmmc" column="zsxmmc" />
<result property="spmc" column="spmc" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectApiZhSbxxListVo">
select id, auth_code, sbrq, djxh, nsrsbh, jmse, ysx, sbqx, skssqq, skssqz, ybtse, yjse, ynse, jsyj, zsxmmc, spmc, create_time, update_time from api_zh_sbxx_list
</sql>
<select id="selectApiZhSbxxListList" parameterType="ApiZhSbxxList" resultMap="ApiZhSbxxListResult">
<include refid="selectApiZhSbxxListVo"/>
<where>
<if test="id != null "> and id = #{id}</if>
<if test="authCode != null and authCode != '' "> and auth_code = #{authCode}</if>
<if test="sbrq != null and sbrq != '' "> and sbrq = #{sbrq}</if>
<if test="djxh != null and djxh != '' "> and djxh = #{djxh}</if>
<if test="nsrsbh != null and nsrsbh != '' "> and nsrsbh = #{nsrsbh}</if>
<if test="jmse != null "> and jmse = #{jmse}</if>
<if test="ysx != null "> and ysx = #{ysx}</if>
<if test="sbqx != null and sbqx != '' "> and sbqx = #{sbqx}</if>
<if test="skssqq != null and skssqq != '' "> and skssqq = #{skssqq}</if>
<if test="skssqz != null and skssqz != '' "> and skssqz = #{skssqz}</if>
<if test="ybtse != null "> and ybtse = #{ybtse}</if>
<if test="yjse != null "> and yjse = #{yjse}</if>
<if test="ynse != null "> and ynse = #{ynse}</if>
<if test="jsyj != null "> and jsyj = #{jsyj}</if>
<if test="zsxmmc != null and zsxmmc != '' "> and zsxmmc = #{zsxmmc}</if>
<if test="spmc != null and spmc != '' "> and spmc = #{spmc}</if>
<if test="createTime != null "> and create_time = #{createTime}</if>
<if test="updateTime != null "> and update_time = #{updateTime}</if>
</where>
</select>
<select id="selectApiZhSbxxListById" parameterType="Integer" resultMap="ApiZhSbxxListResult">
<include refid="selectApiZhSbxxListVo"/>
where id = #{id}
</select>
<insert id="insertApiZhSbxxList" parameterType="ApiZhSbxxList" useGeneratedKeys="true" keyProperty="id">
insert into api_zh_sbxx_list
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="authCode != null and authCode != '' ">auth_code,</if>
<if test="sbrq != null and sbrq != '' ">sbrq,</if>
<if test="djxh != null and djxh != '' ">djxh,</if>
<if test="nsrsbh != null and nsrsbh != '' ">nsrsbh,</if>
<if test="jmse != null ">jmse,</if>
<if test="ysx != null ">ysx,</if>
<if test="sbqx != null and sbqx != '' ">sbqx,</if>
<if test="skssqq != null and skssqq != '' ">skssqq,</if>
<if test="skssqz != null and skssqz != '' ">skssqz,</if>
<if test="ybtse != null ">ybtse,</if>
<if test="yjse != null ">yjse,</if>
<if test="ynse != null ">ynse,</if>
<if test="jsyj != null ">jsyj,</if>
<if test="zsxmmc != null and zsxmmc != '' ">zsxmmc,</if>
<if test="spmc != null and spmc != '' ">spmc,</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="sbrq != null and sbrq != '' ">#{sbrq},</if>
<if test="djxh != null and djxh != '' ">#{djxh},</if>
<if test="nsrsbh != null and nsrsbh != '' ">#{nsrsbh},</if>
<if test="jmse != null ">#{jmse},</if>
<if test="ysx != null ">#{ysx},</if>
<if test="sbqx != null and sbqx != '' ">#{sbqx},</if>
<if test="skssqq != null and skssqq != '' ">#{skssqq},</if>
<if test="skssqz != null and skssqz != '' ">#{skssqz},</if>
<if test="ybtse != null ">#{ybtse},</if>
<if test="yjse != null ">#{yjse},</if>
<if test="ynse != null ">#{ynse},</if>
<if test="jsyj != null ">#{jsyj},</if>
<if test="zsxmmc != null and zsxmmc != '' ">#{zsxmmc},</if>
<if test="spmc != null and spmc != '' ">#{spmc},</if>
<if test="createTime != null ">#{createTime},</if>
<if test="updateTime != null ">#{updateTime},</if>
</trim>
</insert>
<update id="updateApiZhSbxxList" parameterType="ApiZhSbxxList">
update api_zh_sbxx_list
<trim prefix="SET" suffixOverrides=",">
<if test="authCode != null and authCode != '' ">auth_code = #{authCode},</if>
<if test="sbrq != null and sbrq != '' ">sbrq = #{sbrq},</if>
<if test="djxh != null and djxh != '' ">djxh = #{djxh},</if>
<if test="nsrsbh != null and nsrsbh != '' ">nsrsbh = #{nsrsbh},</if>
<if test="jmse != null ">jmse = #{jmse},</if>
<if test="ysx != null ">ysx = #{ysx},</if>
<if test="sbqx != null and sbqx != '' ">sbqx = #{sbqx},</if>
<if test="skssqq != null and skssqq != '' ">skssqq = #{skssqq},</if>
<if test="skssqz != null and skssqz != '' ">skssqz = #{skssqz},</if>
<if test="ybtse != null ">ybtse = #{ybtse},</if>
<if test="yjse != null ">yjse = #{yjse},</if>
<if test="ynse != null ">ynse = #{ynse},</if>
<if test="jsyj != null ">jsyj = #{jsyj},</if>
<if test="zsxmmc != null and zsxmmc != '' ">zsxmmc = #{zsxmmc},</if>
<if test="spmc != null and spmc != '' ">spmc = #{spmc},</if>
<if test="createTime != null ">create_time = #{createTime},</if>
<if test="updateTime != null ">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteApiZhSbxxListById" parameterType="Integer">
delete from api_zh_sbxx_list where id = #{id}
</delete>
<delete id="deleteApiZhSbxxListByIds" parameterType="String">
delete from api_zh_sbxx_list where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>