OperationLogBasicDataMapper.xml 15.3 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.
    -->
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.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" />
gary's avatar
gary committed
105
    from operation_log_basic_data
106 107 108 109 110 111 112
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
gary's avatar
gary committed
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132

  <select id="selectEquityLogByExample" parameterType="pwc.taxtech.atms.entity.OperationLogBasicDataExample" resultMap="BaseResultMap">
    <!--
      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" />
    from operation_log_equity
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>

133 134 135 136 137 138 139
  <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
140 141
    from operation_log_basic_data
    where id = #{id,jdbcType=VARCHAR}
142 143 144 145 146 147
  </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
148 149
    delete from operation_log_basic_data
    where id = #{id,jdbcType=VARCHAR}
150
  </delete>
151
  <delete id="deleteByExample" parameterType="pwc.taxtech.atms.entity.OperationLogBasicDataExample">
gary's avatar
gary committed
152 153 154 155 156 157 158 159 160 161 162
  <!--
    WARNING - @mbg.generated
    This element is automatically generated by MyBatis Generator, do not modify.
  -->
  delete from operation_log_basic_data
  <if test="_parameter != null">
    <include refid="Example_Where_Clause" />
  </if>
</delete>

  <delete id="deleteEquityLogByExample" parameterType="pwc.taxtech.atms.entity.OperationLogBasicDataExample">
163 164 165 166
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
gary's avatar
gary committed
167
    delete from operation_log_equity
168 169 170 171
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
172
  <insert id="insert" parameterType="pwc.taxtech.atms.entity.OperationLogBasicData">
173 174 175 176
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
gary's avatar
gary committed
177 178 179 180 181
    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}, 
182
      #{operationObject,jdbcType=VARCHAR}, #{operationAction,jdbcType=VARCHAR}, #{originalState,jdbcType=VARCHAR}, 
gary's avatar
gary committed
183
      #{updateState,jdbcType=VARCHAR}, #{operationUser,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR}, 
184 185
      #{comment,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP})
  </insert>
186
  <insert id="insertSelective" parameterType="pwc.taxtech.atms.entity.OperationLogBasicData">
187 188 189 190
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
gary's avatar
gary committed
191
    insert into operation_log_basic_data
192
    <trim prefix="(" suffix=")" suffixOverrides=",">
gary's avatar
gary committed
193 194
      <if test="id != null">
        id,
195 196
      </if>
      <if test="operationContent != null">
gary's avatar
gary committed
197
        operation_content,
198 199
      </if>
      <if test="moduleName != null">
gary's avatar
gary committed
200
        module_name,
201 202
      </if>
      <if test="operationObject != null">
gary's avatar
gary committed
203
        operation_object,
204 205
      </if>
      <if test="operationAction != null">
gary's avatar
gary committed
206
        operation_action,
207 208
      </if>
      <if test="originalState != null">
gary's avatar
gary committed
209
        original_state,
210 211
      </if>
      <if test="updateState != null">
gary's avatar
gary committed
212
        update_state,
213 214
      </if>
      <if test="operationUser != null">
gary's avatar
gary committed
215
        operation_user,
216
      </if>
gary's avatar
gary committed
217 218
      <if test="ip != null">
        ip,
219 220
      </if>
      <if test="comment != null">
gary's avatar
gary committed
221
        comment,
222 223
      </if>
      <if test="createTime != null">
gary's avatar
gary committed
224
        create_time,
225 226 227
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
gary's avatar
gary committed
228 229
      <if test="id != null">
        #{id,jdbcType=VARCHAR},
230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251
      </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
252 253
      <if test="ip != null">
        #{ip,jdbcType=VARCHAR},
254 255 256 257 258 259 260 261 262
      </if>
      <if test="comment != null">
        #{comment,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
263
  <select id="countByExample" parameterType="pwc.taxtech.atms.entity.OperationLogBasicDataExample" resultType="java.lang.Long">
264 265 266 267
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
gary's avatar
gary committed
268
    select count(*) from operation_log_basic_data
269 270 271 272 273 274 275 276 277
    <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
278
    update operation_log_basic_data
279
    <set>
