OdsSjjxxhjZdgzdxmdMapper.xml
2.39 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
<?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.OdsSjjxxhjZdgzdxmdMapper">
<resultMap type="OdsSjjxxhjZdgzdxmd" id="OdsSjjxxhjZdgzdxmdResult">
<result property="id" column="id" />
<result property="xdrMc" column="xdr_mc" />
<result property="xdrShxym" column="xdr_shxym" />
<result property="codename" column="codename" />
<result property="entState" column="ent_state" />
<result property="areaName" column="area_name" />
<result property="sl" column="sl" />
<result property="updateTime" column="update_time" />
<result property="nrmdyy" column="nrmdyy" />
<result property="lrsy" column="lrsy" />
<result property="exchangetime" column="exchangetime" />
</resultMap>
<sql id="selectOdsSjjxxhjZdgzdxmdVo">
select id, xdr_mc, xdr_shxym, codename, ent_state, area_name, sl, update_time, nrmdyy, lrsy, exchangetime from sjjxxhj_zdgzdxmd
</sql>
<select id="selectOdsSjjxxhjZdgzdxmdList" parameterType="OdsSjjxxhjZdgzdxmd" resultMap="OdsSjjxxhjZdgzdxmdResult">
<include refid="selectOdsSjjxxhjZdgzdxmdVo"/>
<where>
<if test="xdrMc != null and xdrMc != ''"> and xdr_mc like concat('%',#{xdrMc}, '%')</if>
<if test="xdrShxym != null and xdrShxym != ''"> and xdr_shxym like concat('%',#{xdrShxym}, '%')</if>
<if test="codename != null and codename != ''"> and codename = #{codename}</if>
<if test="entState != null and entState != ''"> and ent_state = #{entState}</if>
<if test="areaName != null and areaName != ''"> and area_name like concat('%',#{areaName}, '%')</if>
<if test="sl != null and sl != ''"> and sl = #{sl}</if>
<if test="nrmdyy != null and nrmdyy != ''"> and nrmdyy = #{nrmdyy}</if>
<if test="lrsy != null and lrsy != ''"> and lrsy = #{lrsy}</if>
<if test="exchangetime != null "> and exchangetime = #{exchangetime}</if>
</where>
</select>
<select id="selectOdsSjjxxhjZdgzdxmdById" parameterType="Long" resultMap="OdsSjjxxhjZdgzdxmdResult">
<include refid="selectOdsSjjxxhjZdgzdxmdVo"/>
where id = #{id}
</select>
</mapper>