OdsGgxyxxmlHmdMapper.xml 6.17 KB
<?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.OdsGgxyxxmlHmdMapper">
    
    <resultMap type="OdsGgxyxxmlHmd" id="OdsGgxyxxmlHmdResult">
        <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="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="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="businessCreateDate"    column="business_create_date"    />
        <result property="deptName"    column="dept_name"    />
        <result property="exchangetime"    column="exchangetime"    />
    </resultMap>

    <sql id="selectOdsGgxyxxmlHmdVo">
        select id, zzbh, zzmc, tyshxydm, zzjgdm, zch, swdjh, fddbrxm, fddbrzjlx, fddbrzjhm, lrmdsy, rdyj, lrrq, rdbm, sjje, yxqz, wsh, zt, tcmdyy, tcrq, bmtyshxydm, sfgs, gsjzsj, sjlybm, sjlydx, ybzj, bgsyy, grade, dept_id, area_id, catalog_id, xy_rksj, xy_zhgxsj, create_time, business_create_date, dept_name, exchangetime from ggxyxxml_hongmdfr
    </sql>

    <select id="selectOdsGgxyxxmlHmdList" parameterType="OdsGgxyxxmlHmd" resultMap="OdsGgxyxxmlHmdResult">
        <include refid="selectOdsGgxyxxmlHmdVo"/>
        <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="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="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="businessCreateDate != null "> and business_create_date = #{businessCreateDate}</if>
            <if test="deptName != null  and deptName != ''"> and dept_name like concat('%',#{deptName}, '%')</if>
            <if test="exchangetime != null "> and exchangetime = #{exchangetime}</if>
        </where>
    </select>
    
    <select id="selectOdsGgxyxxmlHmdById" parameterType="Long" resultMap="OdsGgxyxxmlHmdResult">
        <include refid="selectOdsGgxyxxmlHmdVo"/>
        where id = #{id}
    </select>
</mapper>