gary's avatar
gary committed
280 281
      <if test="record.id != null">
        id = #{record.id,jdbcType=VARCHAR},
282 283
      </if>
      <if test="record.operationContent != null">
gary's avatar
gary committed
284
        operation_content = #{record.operationContent,jdbcType=VARCHAR},
285 286
      </if>
      <if test="record.moduleName != null">
gary's avatar
gary committed
287
        module_name = #{record.moduleName,jdbcType=VARCHAR},
288 289
      </if>
      <if test="record.operationObject != null">
gary's avatar
gary committed
290
        operation_object = #{record.operationObject,jdbcType=VARCHAR},
291 292
      </if>
      <if test="record.operationAction != null">
gary's avatar
gary committed
293
        operation_action = #{record.operationAction,jdbcType=VARCHAR},
294 295
      </if>
      <if test="record.originalState != null">
gary's avatar
gary committed
296
        original_state = #{record.originalState,jdbcType=VARCHAR},
297 298
      </if>
      <if test="record.updateState != null">
gary's avatar
gary committed
299
        update_state = #{record.updateState,jdbcType=VARCHAR},
300 301
      </if>
      <if test="record.operationUser != null">
gary's avatar
gary committed
302
        operation_user = #{record.operationUser,jdbcType=VARCHAR},
303
      </if>
gary's avatar
gary committed
304 305
      <if test="record.ip != null">
        ip = #{record.ip,jdbcType=VARCHAR},
306 307
      </if>
      <if test="record.comment != null">
gary's avatar
gary committed
308
        comment = #{record.comment,jdbcType=VARCHAR},
309 310
      </if>
      <if test="record.createTime != null">
gary's avatar
gary committed
311
        create_time = #{record.createTime,jdbcType=TIMESTAMP},
312 313 314 315 316 317 318 319 320 321 322
      </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
323 324 325 326 327 328 329 330 331 332 333 334
    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}
335 336 337 338
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
339
  <update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.entity.OperationLogBasicData">
340 341 342 343
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
gary's avatar
gary committed
344
    update operation_log_basic_data
345 346
    <set>
      <if test="operationContent != null">
gary's avatar
gary committed
347
        operation_content = #{operationContent,jdbcType=VARCHAR},
348 349
      </if>
      <if test="moduleName != null">
gary's avatar
gary committed
350
        module_name = #{moduleName,jdbcType=VARCHAR},
351 352
      </if>
      <if test="operationObject != null">
gary's avatar
gary committed
353
        operation_object = #{operationObject,jdbcType=VARCHAR},
354 355
      </if>
      <if test="operationAction != null">
gary's avatar
gary committed
356
        operation_action = #{operationAction,jdbcType=VARCHAR},
357 358
      </if>
      <if test="originalState != null">
gary's avatar
gary committed
359
        original_state = #{originalState,jdbcType=VARCHAR},
360 361
      </if>
      <if test="updateState != null">
gary's avatar
gary committed
362
        update_state = #{updateState,jdbcType=VARCHAR},
363 364
      </if>
      <if test="operationUser != null">
gary's avatar
gary committed
365
        operation_user = #{operationUser,jdbcType=VARCHAR},
366
      </if>
gary's avatar
gary committed
367 368
      <if test="ip != null">
        ip = #{ip,jdbcType=VARCHAR},
369 370
      </if>
      <if test="comment != null">
gary's avatar
gary committed
371
        comment = #{comment,jdbcType=VARCHAR},
372 373
      </if>
      <if test="createTime != null">
gary's avatar
gary committed
374
        create_time = #{createTime,jdbcType=TIMESTAMP},
375 376
      </if>
    </set>
gary's avatar
gary committed
377
    where id = #{id,jdbcType=VARCHAR}
378
  </update>
379
  <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.entity.OperationLogBasicData">
380 381 382 383
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
gary's avatar
gary committed
384 385 386 387 388 389 390 391 392 393 394 395
    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}
396
  </update>
397
  <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.entity.OperationLogBasicDataExample" resultMap="BaseResultMap">
398 399 400 401 402 403 404 405 406
    <!--
      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
407
    from operation_log_basic_data
408 409 410 411 412 413 414
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
415
</mapper>