ApiZhSykphzxxListMapper.xml
8.73 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
<?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.apiZhSykphzxxList.mapper.ApiZhSykphzxxListMapper">
<resultMap type="ApiZhSykphzxxList" id="ApiZhSykphzxxListResult">
<result property="id" column="id" />
<result property="authCode" column="auth_code" />
<result property="djxh" column="djxh" />
<result property="nsrsbh" column="nsrsbh" />
<result property="kpqj" column="kpqj" />
<result property="kpyf" column="kpyf" />
<result property="xfhyId" column="xfhyId" />
<result property="xfCount" column="xfCount" />
<result property="xfmc" column="xfmc" />
<result property="xfDjxh" column="xfDjxh" />
<result property="zcjeCnt" column="zcjeCnt" />
<result property="zcjeCntRate" column="zcjeCntRate" />
<result property="zcjeSum" column="zcjeSum" />
<result property="zcjeSumRank" column="zcjeSumRank" />
<result property="zcjeSumRate" column="zcjeSumRate" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="wsjeSum" column="wsjeSum" />
<result property="gfDlhyDm" column="gfDlhyDm" />
<result property="gfDlhymc" column="gfDlhymc" />
<result property="xfnsrdzdah" column="xfnsrdzdah" />
</resultMap>
<sql id="selectApiZhSykphzxxListVo">
select id, auth_code, djxh, nsrsbh, kpqj, kpyf, xfhyId, xfCount, xfmc, xfDjxh, zcjeCnt, zcjeCntRate, zcjeSum, zcjeSumRank, zcjeSumRate, create_time, update_time, wsjeSum, gfDlhyDm, gfDlhymc, xfnsrdzdah from api_zh_sykphzxx_list
</sql>
<select id="selectApiZhSykphzxxListList" parameterType="ApiZhSykphzxxList" resultMap="ApiZhSykphzxxListResult">
<include refid="selectApiZhSykphzxxListVo"/>
<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="kpqj != null and kpqj != '' "> and kpqj = #{kpqj}</if>
<if test="kpyf != null and kpyf != '' "> and kpyf = #{kpyf}</if>
<if test="xfhyId != null and xfhyId != '' "> and xfhyId = #{xfhyId}</if>
<if test="xfCount != null "> and xfCount = #{xfCount}</if>
<if test="xfmc != null and xfmc != '' "> and xfmc = #{xfmc}</if>
<if test="xfDjxh != null and xfDjxh != '' "> and xfDjxh = #{xfDjxh}</if>
<if test="zcjeCnt != null "> and zcjeCnt = #{zcjeCnt}</if>
<if test="zcjeCntRate != null "> and zcjeCntRate = #{zcjeCntRate}</if>
<if test="zcjeSum != null "> and zcjeSum = #{zcjeSum}</if>
<if test="zcjeSumRank != null "> and zcjeSumRank = #{zcjeSumRank}</if>
<if test="zcjeSumRate != null "> and zcjeSumRate = #{zcjeSumRate}</if>
<if test="createTime != null "> and create_time = #{createTime}</if>
<if test="updateTime != null "> and update_time = #{updateTime}</if>
<if test="wsjeSum != null "> and wsjeSum = #{wsjeSum}</if>
<if test="gfDlhyDm != null and gfDlhyDm != '' "> and gfDlhyDm = #{gfDlhyDm}</if>
<if test="gfDlhymc != null and gfDlhymc != '' "> and gfDlhymc = #{gfDlhymc}</if>
<if test="xfnsrdzdah != null and xfnsrdzdah != '' "> and xfnsrdzdah = #{xfnsrdzdah}</if>
</where>
</select>
<select id="selectApiZhSykphzxxListById" parameterType="Integer" resultMap="ApiZhSykphzxxListResult">
<include refid="selectApiZhSykphzxxListVo"/>
where id = #{id}
</select>
<insert id="insertApiZhSykphzxxList" parameterType="ApiZhSykphzxxList" useGeneratedKeys="true" keyProperty="id">
insert into api_zh_sykphzxx_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="kpqj != null and kpqj != '' ">kpqj,</if>
<if test="kpyf != null and kpyf != '' ">kpyf,</if>
<if test="xfhyId != null and xfhyId != '' ">xfhyId,</if>
<if test="xfCount != null ">xfCount,</if>
<if test="xfmc != null and xfmc != '' ">xfmc,</if>
<if test="xfDjxh != null and xfDjxh != '' ">xfDjxh,</if>
<if test="zcjeCnt != null ">zcjeCnt,</if>
<if test="zcjeCntRate != null ">zcjeCntRate,</if>
<if test="zcjeSum != null ">zcjeSum,</if>
<if test="zcjeSumRank != null ">zcjeSumRank,</if>
<if test="zcjeSumRate != null ">zcjeSumRate,</if>
<if test="createTime != null ">create_time,</if>
<if test="updateTime != null ">update_time,</if>
<if test="wsjeSum != null ">wsjeSum,</if>
<if test="gfDlhyDm != null and gfDlhyDm != '' ">gfDlhyDm,</if>
<if test="gfDlhymc != null and gfDlhymc != '' ">gfDlhymc,</if>
<if test="xfnsrdzdah != null and xfnsrdzdah != '' ">xfnsrdzdah,</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="kpqj != null and kpqj != '' ">#{kpqj},</if>
<if test="kpyf != null and kpyf != '' ">#{kpyf},</if>
<if test="xfhyId != null and xfhyId != '' ">#{xfhyId},</if>
<if test="xfCount != null ">#{xfCount},</if>
<if test="xfmc != null and xfmc != '' ">#{xfmc},</if>
<if test="xfDjxh != null and xfDjxh != '' ">#{xfDjxh},</if>
<if test="zcjeCnt != null ">#{zcjeCnt},</if>
<if test="zcjeCntRate != null ">#{zcjeCntRate},</if>
<if test="zcjeSum != null ">#{zcjeSum},</if>
<if test="zcjeSumRank != null ">#{zcjeSumRank},</if>
<if test="zcjeSumRate != null ">#{zcjeSumRate},</if>
<if test="createTime != null ">#{createTime},</if>
<if test="updateTime != null ">#{updateTime},</if>
<if test="wsjeSum != null ">#{wsjeSum},</if>
<if test="gfDlhyDm != null and gfDlhyDm != '' ">#{gfDlhyDm},</if>
<if test="gfDlhymc != null and gfDlhymc != '' ">#{gfDlhymc},</if>
<if test="xfnsrdzdah != null and xfnsrdzdah != '' ">#{xfnsrdzdah},</if>
</trim>
</insert>
<update id="updateApiZhSykphzxxList" parameterType="ApiZhSykphzxxList">
update api_zh_sykphzxx_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="kpqj != null and kpqj != '' ">kpqj = #{kpqj},</if>
<if test="kpyf != null and kpyf != '' ">kpyf = #{kpyf},</if>
<if test="xfhyId != null and xfhyId != '' ">xfhyId = #{xfhyId},</if>
<if test="xfCount != null ">xfCount = #{xfCount},</if>
<if test="xfmc != null and xfmc != '' ">xfmc = #{xfmc},</if>
<if test="xfDjxh != null and xfDjxh != '' ">xfDjxh = #{xfDjxh},</if>
<if test="zcjeCnt != null ">zcjeCnt = #{zcjeCnt},</if>
<if test="zcjeCntRate != null ">zcjeCntRate = #{zcjeCntRate},</if>
<if test="zcjeSum != null ">zcjeSum = #{zcjeSum},</if>
<if test="zcjeSumRank != null ">zcjeSumRank = #{zcjeSumRank},</if>
<if test="zcjeSumRate != null ">zcjeSumRate = #{zcjeSumRate},</if>
<if test="createTime != null ">create_time = #{createTime},</if>
<if test="updateTime != null ">update_time = #{updateTime},</if>
<if test="wsjeSum != null ">wsjeSum = #{wsjeSum},</if>
<if test="gfDlhyDm != null and gfDlhyDm != '' ">gfDlhyDm = #{gfDlhyDm},</if>
<if test="gfDlhymc != null and gfDlhymc != '' ">gfDlhymc = #{gfDlhymc},</if>
<if test="xfnsrdzdah != null and xfnsrdzdah != '' ">xfnsrdzdah = #{xfnsrdzdah},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteApiZhSykphzxxListById" parameterType="Integer">
delete from api_zh_sykphzxx_list where id = #{id}
</delete>
<delete id="deleteApiZhSykphzxxListByIds" parameterType="String">
delete from api_zh_sykphzxx_list where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>