OperationLogEnterPriseMapper.xml 14.4 KB
Newer Older
1 2 3
<?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="pwc.taxtech.atms.dao.OperationLogEnterPriseMapper">
4
  <resultMap id="BaseResultMap" type="pwc.taxtech.atms.entity.OperationLogEnterPrise">
5 6 7 8
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
gary's avatar
gary committed
9 10 11 12 13 14 15 16 17 18 19
    <id column="id" jdbcType="VARCHAR" property="id" />
    <result column="operation_content" jdbcType="VARCHAR" property="operationContent" />
    <result column="module_name" jdbcType="VARCHAR" property="moduleName" />
    <result column="operation_object" jdbcType="VARCHAR" property="operationObject" />
    <result column="operation_action" jdbcType="VARCHAR" property="operationAction" />
    <result column="original_state" jdbcType="VARCHAR" property="originalState" />
    <result column="update_state" jdbcType="VARCHAR" property="updateState" />
    <result column="operation_user" jdbcType="VARCHAR" property="operationUser" />
    <result column="ip" jdbcType="VARCHAR" property="ip" />
    <result column="comment" jdbcType="VARCHAR" property="comment" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
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
  </resultMap>
  <sql id="Example_Where_Clause">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <where>
      <foreach collection="oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
48
            </foreach>
49
          </trim>
50
        </if>
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
      </foreach>
    </where>
  </sql>
  <sql id="Update_By_Example_Where_Clause">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <where>
      <foreach collection="example.oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
83
        </if>
84 85 86 87 88 89 90 91
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
gary's avatar
gary committed
92 93
    id, operation_content, module_name, operation_object, operation_action, original_state, 
    update_state, operation_user, ip, comment, create_time
94
  </sql>
95
  <select id="selectByExample" parameterType="pwc.taxtech.atms.entity.OperationLogEnterPriseExample" resultMap="BaseResultMap">
96 97 98 99 100 101 102 103 104
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
gary's avatar
gary committed
105
    from operation_log_enter_prise
106 107 108 109 110 111 112 113 114 115 116 117 118 119
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select 
    <include refid="Base_Column_List" />
gary's avatar
gary committed
120 121
    from operation_log_enter_prise
    where id = #{id,jdbcType=VARCHAR}
122 123 124 125 126 127
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
gary's avatar
gary committed
128 129
    delete from operation_log_enter_prise
    where id = #{id,jdbcType=VARCHAR}
130
  </delete>
131
  <delete id="deleteByExample" parameterType="pwc.taxtech.atms.entity.OperationLogEnterPriseExample">
132 133 134 135
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
gary's avatar
gary committed
136
    delete from operation_log_enter_prise
137 138 139 140
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
141
  <insert id="insert" parameterType="pwc.taxtech.atms.entity.OperationLogEnterPrise">
