OdsGgxyxxmlHemdMapper.xml
7 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
<?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.credit.cy.center.mapper.OdsGgxyxxmlHemdMapper">
<resultMap type="OdsGgxyxxmlHemd" id="OdsGgxyxxmlHemdResult">
<result property="id" column="id" />
<result property="zzbh" column="zzbh" />
<result property="zzmc" column="zzmc" />
<result property="tyshxydm" column="tyshxydm" />
<result property="zzjgdm" column="zzjgdm" />
<result property="zch" column="zch" />
<result property="swdjh" column="swdjh" />
<result property="fddbrxm" column="fddbrxm" />
<result property="fddbrzjlx" column="fddbrzjlx" />
<result property="fddbrzjhm" column="fddbrzjhm" />
<result property="zyzrrxm" column="zyzrrxm" />
<result property="zyzrrzjlx" column="zyzrrzjlx" />
<result property="zyzrrzjhm" column="zyzrrzjhm" />
<result property="lrmdsy" column="lrmdsy" />
<result property="rdyj" column="rdyj" />
<result property="lrrq" column="lrrq" />
<result property="rdbm" column="rdbm" />
<result property="sjje" column="sjje" />
<result property="yxqz" column="yxqz" />
<result property="wsh" column="wsh" />
<result property="sfyzg" column="sfyzg" />
<result property="sfyxtgxyxftqtc" column="sfyxtgxyxftqtc" />
<result property="zt" column="zt" />
<result property="tcmdyy" column="tcmdyy" />
<result property="tcrq" column="tcrq" />
<result property="bmtyshxydm" column="bmtyshxydm" />
<result property="sfgs" column="sfgs" />
<result property="gsjzsj" column="gsjzsj" />
<result property="sjlybm" column="sjlybm" />
<result property="sjlydx" column="sjlydx" />
<result property="ybzj" column="ybzj" />
<result property="bgsyy" column="bgsyy" />
<result property="grade" column="grade" />
<result property="deptId" column="dept_id" />
<result property="areaId" column="area_id" />
<result property="catalogId" column="catalog_id" />
<result property="xyRksj" column="xy_rksj" />
<result property="xyZhgxsj" column="xy_zhgxsj" />
<result property="createTime" column="create_time" />
<result property="deptName" column="dept_name" />
<result property="businessCreateDate" column="business_create_date" />
<result property="exchangetime" column="exchangetime" />
</resultMap>
<sql id="selectOdsGgxyxxmlHemdVo">
select id, zzbh, zzmc, tyshxydm, zzjgdm, zch, swdjh, fddbrxm, fddbrzjlx, fddbrzjhm, zyzrrxm, zyzrrzjlx, zyzrrzjhm, lrmdsy, rdyj, lrrq, rdbm, sjje, yxqz, wsh, sfyzg, sfyxtgxyxftqtc, zt, tcmdyy, tcrq, bmtyshxydm, sfgs, gsjzsj, sjlybm, sjlydx, ybzj, bgsyy, grade, dept_id, area_id, catalog_id, xy_rksj, xy_zhgxsj, create_time, dept_name, business_create_date, exchangetime from ggxyxxml_heimdfr
</sql>
<select id="selectOdsGgxyxxmlHemdList" parameterType="OdsGgxyxxmlHemd" resultMap="OdsGgxyxxmlHemdResult">
<include refid="selectOdsGgxyxxmlHemdVo"/>
<where>
<if test="zzbh != null "> and zzbh = #{zzbh}</if>
<if test="zzmc != null and zzmc != ''"> and zzmc like concat('%',#{zzmc}, '%')</if>
<if test="tyshxydm != null and tyshxydm != ''"> and tyshxydm like concat('%',#{tyshxydm}, '%')</if>
<if test="zzjgdm != null and zzjgdm != ''"> and zzjgdm = #{zzjgdm}</if>
<if test="zch != null and zch != ''"> and zch = #{zch}</if>
<if test="swdjh != null and swdjh != ''"> and swdjh = #{swdjh}</if>
<if test="fddbrxm != null and fddbrxm != ''"> and fddbrxm = #{fddbrxm}</if>
<if test="fddbrzjlx != null and fddbrzjlx != ''"> and fddbrzjlx = #{fddbrzjlx}</if>
<if test="fddbrzjhm != null and fddbrzjhm != ''"> and fddbrzjhm = #{fddbrzjhm}</if>
<if test="zyzrrxm != null and zyzrrxm != ''"> and zyzrrxm = #{zyzrrxm}</if>
<if test="zyzrrzjlx != null and zyzrrzjlx != ''"> and zyzrrzjlx = #{zyzrrzjlx}</if>
<if test="zyzrrzjhm != null and zyzrrzjhm != ''"> and zyzrrzjhm = #{zyzrrzjhm}</if>
<if test="lrmdsy != null and lrmdsy != ''"> and lrmdsy = #{lrmdsy}</if>
<if test="rdyj != null and rdyj != ''"> and rdyj = #{rdyj}</if>
<if test="params.beginLrrq != null and params.beginLrrq != '' and params.endLrrq != null and params.endLrrq != ''"> and lrrq between #{params.beginLrrq} and #{params.endLrrq}</if>
<if test="rdbm != null and rdbm != ''"> and rdbm = #{rdbm}</if>
<if test="sjje != null "> and sjje = #{sjje}</if>
<if test="yxqz != null "> and yxqz = #{yxqz}</if>
<if test="wsh != null and wsh != ''"> and wsh = #{wsh}</if>
<if test="sfyzg != null and sfyzg != ''"> and sfyzg = #{sfyzg}</if>
<if test="sfyxtgxyxftqtc != null and sfyxtgxyxftqtc != ''"> and sfyxtgxyxftqtc = #{sfyxtgxyxftqtc}</if>
<if test="zt != null and zt != ''"> and zt = #{zt}</if>
<if test="tcmdyy != null and tcmdyy != ''"> and tcmdyy = #{tcmdyy}</if>
<if test="tcrq != null "> and tcrq = #{tcrq}</if>
<if test="bmtyshxydm != null and bmtyshxydm != ''"> and bmtyshxydm = #{bmtyshxydm}</if>
<if test="sfgs != null and sfgs != ''"> and sfgs = #{sfgs}</if>
<if test="gsjzsj != null "> and gsjzsj = #{gsjzsj}</if>
<if test="sjlybm != null and sjlybm != ''"> and sjlybm = #{sjlybm}</if>
<if test="sjlydx != null and sjlydx != ''"> and sjlydx = #{sjlydx}</if>
<if test="ybzj != null and ybzj != ''"> and ybzj = #{ybzj}</if>
<if test="bgsyy != null and bgsyy != ''"> and bgsyy = #{bgsyy}</if>
<if test="grade != null and grade != ''"> and grade = #{grade}</if>
<if test="deptId != null and deptId != ''"> and dept_id = #{deptId}</if>
<if test="areaId != null and areaId != ''"> and area_id = #{areaId}</if>
<if test="catalogId != null and catalogId != ''"> and catalog_id = #{catalogId}</if>
<if test="xyRksj != null "> and xy_rksj = #{xyRksj}</if>
<if test="xyZhgxsj != null "> and xy_zhgxsj = #{xyZhgxsj}</if>
<if test="deptName != null and deptName != ''"> and dept_name = #{deptName}</if>
<if test="businessCreateDate != null "> and business_create_date = #{businessCreateDate}</if>
<if test="exchangetime != null "> and exchangetime = #{exchangetime}</if>
</where>
</select>
<select id="selectOdsGgxyxxmlHemdById" parameterType="Long" resultMap="OdsGgxyxxmlHemdResult">
<include refid="selectOdsGgxyxxmlHemdVo"/>
where id = #{id}
</select>
</mapper>