OperationLogBasicDataMapper.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.OperationLogBasicDataMapper">
4
  <resultMap id="BaseResultMap" type="pwc.taxtech.atms.entity.OperationLogBasicData">
5 6 7 8
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo 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.
    -->
neo's avatar
neo 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.OperationLogBasicDataExample" 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" />
neo's avatar
neo committed
105
    from OPERATION_LOG_BASIC_DATA
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" />
neo's avatar
neo committed
120 121
    from OPERATION_LOG_BASIC_DATA
    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.
    -->
neo's avatar
neo committed
128 129
    delete from OPERATION_LOG_BASIC_DATA
    where ID = #{id,jdbcType=VARCHAR}
130
  </delete>
131
  <delete id="deleteByExample" parameterType="pwc.taxtech.atms.entity.OperationLogBasicDataExample">
132 133 134 135
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
136
    delete from OPERATION_LOG_BASIC_DATA
137 138 139 140
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
141
  <insert id="insert" parameterType="pwc.taxtech.atms.entity.OperationLogBasicData">
142 143 144 145
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
146 147 148 149 150
    insert into OPERATION_LOG_BASIC_DATA (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}, 
neo's avatar
neo 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.OperationLogBasicData">
156 157 158 159
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
160
    insert into OPERATION_LOG_BASIC_DATA
161
    <trim prefix="(" suffix=")" suffixOverrides=",">
neo's avatar
neo committed
162
      <if test="id != null">
163 164 165
        ID,
      </if>
      <if test="operationContent != null">
neo's avatar
neo committed
166
        OPERATION_CONTENT,
167 168
      </if>
      <if test="moduleName != null">
neo's avatar
neo committed
169
        MODULE_NAME,
170 171
      </if>
      <if test="operationObject != null">
neo's avatar
neo committed
172
        OPERATION_OBJECT,
173 174
      </if>
      <if test="operationAction != null">
neo's avatar
neo committed
175
        OPERATION_ACTION,
176 177
      </if>
      <if test="originalState != null">
neo's avatar
neo committed
178
        ORIGINAL_STATE,
179 180
      </if>
      <if test="updateState != null">
neo's avatar
neo committed
181
        UPDATE_STATE,
182 183
      </if>
      <if test="operationUser != null">
neo's avatar
neo committed
184
        OPERATION_USER,
185
      </if>
neo's avatar
neo committed
186
      <if test="ip != null">
187 188 189
        IP,
      </if>
      <if test="comment != null">
neo's avatar
neo committed
190
        "COMMENT",
191 192
      </if>
      <if test="createTime != null">
neo's avatar
neo committed
193
        CREATE_TIME,
194 195 196
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
neo's avatar
neo 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>
neo's avatar
neo 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.OperationLogBasicDataExample" resultType="java.lang.Long">
233 234 235 236
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
237
    select count(*) from OPERATION_LOG_BASIC_DATA
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.
    -->
neo's avatar
neo committed
247
    update OPERATION_LOG_BASIC_DATA
248
    <set>
neo's avatar
neo committed
249 250
      <if test="record.id != null">
        ID = #{record.id,jdbcType=VARCHAR},
251 252
      </if>
      <if test="record.operationContent != null">
neo's avatar
neo committed
253
        OPERATION_CONTENT = #{record.operationContent,jdbcType=VARCHAR},
254 255
      </if>
      <if test="record.moduleName != null">
neo's avatar
neo committed
256
        MODULE_NAME = #{record.moduleName,jdbcType=VARCHAR},
257 258
      </if>
      <if test="record.operationObject != null">
neo's avatar
neo committed
259
        OPERATION_OBJECT = #{record.operationObject,jdbcType=VARCHAR},
260 261
      </if>
      <if test="record.operationAction != null">
neo's avatar
neo committed
262
        OPERATION_ACTION = #{record.operationAction,jdbcType=VARCHAR},
263 264
      </if>
      <if test="record.originalState != null">
neo's avatar
neo committed
265
        ORIGINAL_STATE = #{record.originalState,jdbcType=VARCHAR},
266 267
      </if>
      <if test="record.updateState != null">
neo's avatar
neo committed
268
        UPDATE_STATE = #{record.updateState,jdbcType=VARCHAR},
269 270
      </if>
      <if test="record.operationUser != null">
neo's avatar
neo committed
271
        OPERATION_USER = #{record.operationUser,jdbcType=VARCHAR},
272
      </if>
neo's avatar
neo committed
273 274
      <if test="record.ip != null">
        IP = #{record.ip,jdbcType=VARCHAR},
275 276
      </if>
      <if test="record.comment != null">
neo's avatar
neo committed
277
        "COMMENT" = #{record.comment,jdbcType=VARCHAR},
278 279
      </if>
      <if test="record.createTime != null">
neo's avatar
neo 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.
    -->
neo's avatar
neo committed
292 293 294 295 296 297 298 299 300 301 302 303
    update OPERATION_LOG_BASIC_DATA
    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.OperationLogBasicData">
309 310 311 312
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
313
    update OPERATION_LOG_BASIC_DATA
314 315
    <set>
      <if test="operationContent != null">
neo's avatar
neo committed
316
        OPERATION_CONTENT = #{operationContent,jdbcType=VARCHAR},
317 318
      </if>
      <if test="moduleName != null">
neo's avatar
neo committed
319
        MODULE_NAME = #{moduleName,jdbcType=VARCHAR},
320 321
      </if>
      <if test="operationObject != null">
neo's avatar
neo committed
322
        OPERATION_OBJECT = #{operationObject,jdbcType=VARCHAR},
323 324
      </if>
      <if test="operationAction != null">
neo's avatar
neo committed
325
        OPERATION_ACTION = #{operationAction,jdbcType=VARCHAR},
326 327
      </if>
      <if test="originalState != null">
neo's avatar
neo committed
328
        ORIGINAL_STATE = #{originalState,jdbcType=VARCHAR},
329 330
      </if>
      <if test="updateState != null">
neo's avatar
neo committed
331
        UPDATE_STATE = #{updateState,jdbcType=VARCHAR},
332 333
      </if>
      <if test="operationUser != null">
neo's avatar
neo committed
334
        OPERATION_USER = #{operationUser,jdbcType=VARCHAR},
335
      </if>
neo's avatar
neo committed
336 337
      <if test="ip != null">
        IP = #{ip,jdbcType=VARCHAR},
338 339
      </if>
      <if test="comment != null">
neo's avatar
neo committed
340
        "COMMENT" = #{comment,jdbcType=VARCHAR},
341 342
      </if>
      <if test="createTime != null">
neo's avatar
neo committed
343
        CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
344 345
      </if>
    </set>
neo's avatar
neo committed
346
    where ID = #{id,jdbcType=VARCHAR}
347
  </update>
348
  <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.entity.OperationLogBasicData">
349 350 351 352
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
353 354 355 356 357 358 359 360 361 362 363 364
    update OPERATION_LOG_BASIC_DATA
    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.OperationLogBasicDataExample" 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" />
neo's avatar
neo committed
376
    from OPERATION_LOG_BASIC_DATA
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>