<?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.OperationLogOrganizationMapper"> <resultMap id="BaseResultMap" type="pwc.taxtech.atms.entity.OperationLogOrganization"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> <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" /> </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_CONTENT, MODULE_NAME, OPERATION_OBJECT, OPERATION_ACTION, ORIGINAL_STATE, UPDATE_STATE, OPERATION_USER, IP, "COMMENT", CREATE_TIME </sql> <select id="selectByExample" parameterType="pwc.taxtech.atms.entity.OperationLogOrganizationExample" 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_ORGANIZATION <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_ORGANIZATION 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_ORGANIZATION where ID = #{id,jdbcType=VARCHAR} </delete> <delete id="deleteByExample" parameterType="pwc.taxtech.atms.entity.OperationLogOrganizationExample"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> delete from OPERATION_LOG_ORGANIZATION <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> </delete> <insert id="insert" parameterType="pwc.taxtech.atms.entity.OperationLogOrganization"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> insert into OPERATION_LOG_ORGANIZATION (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}, #{operationObject,jdbcType=VARCHAR}, #{operationAction,jdbcType=VARCHAR}, #{originalState,jdbcType=VARCHAR}, #{updateState,jdbcType=VARCHAR}, #{operationUser,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR}, #{comment,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}) </insert> <insert id="insertSelective" parameterType="pwc.taxtech.atms.entity.OperationLogOrganization"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> insert into OPERATION_LOG_ORGANIZATION <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="countByExample" parameterType="pwc.taxtech.atms.entity.OperationLogOrganizationExample" resultType="java.lang.Long"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> select count(*) from OPERATION_LOG_ORGANIZATION <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_ORGANIZATION <set> <if test="record.id != null"> ID = #{record.id,jdbcType=VARCHAR}, </if> <if test="record.operationContent != null"> OPERATION_CONTENT = #{record.operationContent,jdbcType=VARCHAR}, </if> <if test="record.moduleName != null"> MODULE_NAME = #{record.moduleName,jdbcType=VARCHAR}, </if> <if test="record.operationObject != null"> OPERATION_OBJECT = #{record.operationObject,jdbcType=VARCHAR}, </if> <if test="record.operationAction != null"> OPERATION_ACTION = #{record.operationAction,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.operationUser != null"> OPERATION_USER = #{record.operationUser,jdbcType=VARCHAR}, </if> <if test="record.ip != null"> IP = #{record.ip,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> </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_ORGANIZATION 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} <if test="_parameter != null"> <include refid="Update_By_Example_Where_Clause" /> </if> </update> <update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.entity.OperationLogOrganization"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update OPERATION_LOG_ORGANIZATION <set> <if test="operationContent != null"> OPERATION_CONTENT = #{operationContent,jdbcType=VARCHAR}, </if> <if test="moduleName != null"> MODULE_NAME = #{moduleName,jdbcType=VARCHAR}, </if> <if test="operationObject != null"> OPERATION_OBJECT = #{operationObject,jdbcType=VARCHAR}, </if> <if test="operationAction != null"> OPERATION_ACTION = #{operationAction,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="operationUser != null"> OPERATION_USER = #{operationUser,jdbcType=VARCHAR}, </if> <if test="ip != null"> IP = #{ip,jdbcType=VARCHAR}, </if> <if test="comment != null"> "COMMENT" = #{comment,jdbcType=VARCHAR}, </if> <if test="createTime != null"> CREATE_TIME = #{createTime,jdbcType=TIMESTAMP}, </if> </set> where ID = #{id,jdbcType=VARCHAR} </update> <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.entity.OperationLogOrganization"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update OPERATION_LOG_ORGANIZATION 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} </update> <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.entity.OperationLogOrganizationExample" 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_ORGANIZATION <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> <if test="orderByClause != null"> order by ${orderByClause} </if> </select> </mapper>