Commit 4dcdbb73 authored by neo's avatar neo

Revert "[dev] add operation extends mapper xml"

This reverts commit 07a9c1df.
parent 07a9c1df
<?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">
<!-- TODO Remove below codes about selectByLimit -->
<select id="selectByLimit" resultMap="BaseResultMap">
SELECT
*
FROM
( SELECT A.*, ROWNUM RN FROM ( SELECT * FROM OPERATION_LOG_BASIC_DATA ) A )
WHERE
RN BETWEEN (${pagesize} * (${pageindex} -1))
AND (${pagesize} * (${pageindex}))
ORDER BY
ID
</select>
<insert id="insertSmart" parameterType="pwc.taxtech.atms.entitiy.OperationLogSmart">
INSERT INTO ${tableName}
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="ID != null">
ID,
</if>
<if test="operationContent != null">
OPERATION_CONTENT,
</if>
<if test="moduleName != null">
Module_Name,
</if>
<if test="operationObject != null">
OPERATION_OBJECT,
</if>
<if test="operationAction != null">
OPERATION_ACTION,
</if>
<if test="originalState != null">
ORIGINAL_STATE,
</if>
<if test="updateState != null">
UPDATE_STATE,
</if>
<if test="operationUser != null">
OPERATION_USER,
</if>
<if test="IP != null">
IP,
</if>
<if test="comment != null">
COMMENT,
</if>
<if test="createTime != null">
CREATE_TIME,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="ID != null">
#{ID,jdbcType=VARCHAR},
</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>
<if test="IP != null">
#{IP,jdbcType=VARCHAR},
</if>
<if test="comment != null">
#{comment,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExampleSmart" parameterType="pwc.taxtech.atms.entitiy.OperationLogSmartExample" resultType="java.lang.Long">
SELECT COUNT(*) FROM ${tableName}
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<select id="selectByExampleWithRowboundsSmart" parameterType="pwc.taxtech.atms.entitiy.OperationLogSmartExample" resultMap="BaseResultMap">
SELECT
<if test="distinct">
DISTINCT
</if>
<include refid="Base_Column_List" />
FROM ${tableName}
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
ORDER BY ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment