ApiZhKphzxxListMapper.xml 13.5 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.apiZhKphzxxList.mapper.ApiZhKphzxxListMapper">
    
    <resultMap type="ApiZhKphzxxList" id="ApiZhKphzxxListResult">
        <result property="id"    column="id"    />
        <result property="authCode"    column="auth_code"    />
        <result property="djxh"    column="djxh"    />
        <result property="nsrsbh"    column="nsrsbh"    />
        <result property="dlhyDm"    column="dlhyDm"    />
        <result property="dlhymc"    column="dlhymc"    />
        <result property="dykptsLp"    column="dykptsLp"    />
        <result property="dykptsQb"    column="dykptsQb"    />
        <result property="lpje"    column="lpje"    />
        <result property="lpwsje"    column="lpwsje"    />
        <result property="lpse"    column="lpse"    />
        <result property="lpsl"    column="lpsl"    />
        <result property="fpje"    column="fpje"    />
        <result property="fpsl"    column="fpsl"    />
        <result property="fpwsje"    column="fpwsje"    />
        <result property="fpse"    column="fpse"    />
        <result property="hpje"    column="hpje"    />
        <result property="hpwsje"    column="hpwsje"    />
        <result property="hpse"    column="hpse"    />
        <result property="hpsl"    column="hpsl"    />
        <result property="yxhpje"    column="yxhpje"    />
        <result property="yxhpsl"    column="yxhpsl"    />
        <result property="kpje"    column="kpje"    />
        <result property="wsje"    column="wsje"    />
        <result property="se"    column="se"    />
        <result property="yxwsje"    column="yxwsje"    />
        <result property="kpsl"    column="kpsl"    />
        <result property="kpqj"    column="kpqj"    />
        <result property="kpyf"    column="kpyf"    />
        <result property="lxwjyts"    column="lxwjyts"    />
        <result property="zddzje"    column="zddzje"    />
        <result property="zjkpsj"    column="zjkpsj"    />
        <result property="ppkpje"    column="ppkpje"    />
        <result property="ppwsje"    column="ppwsje"    />
        <result property="ppkpsl"    column="ppkpsl"    />
        <result property="zpkpje"    column="zpkpje"    />
        <result property="zpwsje"    column="zpwsje"    />
        <result property="zpkpsl"    column="zpkpsl"    />
        <result property="yxhpwsje"    column="yxhpwsje"    />
        <result property="createTime"    column="create_time"    />
        <result property="updateTime"    column="update_time"    />
    </resultMap>
	
	<sql id="selectApiZhKphzxxListVo">
        select id, auth_code, djxh, nsrsbh, dlhyDm, dlhymc, dykptsLp, dykptsQb, lpje, lpwsje, lpse, lpsl, fpje, fpsl, fpwsje, fpse, hpje, hpwsje, hpse, hpsl, yxhpje, yxhpsl, kpje, wsje, se, yxwsje, kpsl, kpqj, kpyf, lxwjyts, zddzje, zjkpsj, ppkpje, ppwsje, ppkpsl, zpkpje, zpwsje, zpkpsl, yxhpwsje, create_time, update_time from api_zh_kphzxx_list
    </sql>
	
    <select id="selectApiZhKphzxxListList" parameterType="ApiZhKphzxxList" resultMap="ApiZhKphzxxListResult">
        <include refid="selectApiZhKphzxxListVo"/>
        <where>  
            <if test="id != null "> and id = #{id}</if>
            <if test="authCode != null  and authCode != '' "> and auth_code = #{authCode}</if>
            <if test="djxh != null  and djxh != '' "> and djxh = #{djxh}</if>
            <if test="nsrsbh != null  and nsrsbh != '' "> and nsrsbh = #{nsrsbh}</if>
            <if test="dlhyDm != null  and dlhyDm != '' "> and dlhyDm = #{dlhyDm}</if>
            <if test="dlhymc != null  and dlhymc != '' "> and dlhymc = #{dlhymc}</if>
            <if test="dykptsLp != null "> and dykptsLp = #{dykptsLp}</if>
            <if test="dykptsQb != null "> and dykptsQb = #{dykptsQb}</if>
            <if test="lpje != null "> and lpje = #{lpje}</if>
            <if test="lpwsje != null "> and lpwsje = #{lpwsje}</if>
            <if test="lpse != null "> and lpse = #{lpse}</if>
            <if test="lpsl != null "> and lpsl = #{lpsl}</if>
            <if test="fpje != null "> and fpje = #{fpje}</if>
            <if test="fpsl != null "> and fpsl = #{fpsl}</if>
            <if test="fpwsje != null "> and fpwsje = #{fpwsje}</if>
            <if test="fpse != null "> and fpse = #{fpse}</if>
            <if test="hpje != null "> and hpje = #{hpje}</if>
            <if test="hpwsje != null "> and hpwsje = #{hpwsje}</if>
            <if test="hpse != null "> and hpse = #{hpse}</if>
            <if test="hpsl != null "> and hpsl = #{hpsl}</if>
            <if test="yxhpje != null "> and yxhpje = #{yxhpje}</if>
            <if test="yxhpsl != null "> and yxhpsl = #{yxhpsl}</if>
            <if test="kpje != null "> and kpje = #{kpje}</if>
            <if test="wsje != null "> and wsje = #{wsje}</if>
            <if test="se != null "> and se = #{se}</if>
            <if test="yxwsje != null "> and yxwsje = #{yxwsje}</if>
            <if test="kpsl != null "> and kpsl = #{kpsl}</if>
            <if test="kpqj != null  and kpqj != '' "> and kpqj = #{kpqj}</if>
            <if test="kpyf != null  and kpyf != '' "> and kpyf = #{kpyf}</if>
            <if test="lxwjyts != null "> and lxwjyts = #{lxwjyts}</if>
            <if test="zddzje != null "> and zddzje = #{zddzje}</if>
            <if test="zjkpsj != null  and zjkpsj != '' "> and zjkpsj = #{zjkpsj}</if>
            <if test="ppkpje != null "> and ppkpje = #{ppkpje}</if>
            <if test="ppwsje != null "> and ppwsje = #{ppwsje}</if>
            <if test="ppkpsl != null "> and ppkpsl = #{ppkpsl}</if>
            <if test="zpkpje != null "> and zpkpje = #{zpkpje}</if>
            <if test="zpwsje != null "> and zpwsje = #{zpwsje}</if>
            <if test="zpkpsl != null "> and zpkpsl = #{zpkpsl}</if>
            <if test="yxhpwsje != null "> and yxhpwsje = #{yxhpwsje}</if>
            <if test="createTime != null "> and create_time = #{createTime}</if>
            <if test="updateTime != null "> and update_time = #{updateTime}</if>
        </where>
    </select>
    
    <select id="selectApiZhKphzxxListById" parameterType="Integer" resultMap="ApiZhKphzxxListResult">
        <include refid="selectApiZhKphzxxListVo"/>
        where id = #{id}
    </select>
        
    <insert id="insertApiZhKphzxxList" parameterType="ApiZhKphzxxList" useGeneratedKeys="true" keyProperty="id">
        insert into api_zh_kphzxx_list
		<trim prefix="(" suffix=")" suffixOverrides=",">
			<if test="authCode != null  and authCode != ''  ">auth_code,</if>
			<if test="djxh != null  and djxh != ''  ">djxh,</if>
			<if test="nsrsbh != null  and nsrsbh != ''  ">nsrsbh,</if>
			<if test="dlhyDm != null  and dlhyDm != ''  ">dlhyDm,</if>
			<if test="dlhymc != null  and dlhymc != ''  ">dlhymc,</if>
			<if test="dykptsLp != null  ">dykptsLp,</if>
			<if test="dykptsQb != null  ">dykptsQb,</if>
			<if test="lpje != null  ">lpje,</if>
			<if test="lpwsje != null  ">lpwsje,</if>
			<if test="lpse != null  ">lpse,</if>
			<if test="lpsl != null  ">lpsl,</if>
			<if test="fpje != null  ">fpje,</if>
			<if test="fpsl != null  ">fpsl,</if>
			<if test="fpwsje != null  ">fpwsje,</if>
			<if test="fpse != null  ">fpse,</if>
			<if test="hpje != null  ">hpje,</if>
			<if test="hpwsje != null  ">hpwsje,</if>
			<if test="hpse != null  ">hpse,</if>
			<if test="hpsl != null  ">hpsl,</if>
			<if test="yxhpje != null  ">yxhpje,</if>
			<if test="yxhpsl != null  ">yxhpsl,</if>
			<if test="kpje != null  ">kpje,</if>
			<if test="wsje != null  ">wsje,</if>
			<if test="se != null  ">se,</if>
			<if test="yxwsje != null  ">yxwsje,</if>
			<if test="kpsl != null  ">kpsl,</if>
			<if test="kpqj != null  and kpqj != ''  ">kpqj,</if>
			<if test="kpyf != null  and kpyf != ''  ">kpyf,</if>
			<if test="lxwjyts != null  ">lxwjyts,</if>
			<if test="zddzje != null  ">zddzje,</if>
			<if test="zjkpsj != null  and zjkpsj != ''  ">zjkpsj,</if>
			<if test="ppkpje != null  ">ppkpje,</if>
			<if test="ppwsje != null  ">ppwsje,</if>
			<if test="ppkpsl != null  ">ppkpsl,</if>
			<if test="zpkpje != null  ">zpkpje,</if>
			<if test="zpwsje != null  ">zpwsje,</if>
			<if test="zpkpsl != null  ">zpkpsl,</if>
			<if test="yxhpwsje != null  ">yxhpwsje,</if>
			<if test="createTime != null  ">create_time,</if>
			<if test="updateTime != null  ">update_time,</if>
         </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
			<if test="authCode != null  and authCode != ''  ">#{authCode},</if>
			<if test="djxh != null  and djxh != ''  ">#{djxh},</if>
			<if test="nsrsbh != null  and nsrsbh != ''  ">#{nsrsbh},</if>
			<if test="dlhyDm != null  and dlhyDm != ''  ">#{dlhyDm},</if>
			<if test="dlhymc != null  and dlhymc != ''  ">#{dlhymc},</if>
			<if test="dykptsLp != null  ">#{dykptsLp},</if>
			<if test="dykptsQb != null  ">#{dykptsQb},</if>
			<if test="lpje != null  ">#{lpje},</if>
			<if test="lpwsje != null  ">#{lpwsje},</if>
			<if test="lpse != null  ">#{lpse},</if>
			<if test="lpsl != null  ">#{lpsl},</if>
			<if test="fpje != null  ">#{fpje},</if>
			<if test="fpsl != null  ">#{fpsl},</if>
			<if test="fpwsje != null  ">#{fpwsje},</if>
			<if test="fpse != null  ">#{fpse},</if>
			<if test="hpje != null  ">#{hpje},</if>
			<if test="hpwsje != null  ">#{hpwsje},</if>
			<if test="hpse != null  ">#{hpse},</if>
			<if test="hpsl != null  ">#{hpsl},</if>
			<if test="yxhpje != null  ">#{yxhpje},</if>
			<if test="yxhpsl != null  ">#{yxhpsl},</if>
			<if test="kpje != null  ">#{kpje},</if>
			<if test="wsje != null  ">#{wsje},</if>
			<if test="se != null  ">#{se},</if>
			<if test="yxwsje != null  ">#{yxwsje},</if>
			<if test="kpsl != null  ">#{kpsl},</if>
			<if test="kpqj != null  and kpqj != ''  ">#{kpqj},</if>
			<if test="kpyf != null  and kpyf != ''  ">#{kpyf},</if>
			<if test="lxwjyts != null  ">#{lxwjyts},</if>
			<if test="zddzje != null  ">#{zddzje},</if>
			<if test="zjkpsj != null  and zjkpsj != ''  ">#{zjkpsj},</if>
			<if test="ppkpje != null  ">#{ppkpje},</if>
			<if test="ppwsje != null  ">#{ppwsje},</if>
			<if test="ppkpsl != null  ">#{ppkpsl},</if>
			<if test="zpkpje != null  ">#{zpkpje},</if>
			<if test="zpwsje != null  ">#{zpwsje},</if>
			<if test="zpkpsl != null  ">#{zpkpsl},</if>
			<if test="yxhpwsje != null  ">#{yxhpwsje},</if>
			<if test="createTime != null  ">#{createTime},</if>
			<if test="updateTime != null  ">#{updateTime},</if>
         </trim>
    </insert>
	 
    <update id="updateApiZhKphzxxList" parameterType="ApiZhKphzxxList">
        update api_zh_kphzxx_list
        <trim prefix="SET" suffixOverrides=",">
            <if test="authCode != null  and authCode != ''  ">auth_code = #{authCode},</if>
            <if test="djxh != null  and djxh != ''  ">djxh = #{djxh},</if>
            <if test="nsrsbh != null  and nsrsbh != ''  ">nsrsbh = #{nsrsbh},</if>
            <if test="dlhyDm != null  and dlhyDm != ''  ">dlhyDm = #{dlhyDm},</if>
            <if test="dlhymc != null  and dlhymc != ''  ">dlhymc = #{dlhymc},</if>
            <if test="dykptsLp != null  ">dykptsLp = #{dykptsLp},</if>
            <if test="dykptsQb != null  ">dykptsQb = #{dykptsQb},</if>
            <if test="lpje != null  ">lpje = #{lpje},</if>
            <if test="lpwsje != null  ">lpwsje = #{lpwsje},</if>
            <if test="lpse != null  ">lpse = #{lpse},</if>
            <if test="lpsl != null  ">lpsl = #{lpsl},</if>
            <if test="fpje != null  ">fpje = #{fpje},</if>
            <if test="fpsl != null  ">fpsl = #{fpsl},</if>
            <if test="fpwsje != null  ">fpwsje = #{fpwsje},</if>
            <if test="fpse != null  ">fpse = #{fpse},</if>
            <if test="hpje != null  ">hpje = #{hpje},</if>
            <if test="hpwsje != null  ">hpwsje = #{hpwsje},</if>
            <if test="hpse != null  ">hpse = #{hpse},</if>
            <if test="hpsl != null  ">hpsl = #{hpsl},</if>
            <if test="yxhpje != null  ">yxhpje = #{yxhpje},</if>
            <if test="yxhpsl != null  ">yxhpsl = #{yxhpsl},</if>
            <if test="kpje != null  ">kpje = #{kpje},</if>
            <if test="wsje != null  ">wsje = #{wsje},</if>
            <if test="se != null  ">se = #{se},</if>
            <if test="yxwsje != null  ">yxwsje = #{yxwsje},</if>
            <if test="kpsl != null  ">kpsl = #{kpsl},</if>
            <if test="kpqj != null  and kpqj != ''  ">kpqj = #{kpqj},</if>
            <if test="kpyf != null  and kpyf != ''  ">kpyf = #{kpyf},</if>
            <if test="lxwjyts != null  ">lxwjyts = #{lxwjyts},</if>
            <if test="zddzje != null  ">zddzje = #{zddzje},</if>
            <if test="zjkpsj != null  and zjkpsj != ''  ">zjkpsj = #{zjkpsj},</if>
            <if test="ppkpje != null  ">ppkpje = #{ppkpje},</if>
            <if test="ppwsje != null  ">ppwsje = #{ppwsje},</if>
            <if test="ppkpsl != null  ">ppkpsl = #{ppkpsl},</if>
            <if test="zpkpje != null  ">zpkpje = #{zpkpje},</if>
            <if test="zpwsje != null  ">zpwsje = #{zpwsje},</if>
            <if test="zpkpsl != null  ">zpkpsl = #{zpkpsl},</if>
            <if test="yxhpwsje != null  ">yxhpwsje = #{yxhpwsje},</if>
            <if test="createTime != null  ">create_time = #{createTime},</if>
            <if test="updateTime != null  ">update_time = #{updateTime},</if>
        </trim>
        where id = #{id}
    </update>

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