<?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.yggl.YgglAttaClfjbMapper"> <resultMap id="BaseResultMap" type="cn.timer.api.bean.yggl.YgglAttaClfjb" > <id column="id" property="id" /> <id column="id" property="id" /> <result column="emp_num" property="empNum" /> <result column="url_ldht" property="urlLdht" /> <result column="url_rzjl" property="urlRzjl" /> <result column="url_rzdjb" property="urlRzdjb" /> <result column="url_rztyd" property="urlRztyd" /> <result column="url_sjlzzm" property="urlSjlzzm" /> <result column="url_gzsqb" property="urlGzsqb" /> <result column="url_dxtzd" property="urlDxtzd" /> <result column="url_zzsqb" property="urlZzsqb" /> <result column="url_shbxzyd" property="urlShbxzyd" /> <result column="url_rsydsqb" property="urlRsydsqb" /> <result column="url_da_other" property="urlDaOther" /> <result column="url_lzsp" property="urlLzsp" /> <result column="url_lzzm" property="urlLzzm" /> <result column="url_lzsqb" property="urlLzsqb" /> <result column="url_gzjjb" property="urlGzjjb" /> <result column="url_lz_other" property="urlLzOther" /> <result column="org_code" property="orgCode" /> </resultMap> <sql id="Base_Column_List"> id, emp_num, url_ldht, url_rzjl, url_rzdjb, url_rztyd, url_sjlzzm, url_gzsqb, url_dxtzd, url_zzsqb, url_shbxzyd, url_rsydsqb, url_da_other, url_lzsp, url_lzzm, url_lzsqb, url_gzjjb, url_lz_other, org_code </sql> <sql id="Base_Column_List_Alias"> id YgglAttaClfjb_id, emp_num YgglAttaClfjb_emp_num, url_ldht YgglAttaClfjb_url_ldht, url_rzjl YgglAttaClfjb_url_rzjl, url_rzdjb YgglAttaClfjb_url_rzdjb, url_rztyd YgglAttaClfjb_url_rztyd, url_sjlzzm YgglAttaClfjb_url_sjlzzm, url_gzsqb YgglAttaClfjb_url_gzsqb, url_dxtzd YgglAttaClfjb_url_dxtzd, url_zzsqb YgglAttaClfjb_url_zzsqb, url_shbxzyd YgglAttaClfjb_url_shbxzyd, url_rsydsqb YgglAttaClfjb_url_rsydsqb, url_da_other YgglAttaClfjb_url_da_other, url_lzsp YgglAttaClfjb_url_lzsp, url_lzzm YgglAttaClfjb_url_lzzm, url_lzsqb YgglAttaClfjb_url_lzsqb, url_gzjjb YgglAttaClfjb_url_gzjjb, url_lz_other YgglAttaClfjb_url_lz_other, org_code YgglAttaClfjb_org_code </sql> <!-- <insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.yggl.YgglAttaClfjb"> INSERT INTO yggl_atta_clfjb <trim prefix="(" suffix=")" suffixOverrides=","> <if test ='null != empNum'> emp_num, </if> <if test ='null != urlLdht'> url_ldht, </if> <if test ='null != urlRzjl'> url_rzjl, </if> <if test ='null != urlRzdjb'> url_rzdjb, </if> <if test ='null != urlRztyd'> url_rztyd, </if> <if test ='null != urlSjlzzm'> url_sjlzzm, </if> <if test ='null != urlGzsqb'> url_gzsqb, </if> <if test ='null != urlDxtzd'> url_dxtzd, </if> <if test ='null != urlZzsqb'> url_zzsqb, </if> <if test ='null != urlShbxzyd'> url_shbxzyd, </if> <if test ='null != urlRsydsqb'> url_rsydsqb, </if> <if test ='null != urlDaOther'> url_da_other, </if> <if test ='null != urlLzsp'> url_lzsp, </if> <if test ='null != urlLzzm'> url_lzzm, </if> <if test ='null != urlLzsqb'> url_lzsqb, </if> <if test ='null != urlGzjjb'> url_gzjjb, </if> <if test ='null != urlLzOther'> url_lz_other, </if> <if test ='null != orgCode'> org_code </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test ='null != empNum'> #{empNum}, </if> <if test ='null != urlLdht'> #{urlLdht}, </if> <if test ='null != urlRzjl'> #{urlRzjl}, </if> <if test ='null != urlRzdjb'> #{urlRzdjb}, </if> <if test ='null != urlRztyd'> #{urlRztyd}, </if> <if test ='null != urlSjlzzm'> #{urlSjlzzm}, </if> <if test ='null != urlGzsqb'> #{urlGzsqb}, </if> <if test ='null != urlDxtzd'> #{urlDxtzd}, </if> <if test ='null != urlZzsqb'> #{urlZzsqb}, </if> <if test ='null != urlShbxzyd'> #{urlShbxzyd}, </if> <if test ='null != urlRsydsqb'> #{urlRsydsqb}, </if> <if test ='null != urlDaOther'> #{urlDaOther}, </if> <if test ='null != urlLzsp'> #{urlLzsp}, </if> <if test ='null != urlLzzm'> #{urlLzzm}, </if> <if test ='null != urlLzsqb'> #{urlLzsqb}, </if> <if test ='null != urlGzjjb'> #{urlGzjjb}, </if> <if test ='null != urlLzOther'> #{urlLzOther}, </if> <if test ='null != orgCode'> #{orgCode} </if> </trim> </insert> <delete id="delete" > DELETE FROM yggl_atta_clfjb WHERE id = #{id} </delete> <update id="update" parameterType="cn.timer.api.bean.yggl.YgglAttaClfjb"> UPDATE yggl_atta_clfjb <set> <if test ='null != empNum'>emp_num = #{empNum},</if> <if test ='null != urlLdht'>url_ldht = #{urlLdht},</if> <if test ='null != urlRzjl'>url_rzjl = #{urlRzjl},</if> <if test ='null != urlRzdjb'>url_rzdjb = #{urlRzdjb},</if> <if test ='null != urlRztyd'>url_rztyd = #{urlRztyd},</if> <if test ='null != urlSjlzzm'>url_sjlzzm = #{urlSjlzzm},</if> <if test ='null != urlGzsqb'>url_gzsqb = #{urlGzsqb},</if> <if test ='null != urlDxtzd'>url_dxtzd = #{urlDxtzd},</if> <if test ='null != urlZzsqb'>url_zzsqb = #{urlZzsqb},</if> <if test ='null != urlShbxzyd'>url_shbxzyd = #{urlShbxzyd},</if> <if test ='null != urlRsydsqb'>url_rsydsqb = #{urlRsydsqb},</if> <if test ='null != urlDaOther'>url_da_other = #{urlDaOther},</if> <if test ='null != urlLzsp'>url_lzsp = #{urlLzsp},</if> <if test ='null != urlLzzm'>url_lzzm = #{urlLzzm},</if> <if test ='null != urlLzsqb'>url_lzsqb = #{urlLzsqb},</if> <if test ='null != urlGzjjb'>url_gzjjb = #{urlGzjjb},</if> <if test ='null != urlLzOther'>url_lz_other = #{urlLzOther},</if> <if test ='null != orgCode'>org_code = #{orgCode}</if> </set> WHERE id = #{id} </update> <select id="load" resultMap="BaseResultMap"> SELECT <include refid="Base_Column_List" /> FROM yggl_atta_clfjb WHERE id = #{id} </select> <select id="pageList" resultMap="BaseResultMap"> SELECT <include refid="Base_Column_List" /> FROM yggl_atta_clfjb LIMIT #{offset}, #{pageSize} </select> <select id="pageListCount" resultType="java.lang.Integer"> SELECT count(1) FROM yggl_atta_clfjb </select> --> </mapper>