142 143 144 145
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
gary's avatar
gary committed
146 147 148 149 150
    insert into operation_log_enter_prise (id, operation_content, module_name, 
      operation_object, operation_action, original_state, 
      update_state, operation_user, ip, 
      comment, create_time)
    values (#{id,jdbcType=VARCHAR}, #{operationContent,jdbcType=VARCHAR}, #{moduleName,jdbcType=VARCHAR}, 
151
      #{operationObject,jdbcType=VARCHAR}, #{operationAction,jdbcType=VARCHAR}, #{originalState,jdbcType=VARCHAR}, 
gary's avatar
gary committed
152
      #{updateState,jdbcType=VARCHAR}, #{operationUser,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR}, 
153 154
      #{comment,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP})
  </insert>
155
  <insert id="insertSelective" parameterType="pwc.taxtech.atms.entity.OperationLogEnterPrise">
156 157 158 159
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
gary's avatar
gary committed
160
    insert into operation_log_enter_prise
161
    <trim prefix="(" suffix=")" suffixOverrides=",">
gary's avatar
gary committed
162 163
      <if test="id != null">
        id,
164 165
      </if>
      <if test="operationContent != null">
gary's avatar
gary committed
166
        operation_content,
167 168
      </if>
      <if test="moduleName != null">
gary's avatar
gary committed
169
        module_name,
170 171
      </if>
      <if test="operationObject != null">
gary's avatar
gary committed
172
        operation_object,
173 174
      </if>
      <if test="operationAction != null">
gary's avatar
gary committed
175
        operation_action,
176 177
      </if>
      <if test="originalState != null">
gary's avatar
gary committed
178
        original_state,
179 180
      </if>
      <if test="updateState != null">
gary's avatar
gary committed
181
        update_state,
182 183
      </if>
      <if test="operationUser != null">
gary's avatar
gary committed
184
        operation_user,
185
      </if>
gary's avatar
gary committed
186 187
      <if test="ip != null">
        ip,
188 189
      </if>
      <if test="comment != null">
gary's avatar
gary committed
190
        comment,
191 192
      </if>
      <if test="createTime != null">
gary's avatar
gary committed
193
        create_time,
194 195 196
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
gary's avatar
gary committed
197 198
      <if test="id != null">
        #{id,jdbcType=VARCHAR},
199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220
      </if>
      <if test="operationContent != null">
        #{operationContent,jdbcType=VARCHAR},
      </if>
      <if test="moduleName != null">
        #{moduleName,jdbcType=VARCHAR},
      </if>
      <if test="operationObject != null">
        #{operationObject,jdbcType=VARCHAR},
      </if>
      <if test="operationAction != null">
        #{operationAction,jdbcType=VARCHAR},
      </if>
      <if test="originalState != null">
        #{originalState,jdbcType=VARCHAR},
      </if>
      <if test="updateState != null">
        #{updateState,jdbcType=VARCHAR},
      </if>
      <if test="operationUser != null">
        #{operationUser,jdbcType=VARCHAR},
      </if>
gary's avatar
gary committed
221 222
      <if test="ip != null">
        #{ip,jdbcType=VARCHAR},
223 224 225 226 227 228 229 230 231
      </if>
      <if test="comment != null">
        #{comment,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
232
  <select id="countByExample" parameterType="pwc.taxtech.atms.entity.OperationLogEnterPriseExample" resultType="java.lang.Long">
233 234 235 236
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
gary's avatar
gary committed
237
    select count(*) from operation_log_enter_prise
238 239 240 241 242 243 244 245 246
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
gary's avatar
gary committed
247
    update operation_log_enter_prise
248
    <set>
gary's avatar
gary committed
249 250
      <if test="record.id != null">
        id = #{record.id,jdbcType=VARCHAR},
251 252
      </if>
      <if test="record.operationContent != null">
gary's avatar
gary committed
253
        operation_content = #{record.operationContent,jdbcType=VARCHAR},
254 255
      </if>
      <if test="record.moduleName != null">
gary's avatar
gary committed
256
        module_name = #{record.moduleName,jdbcType=VARCHAR},
257 258
      </if>
      <if test="record.operationObject != null">
gary's avatar
gary committed
259
        operation_object = #{record.operationObject,jdbcType=VARCHAR},
260 261
      </if>
      <if test="record.operationAction != null">
gary's avatar
gary committed
262
        operation_action = #{record.operationAction,jdbcType=VARCHAR},
263 264
      </if>
      <if test="record.originalState != null">
gary's avatar
gary committed
265
        original_state = #{record.originalState,jdbcType=VARCHAR},
266 267
      </if>
      <if test="record.updateState != null">
gary's avatar
gary committed
268
        update_state = #{record.updateState,jdbcType=VARCHAR},
269 270
      </if>
      <if test="record.operationUser != null">
gary's avatar
gary committed
271
        operation_user = #{record.operationUser,jdbcType=VARCHAR},
272
      </if>
gary's avatar
gary committed
273 274
      <if test="record.ip != null">
        ip = #{record.ip,jdbcType=VARCHAR},
275 276
      </if>
      <if test="record.comment != null">
gary's avatar
gary committed
277
        comment = #{record.comment,jdbcType=VARCHAR},
278 279
      </if>
      <if test="record.createTime != null">
gary's avatar
gary committed
280
        create_time = #{record.createTime,jdbcType=TIMESTAMP},
281 282 283 284 285 286 287 288 289 290 291
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
gary's avatar
gary committed
292 293 294 295 296 297 298 299 300 301 302 303
    update operation_log_enter_prise
    set id = #{record.id,jdbcType=VARCHAR},
      operation_content = #{record.operationContent,jdbcType=VARCHAR},
      module_name = #{record.moduleName,jdbcType=VARCHAR},
      operation_object = #{record.operationObject,jdbcType=VARCHAR},
      operation_action = #{record.operationAction,jdbcType=VARCHAR},
      original_state = #{record.originalState,jdbcType=VARCHAR},
      update_state = #{record.updateState,jdbcType=VARCHAR},
      operation_user = #{record.operationUser,jdbcType=VARCHAR},
      ip = #{record.ip,jdbcType=VARCHAR},
      comment = #{record.comment,jdbcType=VARCHAR},
      create_time = #{record.createTime,jdbcType=TIMESTAMP}
304 305 306 307
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
308
  <update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.entity.OperationLogEnterPrise">
309 310 311 312
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
gary's avatar
gary committed
313
    update operation_log_enter_prise
314 315
    <set>
      <if test="operationContent != null">
gary's avatar
gary committed
316
        operation_content = #{operationContent,jdbcType=VARCHAR},
317 318
      </if>
      <if test="moduleName != null">
gary's avatar
gary committed
319
        module_name = #{moduleName,jdbcType=VARCHAR},
320 321
      </if>
      <if test="operationObject != null">
gary's avatar
gary committed
322
        operation_object = #{operationObject,jdbcType=VARCHAR},
323 324
      </if>
      <if test="operationAction != null">
gary's avatar
gary committed
325
        operation_action = #{operationAction,jdbcType=VARCHAR},
326 327
      </if>
      <if test="originalState != null">
gary's avatar
gary committed
328
        original_state = #{originalState,jdbcType=VARCHAR},
329 330
      </if>
      <if test="updateState != null">
gary's avatar
gary committed
331
        update_state = #{updateState,jdbcType=VARCHAR},
332 333
      </if>
      <if test="operationUser != null">
gary's avatar
gary committed
334
        operation_user = #{operationUser,jdbcType=VARCHAR},
335
      </if>
gary's avatar
gary committed
336 337
      <if test="ip != null">
        ip = #{ip,jdbcType=VARCHAR},
338 339
      </if>
      <if test="comment != null">
gary's avatar
gary committed
340
        comment = #{comment,jdbcType=VARCHAR},
341 342
      </if>
      <if test="createTime != null">
gary's avatar
gary committed
343
        create_time = #{createTime,jdbcType=TIMESTAMP},
344 345
      </if>
    </set>
gary's avatar
gary committed
346
    where id = #{id,jdbcType=VARCHAR}
347
  </update>
348
  <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.entity.OperationLogEnterPrise">
349 350 351 352
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
gary's avatar
gary committed
353 354 355 356 357 358 359 360 361 362 363 364
    update operation_log_enter_prise
    set operation_content = #{operationContent,jdbcType=VARCHAR},
      module_name = #{moduleName,jdbcType=VARCHAR},
      operation_object = #{operationObject,jdbcType=VARCHAR},
      operation_action = #{operationAction,jdbcType=VARCHAR},
      original_state = #{originalState,jdbcType=VARCHAR},
      update_state = #{updateState,jdbcType=VARCHAR},
      operation_user = #{operationUser,jdbcType=VARCHAR},
      ip = #{ip,jdbcType=VARCHAR},
      comment = #{comment,jdbcType=VARCHAR},
      create_time = #{createTime,jdbcType=TIMESTAMP}
    where id = #{id,jdbcType=VARCHAR}
365
  </update>
366
  <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.entity.OperationLogEnterPriseExample" resultMap="BaseResultMap">
367 368 369 370 371 372 373 374 375
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
gary's avatar
gary committed
376
    from operation_log_enter_prise
377 378 379 380 381 382 383
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
384
</mapper>