YgglAttaClfjbMapper.xml 9.81 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
<?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>