<?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. --> <result column="id" jdbcType="VARCHAR" property="id" /> <result column="operation_object" jdbcType="VARCHAR" property="operationObject" /> <result column="original_state" jdbcType="VARCHAR" property="originalState" /> <result column="update_state" jdbcType="VARCHAR" property="updateState" /> <result column="operation_description" jdbcType="VARCHAR" property="operationDescription" /> <result column="operation_by" jdbcType="VARCHAR" property="operationBy" /> <result column="ip" jdbcType="VARCHAR" property="ip" /> <result column="oid" jdbcType="VARCHAR" property="oid" /> <result column="module_id" jdbcType="BIGINT" property="moduleId" /> <result column="comment" jdbcType="VARCHAR" property="comment" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> </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_object, original_state, update_state, operation_description, operation_by, ip, oid, module_id, `comment`, create_time </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_object, original_state, update_state, operation_description, operation_by, ip, oid, module_id, `comment`, create_time) values (#{id,jdbcType=VARCHAR}, #{operationObject,jdbcType=VARCHAR}, #{originalState,jdbcType=VARCHAR}, #{updateState,jdbcType=VARCHAR}, #{operationDescription,jdbcType=VARCHAR}, #{operationBy,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR}, #{oid,jdbcType=VARCHAR}, #{moduleId,jdbcType=BIGINT}, #{comment,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}) </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="operationObject != null"> operation_object, </if> <if test="originalState != null"> original_state, </if> <if test="updateState != null"> update_state, </if> <if test="operationDescription != null"> operation_description, </if> <if test="operationBy != null"> operation_by, </if> <if test="ip != null"> ip, </if> <if test="oid != null"> oid, </if> <if test="moduleId != null"> module_id, </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="operationObject != null"> #{operationObject,jdbcType=VARCHAR}, </if> <if test="originalState != null"> #{originalState,jdbcType=VARCHAR}, </if> <if test="updateState != null"> #{updateState,jdbcType=VARCHAR}, </if> <if test="operationDescription != null"> #{operationDescription,jdbcType=VARCHAR}, </if> <if test="operationBy != null"> #{operationBy,jdbcType=VARCHAR}, </if> <if test="ip != null"> #{ip,jdbcType=VARCHAR}, </if> <if test="oid != null"> #{oid,jdbcType=VARCHAR}, </if> <if test="moduleId != null"> #{moduleId,jdbcType=BIGINT}, </if> <if test="comment != null"> #{comment,jdbcType=VARCHAR}, </if> <if test="createTime != null"> #{createTime,jdbcType=TIMESTAMP}, </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.operationObject != null"> operation_object = #{record.operationObject,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.operationDescription != null"> operation_description = #{record.operationDescription,jdbcType=VARCHAR}, </if> <if test="record.operationBy != null"> operation_by = #{record.operationBy,jdbcType=VARCHAR}, </if> <if test="record.ip != null"> ip = #{record.ip,jdbcType=VARCHAR}, </if> <if test="record.oid != null"> oid = #{record.oid,jdbcType=VARCHAR}, </if> <if test="record.moduleId != null"> module_id = #{record.moduleId,jdbcType=BIGINT}, </if> <if test="record.comment != null"> `comment` = #{record.comment,jdbcType=VARCHAR}, </if> <if test="record.createTime != null"> create_time = #{record.createTime,jdbcType=TIMESTAMP}, </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_object = #{record.operationObject,jdbcType=VARCHAR}, original_state = #{record.originalState,jdbcType=VARCHAR}, update_state = #{record.updateState,jdbcType=VARCHAR}, operation_description = #{record.operationDescription,jdbcType=VARCHAR}, operation_by = #{record.operationBy,jdbcType=VARCHAR}, ip = #{record.ip,jdbcType=VARCHAR}, oid = #{record.oid,jdbcType=VARCHAR}, module_id = #{record.moduleId,jdbcType=BIGINT}, `comment` = #{record.comment,jdbcType=VARCHAR}, create_time = #{record.createTime,jdbcType=TIMESTAMP} <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>