<?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.xcgl.XcglAssoGztszMapper"> <resultMap id="BaseResultMap" type="cn.timer.api.bean.xcgl.XcglAssoGztsz" > <id column="id" property="id" /> <result column="mbmc" property="mbmc" /> <result column="is_wxts" property="isWxts" /> <result column="wxtslr" property="wxtslr" /> <result column="top" property="top" /> <result column="is_ycksj" property="isYcksj" /> <result column="xsxzx" property="xsxzx" /> <result column="is_yhjf" property="isYhjf" /> <result column="yhjf_time" property="yhjfTime" /> <result column="qmqr" property="qmqr" /> <result column="is_ygfk" property="isYgfk" /> <result column="xzzid" property="xzzid" /> <result column="qyid" property="qyid" /> <result column="gztyf" property="gztyf" /> <result column="yhjfdw" property="yhjfdw" /> </resultMap> <sql id="Base_Column_List"> id, mbmc, is_wxts, wxtslr, top, is_ycksj, xsxzx, is_yhjf, yhjf_time, qmqr, is_ygfk, xzzid, qyid, gztyf, yhjfdw </sql> <sql id="Base_Column_List_Alias"> id XcglAssoGztsz_id, mbmc XcglAssoGztsz_mbmc, is_wxts XcglAssoGztsz_is_wxts, wxtslr XcglAssoGztsz_wxtslr, top XcglAssoGztsz_top, is_ycksj XcglAssoGztsz_is_ycksj, xsxzx XcglAssoGztsz_xsxzx, is_yhjf XcglAssoGztsz_is_yhjf, yhjf_time XcglAssoGztsz_yhjf_time, qmqr XcglAssoGztsz_qmqr, is_ygfk XcglAssoGztsz_is_ygfk, xzzid XcglAssoGztsz_xzzid, qyid XcglAssoGztsz_qyid, gztyf XcglAssoGztsz_gztyf, yhjfdw XcglAssoGztsz_yhjfdw </sql> <delete id="deletexcglassogztsz" > DELETE FROM xcgl_asso_gztsz WHERE gztyf = #{gztyf} and xzzid = #{xzzid} </delete> <delete id="deletexcglassogztszByxzzid" > DELETE FROM xcgl_asso_gztsz WHERE xzzid = #{xzzid} </delete> <insert id="insertxcglassogztsz" parameterType="cn.timer.api.bean.xcgl.XcglAssoGztsz" useGeneratedKeys="true" keyProperty="id"> INSERT INTO xcgl_asso_gztsz <trim prefix="(" suffix=")" suffixOverrides=","> <if test ='null != mbmc'> mbmc, </if> <if test ='null != isWxts'> is_wxts, </if> <if test ='null != wxtslr'> wxtslr, </if> <if test ='null != top'> top, </if> <if test ='null != isYcksj'> is_ycksj, </if> <if test ='null != xsxzx'> xsxzx, </if> <if test ='null != isYhjf'> is_yhjf, </if> <if test ='null != yhjfTime'> yhjf_time, </if> <if test ='null != qmqr'> qmqr, </if> <if test ='null != isYgfk'> is_ygfk, </if> <if test ='null != xzzid'> xzzid, </if> <if test ='null != qyid'> qyid, </if> <if test ='null != gztyf'> gztyf, </if> <if test ='null != yhjfdw'> yhjfdw </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test ='null != mbmc'> #{mbmc}, </if> <if test ='null != isWxts'> #{isWxts}, </if> <if test ='null != wxtslr'> #{wxtslr}, </if> <if test ='null != top'> #{top}, </if> <if test ='null != isYcksj'> #{isYcksj}, </if> <if test ='null != xsxzx'> #{xsxzx}, </if> <if test ='null != isYhjf'> #{isYhjf}, </if> <if test ='null != yhjfTime'> #{yhjfTime}, </if> <if test ='null != qmqr'> #{qmqr}, </if> <if test ='null != isYgfk'> #{isYgfk}, </if> <if test ='null != xzzid'> #{xzzid}, </if> <if test ='null != qyid'> #{qyid}, </if> <if test ='null != gztyf'> #{gztyf}, </if> <if test ='null != yhjfdw'> #{yhjfdw} </if> </trim> </insert> <!-- <delete id="delete" > DELETE FROM xcgl_asso_gztsz WHERE id = #{id} </delete> <update id="update" parameterType="cn.timer.api.bean.xcgl.XcglAssoGztsz"> UPDATE xcgl_asso_gztsz <set> <if test ='null != mbmc'>mbmc = #{mbmc},</if> <if test ='null != isWxts'>is_wxts = #{isWxts},</if> <if test ='null != wxtslr'>wxtslr = #{wxtslr},</if> <if test ='null != top'>top = #{top},</if> <if test ='null != isYcksj'>is_ycksj = #{isYcksj},</if> <if test ='null != xsxzx'>xsxzx = #{xsxzx},</if> <if test ='null != isYhjf'>is_yhjf = #{isYhjf},</if> <if test ='null != yhjfTime'>yhjf_time = #{yhjfTime},</if> <if test ='null != qmqr'>qmqr = #{qmqr},</if> <if test ='null != isYgfk'>is_ygfk = #{isYgfk},</if> <if test ='null != xzzid'>xzzid = #{xzzid},</if> <if test ='null != qyid'>qyid = #{qyid},</if> <if test ='null != gztyf'>gztyf = #{gztyf},</if> <if test ='null != yhjfdw'>yhjfdw = #{yhjfdw}</if> </set> WHERE id = #{id} </update> <select id="load" resultMap="BaseResultMap"> SELECT <include refid="Base_Column_List" /> FROM xcgl_asso_gztsz WHERE id = #{id} </select> <select id="pageList" resultMap="BaseResultMap"> SELECT <include refid="Base_Column_List" /> FROM xcgl_asso_gztsz LIMIT #{offset}, #{pageSize} </select> <select id="pageListCount" resultType="java.lang.Integer"> SELECT count(1) FROM xcgl_asso_gztsz </select> --> </mapper>