mapper.HfpmPageEventMapper.xml Maven / Gradle / Ivy
The newest version!
<?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="com.hframe.dao.HfpmPageEventMapper" > <resultMap id="BaseResultMap" type="com.hframe.domain.model.HfpmPageEvent" > <constructor > <idArg column="hfpm_page_event_id" jdbcType="BIGINT" javaType="java.lang.Long" /> <arg column="hfpm_page_id" jdbcType="BIGINT" javaType="java.lang.Long" /> <arg column="hfpm_event_name" jdbcType="VARCHAR" javaType="java.lang.String" /> <arg column="hfpm_event_monitor_object" jdbcType="VARCHAR" javaType="java.lang.String" /> <arg column="hfpm_event_monitor_object_type" jdbcType="VARCHAR" javaType="java.lang.String" /> <arg column="hfpm_event_type" jdbcType="INTEGER" javaType="java.lang.Integer" /> <arg column="hfpm_event_effect_object" jdbcType="VARCHAR" javaType="java.lang.String" /> <arg column="op_id" jdbcType="BIGINT" javaType="java.lang.Long" /> <arg column="create_time" jdbcType="TIMESTAMP" javaType="java.util.Date" /> <arg column="modify_op_id" jdbcType="BIGINT" javaType="java.lang.Long" /> <arg column="modify_time" jdbcType="TIMESTAMP" javaType="java.util.Date" /> <arg column="del_flag" jdbcType="INTEGER" javaType="java.lang.Integer" /> <arg column="hfpm_page_component_id" jdbcType="BIGINT" javaType="java.lang.Long" /> <arg column="creator_id" jdbcType="BIGINT" javaType="java.lang.Long" /> <arg column="effect_field" jdbcType="BIGINT" javaType="java.lang.Long" /> <arg column="event_source" jdbcType="TINYINT" javaType="java.lang.Byte" /> <arg column="hfpm_page_event_code" jdbcType="VARCHAR" javaType="java.lang.String" /> <arg column="hfpm_page_event_name" jdbcType="VARCHAR" javaType="java.lang.String" /> <arg column="hfpm_page_event_type" jdbcType="TINYINT" javaType="java.lang.Byte" /> <arg column="modifier_id" jdbcType="BIGINT" javaType="java.lang.Long" /> <arg column="target_hfpm_page_id" jdbcType="BIGINT" javaType="java.lang.Long" /> <arg column="from_condition" jdbcType="VARCHAR" javaType="java.lang.String" /> <arg column="to_result" jdbcType="VARCHAR" javaType="java.lang.String" /> </constructor> </resultMap> <sql id="Example_Where_Clause" > <where > <foreach collection="oredCriteria" item="criteria" separator="or" > <if test="criteria.valid" > <trim prefix="(" suffix=")" prefixOverrides="and" > <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 collection="criterion.value" item="listItem" open="(" close=")" separator="," > #{listItem} </foreach> </when> </choose> </foreach> </trim> </if> </foreach> </where> </sql> <sql id="Update_By_Example_Where_Clause" > <where > <foreach collection="example.oredCriteria" item="criteria" separator="or" > <if test="criteria.valid" > <trim prefix="(" suffix=")" prefixOverrides="and" > <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 collection="criterion.value" item="listItem" open="(" close=")" separator="," > #{listItem} </foreach> </when> </choose> </foreach> </trim> </if> </foreach> </where> </sql> <sql id="Base_Column_List" > hfpm_page_event_id, hfpm_page_id, hfpm_event_name, hfpm_event_monitor_object, hfpm_event_monitor_object_type, hfpm_event_type, hfpm_event_effect_object, op_id, create_time, modify_op_id, modify_time, del_flag, hfpm_page_component_id, creator_id, effect_field, event_source, hfpm_page_event_code, hfpm_page_event_name, hfpm_page_event_type, modifier_id, target_hfpm_page_id, from_condition, to_result </sql> <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.hframe.domain.model.HfpmPageEvent_Example" > select <if test="distinct" > distinct </if> <include refid="Base_Column_List" /> from hfpm_page_event <if test="_parameter != null" > <include refid="Example_Where_Clause" /> </if> <if test="orderByClause != null" > order by ${orderByClause} </if> <if test="limitEnd != null and limitEnd != 0" > limit #{limitStart} , #{limitEnd} </if> </select> <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" > select <include refid="Base_Column_List" /> from hfpm_page_event where hfpm_page_event_id = #{hfpmPageEventId,jdbcType=BIGINT} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" > delete from hfpm_page_event where hfpm_page_event_id = #{hfpmPageEventId,jdbcType=BIGINT} </delete> <delete id="deleteByExample" parameterType="com.hframe.domain.model.HfpmPageEvent_Example" > delete from hfpm_page_event <if test="_parameter != null" > <include refid="Example_Where_Clause" /> </if> </delete> <insert id="insert" parameterType="com.hframe.domain.model.HfpmPageEvent" > <selectKey resultType="java.lang.Long" keyProperty="hfpmPageEventId" order="AFTER" > SELECT LAST_INSERT_ID() </selectKey> insert into hfpm_page_event (hfpm_page_id, hfpm_event_name, hfpm_event_monitor_object, hfpm_event_monitor_object_type, hfpm_event_type, hfpm_event_effect_object, op_id, create_time, modify_op_id, modify_time, del_flag, hfpm_page_component_id, creator_id, effect_field, event_source, hfpm_page_event_code, hfpm_page_event_name, hfpm_page_event_type, modifier_id, target_hfpm_page_id, from_condition, to_result) values (#{hfpmPageId,jdbcType=BIGINT}, #{hfpmEventName,jdbcType=VARCHAR}, #{hfpmEventMonitorObject,jdbcType=VARCHAR}, #{hfpmEventMonitorObjectType,jdbcType=VARCHAR}, #{hfpmEventType,jdbcType=INTEGER}, #{hfpmEventEffectObject,jdbcType=VARCHAR}, #{opId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{modifyOpId,jdbcType=BIGINT}, #{modifyTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=INTEGER}, #{hfpmPageComponentId,jdbcType=BIGINT}, #{creatorId,jdbcType=BIGINT}, #{effectField,jdbcType=BIGINT}, #{eventSource,jdbcType=TINYINT}, #{hfpmPageEventCode,jdbcType=VARCHAR}, #{hfpmPageEventName,jdbcType=VARCHAR}, #{hfpmPageEventType,jdbcType=TINYINT}, #{modifierId,jdbcType=BIGINT}, #{targetHfpmPageId,jdbcType=BIGINT}, #{fromCondition,jdbcType=VARCHAR}, #{toResult,jdbcType=VARCHAR}) </insert> <insert id="insertSelective" parameterType="com.hframe.domain.model.HfpmPageEvent" > <selectKey resultType="java.lang.Long" keyProperty="hfpmPageEventId" order="AFTER" > SELECT LAST_INSERT_ID() </selectKey> insert into hfpm_page_event <trim prefix="(" suffix=")" suffixOverrides="," > <if test="hfpmPageId != null" > hfpm_page_id, </if> <if test="hfpmEventName != null" > hfpm_event_name, </if> <if test="hfpmEventMonitorObject != null" > hfpm_event_monitor_object, </if> <if test="hfpmEventMonitorObjectType != null" > hfpm_event_monitor_object_type, </if> <if test="hfpmEventType != null" > hfpm_event_type, </if> <if test="hfpmEventEffectObject != null" > hfpm_event_effect_object, </if> <if test="opId != null" > op_id, </if> <if test="createTime != null" > create_time, </if> <if test="modifyOpId != null" > modify_op_id, </if> <if test="modifyTime != null" > modify_time, </if> <if test="delFlag != null" > del_flag, </if> <if test="hfpmPageComponentId != null" > hfpm_page_component_id, </if> <if test="creatorId != null" > creator_id, </if> <if test="effectField != null" > effect_field, </if> <if test="eventSource != null" > event_source, </if> <if test="hfpmPageEventCode != null" > hfpm_page_event_code, </if> <if test="hfpmPageEventName != null" > hfpm_page_event_name, </if> <if test="hfpmPageEventType != null" > hfpm_page_event_type, </if> <if test="modifierId != null" > modifier_id, </if> <if test="targetHfpmPageId != null" > target_hfpm_page_id, </if> <if test="fromCondition != null" > from_condition, </if> <if test="toResult != null" > to_result, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides="," > <if test="hfpmPageId != null" > #{hfpmPageId,jdbcType=BIGINT}, </if> <if test="hfpmEventName != null" > #{hfpmEventName,jdbcType=VARCHAR}, </if> <if test="hfpmEventMonitorObject != null" > #{hfpmEventMonitorObject,jdbcType=VARCHAR}, </if> <if test="hfpmEventMonitorObjectType != null" > #{hfpmEventMonitorObjectType,jdbcType=VARCHAR}, </if> <if test="hfpmEventType != null" > #{hfpmEventType,jdbcType=INTEGER}, </if> <if test="hfpmEventEffectObject != null" > #{hfpmEventEffectObject,jdbcType=VARCHAR}, </if> <if test="opId != null" > #{opId,jdbcType=BIGINT}, </if> <if test="createTime != null" > #{createTime,jdbcType=TIMESTAMP}, </if> <if test="modifyOpId != null" > #{modifyOpId,jdbcType=BIGINT}, </if> <if test="modifyTime != null" > #{modifyTime,jdbcType=TIMESTAMP}, </if> <if test="delFlag != null" > #{delFlag,jdbcType=INTEGER}, </if> <if test="hfpmPageComponentId != null" > #{hfpmPageComponentId,jdbcType=BIGINT}, </if> <if test="creatorId != null" > #{creatorId,jdbcType=BIGINT}, </if> <if test="effectField != null" > #{effectField,jdbcType=BIGINT}, </if> <if test="eventSource != null" > #{eventSource,jdbcType=TINYINT}, </if> <if test="hfpmPageEventCode != null" > #{hfpmPageEventCode,jdbcType=VARCHAR}, </if> <if test="hfpmPageEventName != null" > #{hfpmPageEventName,jdbcType=VARCHAR}, </if> <if test="hfpmPageEventType != null" > #{hfpmPageEventType,jdbcType=TINYINT}, </if> <if test="modifierId != null" > #{modifierId,jdbcType=BIGINT}, </if> <if test="targetHfpmPageId != null" > #{targetHfpmPageId,jdbcType=BIGINT}, </if> <if test="fromCondition != null" > #{fromCondition,jdbcType=VARCHAR}, </if> <if test="toResult != null" > #{toResult,jdbcType=VARCHAR}, </if> </trim> </insert> <select id="countByExample" parameterType="com.hframe.domain.model.HfpmPageEvent_Example" resultType="java.lang.Integer" > select count(*) from hfpm_page_event <if test="_parameter != null" > <include refid="Example_Where_Clause" /> </if> </select> <update id="updateByExampleSelective" parameterType="map" > update hfpm_page_event <set > <if test="record.hfpmPageEventId != null" > hfpm_page_event_id = #{record.hfpmPageEventId,jdbcType=BIGINT}, </if> <if test="record.hfpmPageId != null" > hfpm_page_id = #{record.hfpmPageId,jdbcType=BIGINT}, </if> <if test="record.hfpmEventName != null" > hfpm_event_name = #{record.hfpmEventName,jdbcType=VARCHAR}, </if> <if test="record.hfpmEventMonitorObject != null" > hfpm_event_monitor_object = #{record.hfpmEventMonitorObject,jdbcType=VARCHAR}, </if> <if test="record.hfpmEventMonitorObjectType != null" > hfpm_event_monitor_object_type = #{record.hfpmEventMonitorObjectType,jdbcType=VARCHAR}, </if> <if test="record.hfpmEventType != null" > hfpm_event_type = #{record.hfpmEventType,jdbcType=INTEGER}, </if> <if test="record.hfpmEventEffectObject != null" > hfpm_event_effect_object = #{record.hfpmEventEffectObject,jdbcType=VARCHAR}, </if> <if test="record.opId != null" > op_id = #{record.opId,jdbcType=BIGINT}, </if> <if test="record.createTime != null" > create_time = #{record.createTime,jdbcType=TIMESTAMP}, </if> <if test="record.modifyOpId != null" > modify_op_id = #{record.modifyOpId,jdbcType=BIGINT}, </if> <if test="record.modifyTime != null" > modify_time = #{record.modifyTime,jdbcType=TIMESTAMP}, </if> <if test="record.delFlag != null" > del_flag = #{record.delFlag,jdbcType=INTEGER}, </if> <if test="record.hfpmPageComponentId != null" > hfpm_page_component_id = #{record.hfpmPageComponentId,jdbcType=BIGINT}, </if> <if test="record.creatorId != null" > creator_id = #{record.creatorId,jdbcType=BIGINT}, </if> <if test="record.effectField != null" > effect_field = #{record.effectField,jdbcType=BIGINT}, </if> <if test="record.eventSource != null" > event_source = #{record.eventSource,jdbcType=TINYINT}, </if> <if test="record.hfpmPageEventCode != null" > hfpm_page_event_code = #{record.hfpmPageEventCode,jdbcType=VARCHAR}, </if> <if test="record.hfpmPageEventName != null" > hfpm_page_event_name = #{record.hfpmPageEventName,jdbcType=VARCHAR}, </if> <if test="record.hfpmPageEventType != null" > hfpm_page_event_type = #{record.hfpmPageEventType,jdbcType=TINYINT}, </if> <if test="record.modifierId != null" > modifier_id = #{record.modifierId,jdbcType=BIGINT}, </if> <if test="record.targetHfpmPageId != null" > target_hfpm_page_id = #{record.targetHfpmPageId,jdbcType=BIGINT}, </if> <if test="record.fromCondition != null" > from_condition = #{record.fromCondition,jdbcType=VARCHAR}, </if> <if test="record.toResult != null" > to_result = #{record.toResult,jdbcType=VARCHAR}, </if> </set> <if test="_parameter != null" > <include refid="Update_By_Example_Where_Clause" /> </if> </update> <update id="updateByExample" parameterType="map" > update hfpm_page_event set hfpm_page_event_id = #{record.hfpmPageEventId,jdbcType=BIGINT}, hfpm_page_id = #{record.hfpmPageId,jdbcType=BIGINT}, hfpm_event_name = #{record.hfpmEventName,jdbcType=VARCHAR}, hfpm_event_monitor_object = #{record.hfpmEventMonitorObject,jdbcType=VARCHAR}, hfpm_event_monitor_object_type = #{record.hfpmEventMonitorObjectType,jdbcType=VARCHAR}, hfpm_event_type = #{record.hfpmEventType,jdbcType=INTEGER}, hfpm_event_effect_object = #{record.hfpmEventEffectObject,jdbcType=VARCHAR}, op_id = #{record.opId,jdbcType=BIGINT}, create_time = #{record.createTime,jdbcType=TIMESTAMP}, modify_op_id = #{record.modifyOpId,jdbcType=BIGINT}, modify_time = #{record.modifyTime,jdbcType=TIMESTAMP}, del_flag = #{record.delFlag,jdbcType=INTEGER}, hfpm_page_component_id = #{record.hfpmPageComponentId,jdbcType=BIGINT}, creator_id = #{record.creatorId,jdbcType=BIGINT}, effect_field = #{record.effectField,jdbcType=BIGINT}, event_source = #{record.eventSource,jdbcType=TINYINT}, hfpm_page_event_code = #{record.hfpmPageEventCode,jdbcType=VARCHAR}, hfpm_page_event_name = #{record.hfpmPageEventName,jdbcType=VARCHAR}, hfpm_page_event_type = #{record.hfpmPageEventType,jdbcType=TINYINT}, modifier_id = #{record.modifierId,jdbcType=BIGINT}, target_hfpm_page_id = #{record.targetHfpmPageId,jdbcType=BIGINT}, from_condition = #{record.fromCondition,jdbcType=VARCHAR}, to_result = #{record.toResult,jdbcType=VARCHAR} <if test="_parameter != null" > <include refid="Update_By_Example_Where_Clause" /> </if> </update> <update id="updateByPrimaryKeySelective" parameterType="com.hframe.domain.model.HfpmPageEvent" > update hfpm_page_event <set > <if test="hfpmPageId != null" > hfpm_page_id = #{hfpmPageId,jdbcType=BIGINT}, </if> <if test="hfpmEventName != null" > hfpm_event_name = #{hfpmEventName,jdbcType=VARCHAR}, </if> <if test="hfpmEventMonitorObject != null" > hfpm_event_monitor_object = #{hfpmEventMonitorObject,jdbcType=VARCHAR}, </if> <if test="hfpmEventMonitorObjectType != null" > hfpm_event_monitor_object_type = #{hfpmEventMonitorObjectType,jdbcType=VARCHAR}, </if> <if test="hfpmEventType != null" > hfpm_event_type = #{hfpmEventType,jdbcType=INTEGER}, </if> <if test="hfpmEventEffectObject != null" > hfpm_event_effect_object = #{hfpmEventEffectObject,jdbcType=VARCHAR}, </if> <if test="opId != null" > op_id = #{opId,jdbcType=BIGINT}, </if> <if test="createTime != null" > create_time = #{createTime,jdbcType=TIMESTAMP}, </if> <if test="modifyOpId != null" > modify_op_id = #{modifyOpId,jdbcType=BIGINT}, </if> <if test="modifyTime != null" > modify_time = #{modifyTime,jdbcType=TIMESTAMP}, </if> <if test="delFlag != null" > del_flag = #{delFlag,jdbcType=INTEGER}, </if> <if test="hfpmPageComponentId != null" > hfpm_page_component_id = #{hfpmPageComponentId,jdbcType=BIGINT}, </if> <if test="creatorId != null" > creator_id = #{creatorId,jdbcType=BIGINT}, </if> <if test="effectField != null" > effect_field = #{effectField,jdbcType=BIGINT}, </if> <if test="eventSource != null" > event_source = #{eventSource,jdbcType=TINYINT}, </if> <if test="hfpmPageEventCode != null" > hfpm_page_event_code = #{hfpmPageEventCode,jdbcType=VARCHAR}, </if> <if test="hfpmPageEventName != null" > hfpm_page_event_name = #{hfpmPageEventName,jdbcType=VARCHAR}, </if> <if test="hfpmPageEventType != null" > hfpm_page_event_type = #{hfpmPageEventType,jdbcType=TINYINT}, </if> <if test="modifierId != null" > modifier_id = #{modifierId,jdbcType=BIGINT}, </if> <if test="targetHfpmPageId != null" > target_hfpm_page_id = #{targetHfpmPageId,jdbcType=BIGINT}, </if> <if test="fromCondition != null" > from_condition = #{fromCondition,jdbcType=VARCHAR}, </if> <if test="toResult != null" > to_result = #{toResult,jdbcType=VARCHAR}, </if> </set> where hfpm_page_event_id = #{hfpmPageEventId,jdbcType=BIGINT} </update> <update id="updateByPrimaryKey" parameterType="com.hframe.domain.model.HfpmPageEvent" > update hfpm_page_event set hfpm_page_id = #{hfpmPageId,jdbcType=BIGINT}, hfpm_event_name = #{hfpmEventName,jdbcType=VARCHAR}, hfpm_event_monitor_object = #{hfpmEventMonitorObject,jdbcType=VARCHAR}, hfpm_event_monitor_object_type = #{hfpmEventMonitorObjectType,jdbcType=VARCHAR}, hfpm_event_type = #{hfpmEventType,jdbcType=INTEGER}, hfpm_event_effect_object = #{hfpmEventEffectObject,jdbcType=VARCHAR}, op_id = #{opId,jdbcType=BIGINT}, create_time = #{createTime,jdbcType=TIMESTAMP}, modify_op_id = #{modifyOpId,jdbcType=BIGINT}, modify_time = #{modifyTime,jdbcType=TIMESTAMP}, del_flag = #{delFlag,jdbcType=INTEGER}, hfpm_page_component_id = #{hfpmPageComponentId,jdbcType=BIGINT}, creator_id = #{creatorId,jdbcType=BIGINT}, effect_field = #{effectField,jdbcType=BIGINT}, event_source = #{eventSource,jdbcType=TINYINT}, hfpm_page_event_code = #{hfpmPageEventCode,jdbcType=VARCHAR}, hfpm_page_event_name = #{hfpmPageEventName,jdbcType=VARCHAR}, hfpm_page_event_type = #{hfpmPageEventType,jdbcType=TINYINT}, modifier_id = #{modifierId,jdbcType=BIGINT}, target_hfpm_page_id = #{targetHfpmPageId,jdbcType=BIGINT}, from_condition = #{fromCondition,jdbcType=VARCHAR}, to_result = #{toResult,jdbcType=VARCHAR} where hfpm_page_event_id = #{hfpmPageEventId,jdbcType=BIGINT} </update> </mapper>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy