OdsGgxyxxmlGjxypjsjbMapper.xml 5.77 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.OdsGgxyxxmlGjxypjsjbMapper">
    
    <resultMap type="OdsGgxyxxmlGjxypjsjb" id="OdsGgxyxxmlGjxypjsjbResult">
        <result property="id"    column="id"    />
        <result property="jgly"    column="jgly"    />
        <result property="hyfl"    column="hyfl"    />
        <result property="zzmc"    column="zzmc"    />
        <result property="tyshxydm"    column="tyshxydm"    />
        <result property="zhdf"    column="zhdf"    />
        <result property="pjdj"    column="pjdj"    />
        <result property="rdbm"    column="rdbm"    />
        <result property="lrrq"    column="lrrq"    />
        <result property="yxqz"    column="yxqz"    />
        <result property="jgbm"    column="jgbm"    />
        <result property="ybzj"    column="ybzj"    />
        <result property="sjlydx"    column="sjlydx"    />
        <result property="sfgs"    column="sfgs"    />
        <result property="bgsyy"    column="bgsyy"    />
        <result property="catalogId"    column="catalog_id"    />
        <result property="collType"    column="coll_type"    />
        <result property="collUserId"    column="coll_user_id"    />
        <result property="collUserName"    column="coll_user_name"    />
        <result property="collDeptId"    column="coll_dept_id"    />
        <result property="collDeptName"    column="coll_dept_name"    />
        <result property="collDeptAreaId"    column="coll_dept_area_id"    />
        <result property="sourceDeptId"    column="source_dept_id"    />
        <result property="sourceDeptName"    column="source_dept_name"    />
        <result property="sourceDeptAreaId"    column="source_dept_area_id"    />
        <result property="createTime"    column="create_time"    />
        <result property="updateTime"    column="update_time"    />
        <result property="xyRksj"    column="xy_rksj"    />
        <result property="xyZhgxsj"    column="xy_zhgxsj"    />
        <result property="collDataSources"    column="coll_data_sources"    />
        <result property="exchangetime"    column="exchangetime"    />
    </resultMap>

    <sql id="selectOdsGgxyxxmlGjxypjsjbVo">
        select id, jgly, hyfl, zzmc, tyshxydm, zhdf, pjdj, rdbm, lrrq, yxqz, jgbm, ybzj, sjlydx, sfgs, bgsyy, catalog_id, coll_type, coll_user_id, coll_user_name, coll_dept_id, coll_dept_name, coll_dept_area_id, source_dept_id, source_dept_name, source_dept_area_id, create_time, update_time, xy_rksj, xy_zhgxsj, coll_data_sources, exchangetime from ggxyxxml_gjxypjsj
    </sql>

    <select id="selectOdsGgxyxxmlGjxypjsjbList" parameterType="OdsGgxyxxmlGjxypjsjb" resultMap="OdsGgxyxxmlGjxypjsjbResult">
        <include refid="selectOdsGgxyxxmlGjxypjsjbVo"/>
        <where>  
            <if test="jgly != null  and jgly != ''"> and jgly = #{jgly}</if>
            <if test="hyfl != null  and hyfl != ''"> and hyfl = #{hyfl}</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="zhdf != null "> and zhdf = #{zhdf}</if>
            <if test="pjdj != null  and pjdj != ''"> and pjdj = #{pjdj}</if>
            <if test="rdbm != null  and rdbm != ''"> and rdbm = #{rdbm}</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="yxqz != null "> and yxqz = #{yxqz}</if>
            <if test="jgbm != null  and jgbm != ''"> and jgbm = #{jgbm}</if>
            <if test="ybzj != null  and ybzj != ''"> and ybzj = #{ybzj}</if>
            <if test="sjlydx != null  and sjlydx != ''"> and sjlydx = #{sjlydx}</if>
            <if test="sfgs != null  and sfgs != ''"> and sfgs = #{sfgs}</if>
            <if test="bgsyy != null  and bgsyy != ''"> and bgsyy = #{bgsyy}</if>
            <if test="catalogId != null  and catalogId != ''"> and catalog_id = #{catalogId}</if>
            <if test="collType != null  and collType != ''"> and coll_type = #{collType}</if>
            <if test="collUserId != null  and collUserId != ''"> and coll_user_id = #{collUserId}</if>
            <if test="collUserName != null  and collUserName != ''"> and coll_user_name like concat('%',#{collUserName}, '%')</if>
            <if test="collDeptId != null  and collDeptId != ''"> and coll_dept_id = #{collDeptId}</if>
            <if test="collDeptName != null  and collDeptName != ''"> and coll_dept_name like concat('%',#{collDeptName}, '%')</if>
            <if test="collDeptAreaId != null  and collDeptAreaId != ''"> and coll_dept_area_id = #{collDeptAreaId}</if>
            <if test="sourceDeptId != null  and sourceDeptId != ''"> and source_dept_id = #{sourceDeptId}</if>
            <if test="sourceDeptName != null  and sourceDeptName != ''"> and source_dept_name like concat('%',#{sourceDeptName}, '%')</if>
            <if test="sourceDeptAreaId != null  and sourceDeptAreaId != ''"> and source_dept_area_id = #{sourceDeptAreaId}</if>
            <if test="xyRksj != null "> and xy_rksj = #{xyRksj}</if>
            <if test="xyZhgxsj != null "> and xy_zhgxsj = #{xyZhgxsj}</if>
            <if test="collDataSources != null  and collDataSources != ''"> and coll_data_sources = #{collDataSources}</if>
            <if test="exchangetime != null "> and exchangetime = #{exchangetime}</if>
        </where>
    </select>
    
    <select id="selectOdsGgxyxxmlGjxypjsjbById" parameterType="Long" resultMap="OdsGgxyxxmlGjxypjsjbResult">
        <include refid="selectOdsGgxyxxmlGjxypjsjbVo"/>
        where id = #{id}
    </select>
</mapper>