<?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="cn.timer.api.dao.jxgl.JxglAdminKpzszMapper">

    <resultMap id="BaseResultMap" type="cn.timer.api.bean.jxgl.JxglAdminKpzsz" >
                <id column="id" property="id" />
                <result column="kpzmc" property="kpzmc" />
                <result column="zqtype" property="zqtype" />
                <result column="pfsmbt" property="pfsmbt" />
                <result column="zbpfjs" property="zbpfjs" />
                <result column="lcsjtype" property="lcsjtype" />
                <result column="mbzdrtype" property="mbzdrtype" />
                <result column="mbzdrid" property="mbzdrid" />
                <result column="mbqrr" property="mbqrr" />
                <result column="mbqrzdr" property="mbqrzdr" />
                <result column="zppz" property="zppz" />
                <result column="zpweight" property="zpweight" />
                <result column="hppz" property="hppz" />
                <result column="hpweight" property="hpweight" />
                <result column="hpnmkg" property="hpnmkg" />
                <result column="hpdrclfs" property="hpdrclfs" />
                <result column="pfrqc" property="pfrqc" />
                <result column="pfrsdpj" property="pfrsdpj" />
                <result column="sjpfpz" property="sjpfpz" />
                <result column="sjweight" property="sjweight" />
                <result column="spdrclfs" property="spdrclfs" />
                <result column="dpf" property="dpf" />
                <result column="yxzj" property="yxzj" />
                <result column="pfgz" property="pfgz" />
                <result column="cyrs" property="cyrs" />
                <result column="qyid" property="qyid" />
    </resultMap>

    <sql id="Base_Column_List">
                id,
                kpzmc,
                zqtype,
                pfsmbt,
                zbpfjs,
                lcsjtype,
                mbzdrtype,
                mbzdrid,
                mbqrr,
                mbqrzdr,
                zppz,
                zpweight,
                hppz,
                hpweight,
                hpnmkg,
                hpdrclfs,
                pfrqc,
                pfrsdpj,
                sjpfpz,
                sjweight,
                spdrclfs,
                dpf,
                yxzj,
                pfgz,
                cyrs,
                qyid
    </sql>
    
    <sql id="Base_Column_List_Alias">
                id JxglAdminKpzsz_id,
                kpzmc JxglAdminKpzsz_kpzmc,
                zqtype JxglAdminKpzsz_zqtype,
                pfsmbt JxglAdminKpzsz_pfsmbt,
                zbpfjs JxglAdminKpzsz_zbpfjs,
                lcsjtype JxglAdminKpzsz_lcsjtype,
                mbzdrtype JxglAdminKpzsz_mbzdrtype,
                mbzdrid JxglAdminKpzsz_mbzdrid,
                mbqrr JxglAdminKpzsz_mbqrr,
                mbqrzdr JxglAdminKpzsz_mbqrzdr,
                zppz JxglAdminKpzsz_zppz,
                zpweight JxglAdminKpzsz_zpweight,
                hppz JxglAdminKpzsz_hppz,
                hpweight JxglAdminKpzsz_hpweight,
                hpnmkg JxglAdminKpzsz_hpnmkg,
                hpdrclfs JxglAdminKpzsz_hpdrclfs,
                pfrqc JxglAdminKpzsz_pfrqc,
                pfrsdpj JxglAdminKpzsz_pfrsdpj,
                sjpfpz JxglAdminKpzsz_sjpfpz,
                sjweight JxglAdminKpzsz_sjweight,
                spdrclfs JxglAdminKpzsz_spdrclfs,
                dpf JxglAdminKpzsz_dpf,
                yxzj JxglAdminKpzsz_yxzj,
                pfgz JxglAdminKpzsz_pfgz,
                cyrs JxglAdminKpzsz_cyrs,
                qyid JxglAdminKpzsz_qyid
    </sql>


    <insert id="insertjxgladminkpzsz" parameterType="cn.timer.api.bean.jxgl.JxglAdminKpzsz" useGeneratedKeys="true" keyProperty="id">
        INSERT INTO jxgl_admin_kpzsz
        <trim prefix="(" suffix=")" suffixOverrides=",">
                        <if test ='null != kpzmc'>
                        kpzmc,
                        </if>
                        <if test ='null != zqtype'>
                        zqtype,
                        </if>
                        <if test ='null != pfsmbt'>
                        pfsmbt,
                        </if>
                        <if test ='null != zbpfjs'>
                        zbpfjs,
                        </if>
                        <if test ='null != lcsjtype'>
                        lcsjtype,
                        </if>
                        <if test ='null != mbzdrtype'>
                        mbzdrtype,
                        </if>
                        <if test ='null != mbzdrid'>
                        mbzdrid,
                        </if>
                        <if test ='null != mbqrr'>
                        mbqrr,
                        </if>
                        <if test ='null != mbqrzdr'>
                        mbqrzdr,
                        </if>
                        <if test ='null != zppz'>
                        zppz,
                        </if>
                        <if test ='null != zpweight'>
                        zpweight,
                        </if>
                        <if test ='null != hppz'>
                        hppz,
                        </if>
                        <if test ='null != hpweight'>
                        hpweight,
                        </if>
                        <if test ='null != hpnmkg'>
                        hpnmkg,
                        </if>
                        <if test ='null != hpdrclfs'>
                        hpdrclfs,
                        </if>
                        <if test ='null != pfrqc'>
                        pfrqc,
                        </if>
                        <if test ='null != pfrsdpj'>
                        pfrsdpj,
                        </if>
                        <if test ='null != sjpfpz'>
                        sjpfpz,
                        </if>
                        <if test ='null != sjweight'>
                        sjweight,
                        </if>
                        <if test ='null != spdrclfs'>
                        spdrclfs,
                        </if>
                        <if test ='null != dpf'>
                        dpf,
                        </if>
                        <if test ='null != yxzj'>
                        yxzj,
                        </if>
                        <if test ='null != pfgz'>
                        pfgz,
                        </if>
                        <if test ='null != cyrs'>
                        cyrs,
                        </if>
                        <if test ='null != qyid'>
                        qyid
                        </if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
                        <if test ='null != kpzmc'>
                        #{kpzmc},
                        </if>
                        <if test ='null != zqtype'>
                        #{zqtype},
                        </if>
                        <if test ='null != pfsmbt'>
                        #{pfsmbt},
                        </if>
                        <if test ='null != zbpfjs'>
                        #{zbpfjs},
                        </if>
                        <if test ='null != lcsjtype'>
                        #{lcsjtype},
                        </if>
                        <if test ='null != mbzdrtype'>
                        #{mbzdrtype},
                        </if>
                        <if test ='null != mbzdrid'>
                        #{mbzdrid},
                        </if>
                        <if test ='null != mbqrr'>
                        #{mbqrr},
                        </if>
                        <if test ='null != mbqrzdr'>
                        #{mbqrzdr},
                        </if>
                        <if test ='null != zppz'>
                        #{zppz},
                        </if>
                        <if test ='null != zpweight'>
                        #{zpweight},
                        </if>
                        <if test ='null != hppz'>
                        #{hppz},
                        </if>
                        <if test ='null != hpweight'>
                        #{hpweight},
                        </if>
                        <if test ='null != hpnmkg'>
                        #{hpnmkg},
                        </if>
                        <if test ='null != hpdrclfs'>
                        #{hpdrclfs},
                        </if>
                        <if test ='null != pfrqc'>
                        #{pfrqc},
                        </if>
                        <if test ='null != pfrsdpj'>
                        #{pfrsdpj},
                        </if>
                        <if test ='null != sjpfpz'>
                        #{sjpfpz},
                        </if>
                        <if test ='null != sjweight'>
                        #{sjweight},
                        </if>
                        <if test ='null != spdrclfs'>
                        #{spdrclfs},
                        </if>
                        <if test ='null != dpf'>
                        #{dpf},
                        </if>
                        <if test ='null != yxzj'>
                        #{yxzj},
                        </if>
                        <if test ='null != pfgz'>
                        #{pfgz},
                        </if>
                        <if test ='null != cyrs'>
                        #{cyrs},
                        </if>
                        <if test ='null != qyid'>
                        #{qyid}
                        </if>
        </trim>
    </insert>

    <!-- <delete id="delete" >
        DELETE FROM jxgl_admin_kpzsz
        WHERE id = #{id}
    </delete>

    <update id="update" parameterType="cn.timer.api.bean.jxgl.JxglAdminKpzsz">
        UPDATE jxgl_admin_kpzsz
        <set>
                    <if test ='null != kpzmc'>kpzmc = #{kpzmc},</if>
                    <if test ='null != zqtype'>zqtype = #{zqtype},</if>
                    <if test ='null != pfsmbt'>pfsmbt = #{pfsmbt},</if>
                    <if test ='null != zbpfjs'>zbpfjs = #{zbpfjs},</if>
                    <if test ='null != lcsjtype'>lcsjtype = #{lcsjtype},</if>
                    <if test ='null != mbzdrtype'>mbzdrtype = #{mbzdrtype},</if>
                    <if test ='null != mbzdrid'>mbzdrid = #{mbzdrid},</if>
                    <if test ='null != mbqrr'>mbqrr = #{mbqrr},</if>
                    <if test ='null != mbqrzdr'>mbqrzdr = #{mbqrzdr},</if>
                    <if test ='null != zppz'>zppz = #{zppz},</if>
                    <if test ='null != zpweight'>zpweight = #{zpweight},</if>
                    <if test ='null != hppz'>hppz = #{hppz},</if>
                    <if test ='null != hpweight'>hpweight = #{hpweight},</if>
                    <if test ='null != hpnmkg'>hpnmkg = #{hpnmkg},</if>
                    <if test ='null != hpdrclfs'>hpdrclfs = #{hpdrclfs},</if>
                    <if test ='null != pfrqc'>pfrqc = #{pfrqc},</if>
                    <if test ='null != pfrsdpj'>pfrsdpj = #{pfrsdpj},</if>
                    <if test ='null != sjpfpz'>sjpfpz = #{sjpfpz},</if>
                    <if test ='null != sjweight'>sjweight = #{sjweight},</if>
                    <if test ='null != spdrclfs'>spdrclfs = #{spdrclfs},</if>
                    <if test ='null != dpf'>dpf = #{dpf},</if>
                    <if test ='null != yxzj'>yxzj = #{yxzj},</if>
                    <if test ='null != pfgz'>pfgz = #{pfgz},</if>
                    <if test ='null != cyrs'>cyrs = #{cyrs},</if>
                    <if test ='null != qyid'>qyid = #{qyid}</if>
        </set>
        WHERE id = #{id}
    </update>


    <select id="load" resultMap="BaseResultMap">
        SELECT <include refid="Base_Column_List" />
        FROM jxgl_admin_kpzsz
        WHERE id = #{id}
    </select>

    <select id="pageList" resultMap="BaseResultMap">
        SELECT <include refid="Base_Column_List" />
        FROM jxgl_admin_kpzsz
        LIMIT #{offset}, #{pageSize}
    </select>

    <select id="pageListCount" resultType="java.lang.Integer">
        SELECT count(1)
        FROM jxgl_admin_kpzsz
    </select> -->


</mapper>