DwdFrkQysldjxxMapper.xml
2.66 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
<?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.DwdFrkQysldjxxMapper">
<resultMap type="DwdFrkQysldjxx" id="DwdFrkQysldjxxResult">
<result property="id" column="id" />
<result property="tyshxydm" column="tyshxydm" />
<result property="qymc" column="qymc" />
<result property="qyjgid" column="qyjgid" />
<result property="hyml" column="hyml" />
<result property="gxgsj" column="gxgsj" />
<result property="jyfw" column="jyfw" />
<result property="zs" column="zs" />
<result property="zch" column="zch" />
<result property="zczb" column="zczb" />
<result property="qyzt" column="qyzt" />
</resultMap>
<sql id="selectDwdFrkQysldjxxVo">
select tyshxydm, qymc, qyjgid, hyml, gxgsj, jyfw, zs, zch, zczb, qyzt from cyq_qysldjxxb
</sql>
<select id="selectDwdFrkQysldjxxList" parameterType="DwdFrkQysldjxx" resultMap="DwdFrkQysldjxxResult">
<include refid="selectDwdFrkQysldjxxVo"/>
<where>
<if test="tyshxydm != null and tyshxydm != ''"> and tyshxydm = #{tyshxydm}</if>
<if test="qymc != null and qymc != ''"> and qymc like concat('%',#{qymc}, '%')</if>
<if test="qyjgid != null and qyjgid != ''"> and qyjgid = #{qyjgid}</if>
<if test="hyml != null and hyml != ''"> and hyml = #{hyml}</if>
<if test="gxgsj != null and gxgsj != ''"> and gxgsj = #{gxgsj}</if>
<if test="jyfw != null and jyfw != ''"> and jyfw = #{jyfw}</if>
<if test="zs != null and zs != ''"> and zs = #{zs}</if>
<if test="zch != null and zch != ''"> and zch = #{zch}</if>
<if test="zczb != null and zczb != ''"> and zczb = #{zczb}</if>
<if test="qyzt != null and qyzt != ''"> and qyzt = #{qyzt}</if>
</where>
</select>
<select id="selectDwdFrkQysldjxxById" parameterType="Long" resultMap="DwdFrkQysldjxxResult">
<include refid="selectDwdFrkQysldjxxVo"/>
where id = #{id}
</select>
<select id="selectLatestFrkEntity" parameterType="com.credit.cy.center.model.query.CenterEntityQuery" resultMap="DwdFrkQysldjxxResult">
<include refid="selectDwdFrkQysldjxxVo"/>
<where>
<if test="entityCode != null and entityCode != ''"> and tyshxydm = #{entityCode}</if>
<if test="entityName != null and entityName != ''"> and qymc = #{entityName}</if>
</where>
limit 1
</select>
</mapper>