ApiZhQyxxListMapper.xml 10.9 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.lhcredit.project.business.apiZhQyxxList.mapper.ApiZhQyxxListMapper">
    
    <resultMap type="ApiZhQyxxList" id="ApiZhQyxxListResult">
        <result property="id"    column="id"    />
        <result property="authCode"    column="auth_code"    />
        <result property="nsrsbh"    column="nsrsbh"    />
        <result property="djxh"    column="djxh"    />
        <result property="nsrmc"    column="nsrmc"    />
        <result property="dlhyDm"    column="dlhyDm"    />
        <result property="dlhymc"    column="dlhymc"    />
        <result property="cyDm"    column="cyDm"    />
        <result property="cymc"    column="cymc"    />
        <result property="scjydz"    column="scjydz"    />
        <result property="dsswjgDm"    column="dsswjgDm"    />
        <result property="dsswjgmc"    column="dsswjgmc"    />
        <result property="nsrztmc"    column="nsrztmc"    />
        <result property="zzsnsrlxId"    column="zzsnsrlxId"    />
        <result property="nsrlx"    column="nsrlx"    />
        <result property="nsrxydjId"    column="nsrxydjId"    />
        <result property="scjyddhhm"    column="scjyddhhm"    />
        <result property="djzclxDm"    column="djzclxDm"    />
        <result property="djzclxmc"    column="djzclxmc"    />
        <result property="minKprq"    column="minKprq"    />
        <result property="kprqMinMonth"    column="kprqMinMonth"    />
        <result property="createTime"    column="create_time"    />
        <result property="updateTime"    column="update_time"    />
        <result property="lhpjJb"    column="lhpjJb"    />
        <result property="lhpjDf"    column="lhpjDf"    />
        <result property="pdNd"    column="pdNd"    />
    </resultMap>
	
	<sql id="selectApiZhQyxxListVo">
        select id, auth_code, nsrsbh, djxh, nsrmc, dlhyDm, dlhymc, cyDm, cymc, scjydz, dsswjgDm, dsswjgmc, nsrztmc, zzsnsrlxId, nsrlx, nsrxydjId, scjyddhhm, djzclxDm, djzclxmc, minKprq, kprqMinMonth, create_time, update_time, lhpjJb, lhpjDf, pdNd from api_zh_qyxx_list
    </sql>
	
    <select id="selectApiZhQyxxListList" parameterType="ApiZhQyxxList" resultMap="ApiZhQyxxListResult">
        <include refid="selectApiZhQyxxListVo"/>
        <where>  
            <if test="id != null "> and id = #{id}</if>
            <if test="authCode != null  and authCode != '' "> and auth_code = #{authCode}</if>
            <if test="nsrsbh != null  and nsrsbh != '' "> and nsrsbh = #{nsrsbh}</if>
            <if test="djxh != null  and djxh != '' "> and djxh = #{djxh}</if>
            <if test="nsrmc != null  and nsrmc != '' "> and nsrmc = #{nsrmc}</if>
            <if test="dlhyDm != null  and dlhyDm != '' "> and dlhyDm = #{dlhyDm}</if>
            <if test="dlhymc != null  and dlhymc != '' "> and dlhymc = #{dlhymc}</if>
            <if test="cyDm != null  and cyDm != '' "> and cyDm = #{cyDm}</if>
            <if test="cymc != null  and cymc != '' "> and cymc = #{cymc}</if>
            <if test="scjydz != null  and scjydz != '' "> and scjydz = #{scjydz}</if>
            <if test="dsswjgDm != null  and dsswjgDm != '' "> and dsswjgDm = #{dsswjgDm}</if>
            <if test="dsswjgmc != null  and dsswjgmc != '' "> and dsswjgmc = #{dsswjgmc}</if>
            <if test="nsrztmc != null  and nsrztmc != '' "> and nsrztmc = #{nsrztmc}</if>
            <if test="zzsnsrlxId != null  and zzsnsrlxId != '' "> and zzsnsrlxId = #{zzsnsrlxId}</if>
            <if test="nsrlx != null  and nsrlx != '' "> and nsrlx = #{nsrlx}</if>
            <if test="nsrxydjId != null  and nsrxydjId != '' "> and nsrxydjId = #{nsrxydjId}</if>
            <if test="scjyddhhm != null  and scjyddhhm != '' "> and scjyddhhm = #{scjyddhhm}</if>
            <if test="djzclxDm != null  and djzclxDm != '' "> and djzclxDm = #{djzclxDm}</if>
            <if test="djzclxmc != null  and djzclxmc != '' "> and djzclxmc = #{djzclxmc}</if>
            <if test="minKprq != null  and minKprq != '' "> and minKprq = #{minKprq}</if>
            <if test="kprqMinMonth != null  and kprqMinMonth != '' "> and kprqMinMonth = #{kprqMinMonth}</if>
            <if test="createTime != null "> and create_time = #{createTime}</if>
            <if test="updateTime != null "> and update_time = #{updateTime}</if>
            <if test="lhpjJb != null  and lhpjJb != '' "> and lhpjJb = #{lhpjJb}</if>
            <if test="lhpjDf != null  and lhpjDf != '' "> and lhpjDf = #{lhpjDf}</if>
            <if test="pdNd != null  and pdNd != '' "> and pdNd = #{pdNd}</if>
        </where>
    </select>
    
    <select id="selectApiZhQyxxListById" parameterType="Integer" resultMap="ApiZhQyxxListResult">
        <include refid="selectApiZhQyxxListVo"/>
        where id = #{id}
    </select>
        
    <insert id="insertApiZhQyxxList" parameterType="ApiZhQyxxList" useGeneratedKeys="true" keyProperty="id">
        insert into api_zh_qyxx_list
		<trim prefix="(" suffix=")" suffixOverrides=",">
			<if test="authCode != null  and authCode != ''  ">auth_code,</if>
			<if test="nsrsbh != null  and nsrsbh != ''  ">nsrsbh,</if>
			<if test="djxh != null  and djxh != ''  ">djxh,</if>
			<if test="nsrmc != null  and nsrmc != ''  ">nsrmc,</if>
			<if test="dlhyDm != null  and dlhyDm != ''  ">dlhyDm,</if>
			<if test="dlhymc != null  and dlhymc != ''  ">dlhymc,</if>
			<if test="cyDm != null  and cyDm != ''  ">cyDm,</if>
			<if test="cymc != null  and cymc != ''  ">cymc,</if>
			<if test="scjydz != null  and scjydz != ''  ">scjydz,</if>
			<if test="dsswjgDm != null  and dsswjgDm != ''  ">dsswjgDm,</if>
			<if test="dsswjgmc != null  and dsswjgmc != ''  ">dsswjgmc,</if>
			<if test="nsrztmc != null  and nsrztmc != ''  ">nsrztmc,</if>
			<if test="zzsnsrlxId != null  and zzsnsrlxId != ''  ">zzsnsrlxId,</if>
			<if test="nsrlx != null  and nsrlx != ''  ">nsrlx,</if>
			<if test="nsrxydjId != null  and nsrxydjId != ''  ">nsrxydjId,</if>
			<if test="scjyddhhm != null  and scjyddhhm != ''  ">scjyddhhm,</if>
			<if test="djzclxDm != null  and djzclxDm != ''  ">djzclxDm,</if>
			<if test="djzclxmc != null  and djzclxmc != ''  ">djzclxmc,</if>
			<if test="minKprq != null  and minKprq != ''  ">minKprq,</if>
			<if test="kprqMinMonth != null  and kprqMinMonth != ''  ">kprqMinMonth,</if>
			<if test="createTime != null  ">create_time,</if>
			<if test="updateTime != null  ">update_time,</if>
			<if test="lhpjJb != null  and lhpjJb != ''  ">lhpjJb,</if>
			<if test="lhpjDf != null  and lhpjDf != ''  ">lhpjDf,</if>
			<if test="pdNd != null  and pdNd != ''  ">pdNd,</if>
         </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
			<if test="authCode != null  and authCode != ''  ">#{authCode},</if>
			<if test="nsrsbh != null  and nsrsbh != ''  ">#{nsrsbh},</if>
			<if test="djxh != null  and djxh != ''  ">#{djxh},</if>
			<if test="nsrmc != null  and nsrmc != ''  ">#{nsrmc},</if>
			<if test="dlhyDm != null  and dlhyDm != ''  ">#{dlhyDm},</if>
			<if test="dlhymc != null  and dlhymc != ''  ">#{dlhymc},</if>
			<if test="cyDm != null  and cyDm != ''  ">#{cyDm},</if>
			<if test="cymc != null  and cymc != ''  ">#{cymc},</if>
			<if test="scjydz != null  and scjydz != ''  ">#{scjydz},</if>
			<if test="dsswjgDm != null  and dsswjgDm != ''  ">#{dsswjgDm},</if>
			<if test="dsswjgmc != null  and dsswjgmc != ''  ">#{dsswjgmc},</if>
			<if test="nsrztmc != null  and nsrztmc != ''  ">#{nsrztmc},</if>
			<if test="zzsnsrlxId != null  and zzsnsrlxId != ''  ">#{zzsnsrlxId},</if>
			<if test="nsrlx != null  and nsrlx != ''  ">#{nsrlx},</if>
			<if test="nsrxydjId != null  and nsrxydjId != ''  ">#{nsrxydjId},</if>
			<if test="scjyddhhm != null  and scjyddhhm != ''  ">#{scjyddhhm},</if>
			<if test="djzclxDm != null  and djzclxDm != ''  ">#{djzclxDm},</if>
			<if test="djzclxmc != null  and djzclxmc != ''  ">#{djzclxmc},</if>
			<if test="minKprq != null  and minKprq != ''  ">#{minKprq},</if>
			<if test="kprqMinMonth != null  and kprqMinMonth != ''  ">#{kprqMinMonth},</if>
			<if test="createTime != null  ">#{createTime},</if>
			<if test="updateTime != null  ">#{updateTime},</if>
			<if test="lhpjJb != null  and lhpjJb != ''  ">#{lhpjJb},</if>
			<if test="lhpjDf != null  and lhpjDf != ''  ">#{lhpjDf},</if>
			<if test="pdNd != null  and pdNd != ''  ">#{pdNd},</if>
         </trim>
    </insert>
	 
    <update id="updateApiZhQyxxList" parameterType="ApiZhQyxxList">
        update api_zh_qyxx_list
        <trim prefix="SET" suffixOverrides=",">
            <if test="authCode != null  and authCode != ''  ">auth_code = #{authCode},</if>
            <if test="nsrsbh != null  and nsrsbh != ''  ">nsrsbh = #{nsrsbh},</if>
            <if test="djxh != null  and djxh != ''  ">djxh = #{djxh},</if>
            <if test="nsrmc != null  and nsrmc != ''  ">nsrmc = #{nsrmc},</if>
            <if test="dlhyDm != null  and dlhyDm != ''  ">dlhyDm = #{dlhyDm},</if>
            <if test="dlhymc != null  and dlhymc != ''  ">dlhymc = #{dlhymc},</if>
            <if test="cyDm != null  and cyDm != ''  ">cyDm = #{cyDm},</if>
            <if test="cymc != null  and cymc != ''  ">cymc = #{cymc},</if>
            <if test="scjydz != null  and scjydz != ''  ">scjydz = #{scjydz},</if>
            <if test="dsswjgDm != null  and dsswjgDm != ''  ">dsswjgDm = #{dsswjgDm},</if>
            <if test="dsswjgmc != null  and dsswjgmc != ''  ">dsswjgmc = #{dsswjgmc},</if>
            <if test="nsrztmc != null  and nsrztmc != ''  ">nsrztmc = #{nsrztmc},</if>
            <if test="zzsnsrlxId != null  and zzsnsrlxId != ''  ">zzsnsrlxId = #{zzsnsrlxId},</if>
            <if test="nsrlx != null  and nsrlx != ''  ">nsrlx = #{nsrlx},</if>
            <if test="nsrxydjId != null  and nsrxydjId != ''  ">nsrxydjId = #{nsrxydjId},</if>
            <if test="scjyddhhm != null  and scjyddhhm != ''  ">scjyddhhm = #{scjyddhhm},</if>
            <if test="djzclxDm != null  and djzclxDm != ''  ">djzclxDm = #{djzclxDm},</if>
            <if test="djzclxmc != null  and djzclxmc != ''  ">djzclxmc = #{djzclxmc},</if>
            <if test="minKprq != null  and minKprq != ''  ">minKprq = #{minKprq},</if>
            <if test="kprqMinMonth != null  and kprqMinMonth != ''  ">kprqMinMonth = #{kprqMinMonth},</if>
            <if test="createTime != null  ">create_time = #{createTime},</if>
            <if test="updateTime != null  ">update_time = #{updateTime},</if>
            <if test="lhpjJb != null  and lhpjJb != ''  ">lhpjJb = #{lhpjJb},</if>
            <if test="lhpjDf != null  and lhpjDf != ''  ">lhpjDf = #{lhpjDf},</if>
            <if test="pdNd != null  and pdNd != ''  ">pdNd = #{pdNd},</if>
        </trim>
        where id = #{id}
    </update>

	<delete id="deleteApiZhQyxxListById" parameterType="Integer">
        delete from api_zh_qyxx_list where id = #{id}
    </delete>
	
    <delete id="deleteApiZhQyxxListByIds" parameterType="String">
        delete from api_zh_qyxx_list where id in 
        <foreach item="id" collection="array" open="(" separator="," close=")">
            #{id}
        </foreach>
    </delete>
    
</mapper>