JxglAdminKpzszMapper.xml 12.2 KB
Newer Older
yuquan.zhu committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308
<?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>