XcglAssoGztszMapper.xml 7.72 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
<?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>

163
    <!-- <delete id="delete" >
yuquan.zhu committed
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
        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
205
    </select> -->
yuquan.zhu committed
206 207 208


</mapper>