<?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.vat.dao.OperationLogMapper"> <resultMap id="BaseResultMap" type="pwc.taxtech.atms.vat.entity.OperationLog"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> <id column="ID" jdbcType="VARCHAR" property="id" /> <result column="OPERATION_NAME" jdbcType="VARCHAR" property="operationName" /> <result column="MODULE_ID" jdbcType="DECIMAL" property="moduleId" /> <result column="OPERATION_OBJECT" jdbcType="VARCHAR" property="operationObject" /> <result column="OPERATION_TYPE" jdbcType="DECIMAL" property="operationType" /> <result column="OPERATION_CONTENT" jdbcType="VARCHAR" property="operationContent" /> <result column="ORIGINAL_STATE" jdbcType="VARCHAR" property="originalState" /> <result column="UPDATE_STATE" jdbcType="VARCHAR" property="updateState" /> <result column="CREATOR_ID" jdbcType="VARCHAR" property="creatorId" /> <result column="COMMENT" jdbcType="VARCHAR" property="comment" /> <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" /> <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" /> <result column="IP" jdbcType="VARCHAR" property="ip" /> <result column="PERIOD" jdbcType="DECIMAL" property="period" /> <result column="SERVICE_TYPE" jdbcType="DECIMAL" property="serviceType" /> </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> </foreach> </trim> </if> </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> </if> </foreach> </where> </sql> <sql id="Base_Column_List"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> ID, OPERATION_NAME, MODULE_ID, OPERATION_OBJECT, OPERATION_TYPE, OPERATION_CONTENT, ORIGINAL_STATE, UPDATE_STATE, CREATOR_ID, "COMMENT", CREATE_TIME, UPDATE_TIME, IP, PERIOD, SERVICE_TYPE </sql> <select id="selectByExample" parameterType="pwc.taxtech.atms.vat.entity.OperationLogExample" 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 <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" /> from OPERATION_LOG where ID = #{id,jdbcType=VARCHAR} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> delete from OPERATION_LOG where ID = #{id,jdbcType=VARCHAR} </delete> <delete id="deleteByExample" parameterType="pwc.taxtech.atms.vat.entity.OperationLogExample"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> delete from OPERATION_LOG <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> </delete> <insert id="insert" parameterType="pwc.taxtech.atms.vat.entity.OperationLog"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> insert into OPERATION_LOG (ID, OPERATION_NAME, MODULE_ID, OPERATION_OBJECT, OPERATION_TYPE, OPERATION_CONTENT, ORIGINAL_STATE, UPDATE_STATE, CREATOR_ID, "COMMENT", CREATE_TIME, UPDATE_TIME, IP, PERIOD, SERVICE_TYPE ) values (#{id,jdbcType=VARCHAR}, #{operationName,jdbcType=VARCHAR}, #{moduleId,jdbcType=DECIMAL}, #{operationObject,jdbcType=VARCHAR}, #{operationType,jdbcType=DECIMAL}, #{operationContent,jdbcType=VARCHAR}, #{originalState,jdbcType=VARCHAR}, #{updateState,jdbcType=VARCHAR}, #{creatorId,jdbcType=VARCHAR}, #{comment,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{ip,jdbcType=VARCHAR}, #{period,jdbcType=DECIMAL}, #{serviceType,jdbcType=DECIMAL} ) </insert> <insert id="insertSelective" parameterType="pwc.taxtech.atms.vat.entity.OperationLog"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> insert into OPERATION_LOG <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> ID, </if> <if test="operationName != null"> OPERATION_NAME, </if> <if test="moduleId != null"> MODULE_ID, </if> <if test="operationObject != null"> OPERATION_OBJECT, </if> <if test="operationType != null"> OPERATION_TYPE, </if> <if test="operationContent != null"> OPERATION_CONTENT, </if> <if test="originalState != null"> ORIGINAL_STATE, </if> <if test="updateState != null"> UPDATE_STATE, </if> <if test="creatorId != null"> CREATOR_ID, </if> <if test="comment != null"> "COMMENT", </if> <if test="createTime != null"> CREATE_TIME, </if> <if test="updateTime != null"> UPDATE_TIME, </if> <if test="ip != null"> IP, </if> <if test="period != null"> PERIOD, </if> <if test="serviceType != null"> SERVICE_TYPE, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null"> #{id,jdbcType=VARCHAR}, </if> <if test="operationName != null"> #{operationName,jdbcType=VARCHAR}, </if> <if test="moduleId != null"> #{moduleId,jdbcType=DECIMAL}, </if> <if test="operationObject != null"> #{operationObject,jdbcType=VARCHAR}, </if> <if test="operationType != null"> #{operationType,jdbcType=DECIMAL}, </if> <if test="operationContent != null"> #{operationContent,jdbcType=VARCHAR}, </if> <if test="originalState != null"> #{originalState,jdbcType=VARCHAR}, </if> <if test="updateState != null"> #{updateState,jdbcType=VARCHAR}, </if> <if test="creatorId != null"> #{creatorId,jdbcType=VARCHAR}, </if> <if test="comment != null"> #{comment,jdbcType=VARCHAR}, </if> <if test="createTime != null"> #{createTime,jdbcType=TIMESTAMP}, </if> <if test="updateTime != null"> #{updateTime,jdbcType=TIMESTAMP}, </if> <if test="ip != null"> #{ip,jdbcType=VARCHAR}, </if> <if test="period != null"> #{period,jdbcType=DECIMAL}, </if> <if test="serviceType != null"> #{serviceType,jdbcType=DECIMAL}, </if> </trim> </insert> <select id="countByExample" parameterType="pwc.taxtech.atms.vat.entity.OperationLogExample" resultType="java.lang.Long"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> select count(*) from OPERATION_LOG <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. --> update OPERATION_LOG <set> <if test="record.id != null"> ID = #{record.id,jdbcType=VARCHAR}, </if> <if test="record.operationName != null"> OPERATION_NAME = #{record.operationName,jdbcType=VARCHAR}, </if> <if test="record.moduleId != null"> MODULE_ID = #{record.moduleId,jdbcType=DECIMAL}, </if> <if test="record.operationObject != null"> OPERATION_OBJECT = #{record.operationObject,jdbcType=VARCHAR}, </if> <if test="record.operationType != null"> OPERATION_TYPE = #{record.operationType,jdbcType=DECIMAL}, </if> <if test="record.operationContent != null"> OPERATION_CONTENT = #{record.operationContent,jdbcType=VARCHAR}, </if> <if test="record.originalState != null"> ORIGINAL_STATE = #{record.originalState,jdbcType=VARCHAR}, </if> <if test="record.updateState != null"> UPDATE_STATE = #{record.updateState,jdbcType=VARCHAR}, </if> <if test="record.creatorId != null"> CREATOR_ID = #{record.creatorId,jdbcType=VARCHAR}, </if> <if test="record.comment != null"> "COMMENT" = #{record.comment,jdbcType=VARCHAR}, </if> <if test="record.createTime != null"> CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP}, </if> <if test="record.updateTime != null"> UPDATE_TIME = #{record.updateTime,jdbcType=TIMESTAMP}, </if> <if test="record.ip != null"> IP = #{record.ip,jdbcType=VARCHAR}, </if> <if test="record.period != null"> PERIOD = #{record.period,jdbcType=DECIMAL}, </if> <if test="record.serviceType != null"> SERVICE_TYPE = #{record.serviceType,jdbcType=DECIMAL}, </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. --> update OPERATION_LOG set ID = #{record.id,jdbcType=VARCHAR}, OPERATION_NAME = #{record.operationName,jdbcType=VARCHAR}, MODULE_ID = #{record.moduleId,jdbcType=DECIMAL}, OPERATION_OBJECT = #{record.operationObject,jdbcType=VARCHAR}, OPERATION_TYPE = #{record.operationType,jdbcType=DECIMAL}, OPERATION_CONTENT = #{record.operationContent,jdbcType=VARCHAR}, ORIGINAL_STATE = #{record.originalState,jdbcType=VARCHAR}, UPDATE_STATE = #{record.updateState,jdbcType=VARCHAR}, CREATOR_ID = #{record.creatorId,jdbcType=VARCHAR}, "COMMENT" = #{record.comment,jdbcType=VARCHAR}, CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP}, UPDATE_TIME = #{record.updateTime,jdbcType=TIMESTAMP}, IP = #{record.ip,jdbcType=VARCHAR}, PERIOD = #{record.period,jdbcType=DECIMAL}, SERVICE_TYPE = #{record.serviceType,jdbcType=DECIMAL} <if test="_parameter != null"> <include refid="Update_By_Example_Where_Clause" /> </if> </update> <update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.vat.entity.OperationLog"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update OPERATION_LOG <set> <if test="operationName != null"> OPERATION_NAME = #{operationName,jdbcType=VARCHAR}, </if> <if test="moduleId != null"> MODULE_ID = #{moduleId,jdbcType=DECIMAL}, </if> <if test="operationObject != null"> OPERATION_OBJECT = #{operationObject,jdbcType=VARCHAR}, </if> <if test="operationType != null"> OPERATION_TYPE = #{operationType,jdbcType=DECIMAL}, </if> <if test="operationContent != null"> OPERATION_CONTENT = #{operationContent,jdbcType=VARCHAR}, </if> <if test="originalState != null"> ORIGINAL_STATE = #{originalState,jdbcType=VARCHAR}, </if> <if test="updateState != null"> UPDATE_STATE = #{updateState,jdbcType=VARCHAR}, </if> <if test="creatorId != null"> CREATOR_ID = #{creatorId,jdbcType=VARCHAR}, </if> <if test="comment != null"> "COMMENT" = #{comment,jdbcType=VARCHAR}, </if> <if test="createTime != null"> CREATE_TIME = #{createTime,jdbcType=TIMESTAMP}, </if> <if test="updateTime != null"> UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP}, </if> <if test="ip != null"> IP = #{ip,jdbcType=VARCHAR}, </if> <if test="period != null"> PERIOD = #{period,jdbcType=DECIMAL}, </if> <if test="serviceType != null"> SERVICE_TYPE = #{serviceType,jdbcType=DECIMAL}, </if> </set> where ID = #{id,jdbcType=VARCHAR} </update> <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.vat.entity.OperationLog"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update OPERATION_LOG set OPERATION_NAME = #{operationName,jdbcType=VARCHAR}, MODULE_ID = #{moduleId,jdbcType=DECIMAL}, OPERATION_OBJECT = #{operationObject,jdbcType=VARCHAR}, OPERATION_TYPE = #{operationType,jdbcType=DECIMAL}, OPERATION_CONTENT = #{operationContent,jdbcType=VARCHAR}, ORIGINAL_STATE = #{originalState,jdbcType=VARCHAR}, UPDATE_STATE = #{updateState,jdbcType=VARCHAR}, CREATOR_ID = #{creatorId,jdbcType=VARCHAR}, "COMMENT" = #{comment,jdbcType=VARCHAR}, CREATE_TIME = #{createTime,jdbcType=TIMESTAMP}, UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP}, IP = #{ip,jdbcType=VARCHAR}, PERIOD = #{period,jdbcType=DECIMAL}, SERVICE_TYPE = #{serviceType,jdbcType=DECIMAL} where ID = #{id,jdbcType=VARCHAR} </update> <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.vat.entity.OperationLogExample" 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 <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> <if test="orderByClause != null"> order by ${orderByClause} </if> </select> </mapper>