
mapper.HfcfgPageTemplateElementsMapper.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.HfcfgPageTemplateElementsMapper" > <resultMap id="BaseResultMap" type="com.hframe.domain.model.HfcfgPageTemplateElements" > <constructor > <idArg column="hfcfg_page_template_elements_id" jdbcType="BIGINT" javaType="java.lang.Long" /> <arg column="hfcfg_page_template_id" jdbcType="BIGINT" javaType="java.lang.Long" /> <arg column="modify_time" jdbcType="TIMESTAMP" javaType="java.util.Date" /> <arg column="hfcfg_page_template_elements_type" jdbcType="TINYINT" javaType="java.lang.Byte" /> <arg column="modifier_id" jdbcType="BIGINT" javaType="java.lang.Long" /> <arg column="create_time" jdbcType="TIMESTAMP" javaType="java.util.Date" /> <arg column="creator_id" jdbcType="BIGINT" javaType="java.lang.Long" /> <arg column="event_extend" jdbcType="TINYINT" javaType="java.lang.Byte" /> <arg column="hfcfg_component_template_id" jdbcType="BIGINT" javaType="java.lang.Long" /> </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" > hfcfg_page_template_elements_id, hfcfg_page_template_id, modify_time, hfcfg_page_template_elements_type, modifier_id, create_time, creator_id, event_extend, hfcfg_component_template_id </sql> <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.hframe.domain.model.HfcfgPageTemplateElements_Example" > select <if test="distinct" > distinct </if> <include refid="Base_Column_List" /> from hfcfg_page_template_elements <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 hfcfg_page_template_elements where hfcfg_page_template_elements_id = #{hfcfgPageTemplateElementsId,jdbcType=BIGINT} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" > delete from hfcfg_page_template_elements where hfcfg_page_template_elements_id = #{hfcfgPageTemplateElementsId,jdbcType=BIGINT} </delete> <delete id="deleteByExample" parameterType="com.hframe.domain.model.HfcfgPageTemplateElements_Example" > delete from hfcfg_page_template_elements <if test="_parameter != null" > <include refid="Example_Where_Clause" /> </if> </delete> <insert id="insert" parameterType="com.hframe.domain.model.HfcfgPageTemplateElements" > <selectKey resultType="java.lang.Long" keyProperty="hfcfgPageTemplateElementsId" order="AFTER" > SELECT LAST_INSERT_ID() </selectKey> insert into hfcfg_page_template_elements (hfcfg_page_template_id, modify_time, hfcfg_page_template_elements_type, modifier_id, create_time, creator_id, event_extend, hfcfg_component_template_id) values (#{hfcfgPageTemplateId,jdbcType=BIGINT}, #{modifyTime,jdbcType=TIMESTAMP}, #{hfcfgPageTemplateElementsType,jdbcType=TINYINT}, #{modifierId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{creatorId,jdbcType=BIGINT}, #{eventExtend,jdbcType=TINYINT}, #{hfcfgComponentTemplateId,jdbcType=BIGINT}) </insert> <insert id="insertSelective" parameterType="com.hframe.domain.model.HfcfgPageTemplateElements" > <selectKey resultType="java.lang.Long" keyProperty="hfcfgPageTemplateElementsId" order="AFTER" > SELECT LAST_INSERT_ID() </selectKey> insert into hfcfg_page_template_elements <trim prefix="(" suffix=")" suffixOverrides="," > <if test="hfcfgPageTemplateId != null" > hfcfg_page_template_id, </if> <if test="modifyTime != null" > modify_time, </if> <if test="hfcfgPageTemplateElementsType != null" > hfcfg_page_template_elements_type, </if> <if test="modifierId != null" > modifier_id, </if> <if test="createTime != null" > create_time, </if> <if test="creatorId != null" > creator_id, </if> <if test="eventExtend != null" > event_extend, </if> <if test="hfcfgComponentTemplateId != null" > hfcfg_component_template_id, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides="," > <if test="hfcfgPageTemplateId != null" > #{hfcfgPageTemplateId,jdbcType=BIGINT}, </if> <if test="modifyTime != null" > #{modifyTime,jdbcType=TIMESTAMP}, </if> <if test="hfcfgPageTemplateElementsType != null" > #{hfcfgPageTemplateElementsType,jdbcType=TINYINT}, </if> <if test="modifierId != null" > #{modifierId,jdbcType=BIGINT}, </if> <if test="createTime != null" > #{createTime,jdbcType=TIMESTAMP}, </if> <if test="creatorId != null" > #{creatorId,jdbcType=BIGINT}, </if> <if test="eventExtend != null" > #{eventExtend,jdbcType=TINYINT}, </if> <if test="hfcfgComponentTemplateId != null" > #{hfcfgComponentTemplateId,jdbcType=BIGINT}, </if> </trim> </insert> <select id="countByExample" parameterType="com.hframe.domain.model.HfcfgPageTemplateElements_Example" resultType="java.lang.Integer" > select count(*) from hfcfg_page_template_elements <if test="_parameter != null" > <include refid="Example_Where_Clause" /> </if> </select> <update id="updateByExampleSelective" parameterType="map" > update hfcfg_page_template_elements <set > <if test="record.hfcfgPageTemplateElementsId != null" > hfcfg_page_template_elements_id = #{record.hfcfgPageTemplateElementsId,jdbcType=BIGINT}, </if> <if test="record.hfcfgPageTemplateId != null" > hfcfg_page_template_id = #{record.hfcfgPageTemplateId,jdbcType=BIGINT}, </if> <if test="record.modifyTime != null" > modify_time = #{record.modifyTime,jdbcType=TIMESTAMP}, </if> <if test="record.hfcfgPageTemplateElementsType != null" > hfcfg_page_template_elements_type = #{record.hfcfgPageTemplateElementsType,jdbcType=TINYINT}, </if> <if test="record.modifierId != null" > modifier_id = #{record.modifierId,jdbcType=BIGINT}, </if> <if test="record.createTime != null" > create_time = #{record.createTime,jdbcType=TIMESTAMP}, </if> <if test="record.creatorId != null" > creator_id = #{record.creatorId,jdbcType=BIGINT}, </if> <if test="record.eventExtend != null" > event_extend = #{record.eventExtend,jdbcType=TINYINT}, </if> <if test="record.hfcfgComponentTemplateId != null" > hfcfg_component_template_id = #{record.hfcfgComponentTemplateId,jdbcType=BIGINT}, </if> </set> <if test="_parameter != null" > <include refid="Update_By_Example_Where_Clause" /> </if> </update> <update id="updateByExample" parameterType="map" > update hfcfg_page_template_elements set hfcfg_page_template_elements_id = #{record.hfcfgPageTemplateElementsId,jdbcType=BIGINT}, hfcfg_page_template_id = #{record.hfcfgPageTemplateId,jdbcType=BIGINT}, modify_time = #{record.modifyTime,jdbcType=TIMESTAMP}, hfcfg_page_template_elements_type = #{record.hfcfgPageTemplateElementsType,jdbcType=TINYINT}, modifier_id = #{record.modifierId,jdbcType=BIGINT}, create_time = #{record.createTime,jdbcType=TIMESTAMP}, creator_id = #{record.creatorId,jdbcType=BIGINT}, event_extend = #{record.eventExtend,jdbcType=TINYINT}, hfcfg_component_template_id = #{record.hfcfgComponentTemplateId,jdbcType=BIGINT} <if test="_parameter != null" > <include refid="Update_By_Example_Where_Clause" /> </if> </update> <update id="updateByPrimaryKeySelective" parameterType="com.hframe.domain.model.HfcfgPageTemplateElements" > update hfcfg_page_template_elements <set > <if test="hfcfgPageTemplateId != null" > hfcfg_page_template_id = #{hfcfgPageTemplateId,jdbcType=BIGINT}, </if> <if test="modifyTime != null" > modify_time = #{modifyTime,jdbcType=TIMESTAMP}, </if> <if test="hfcfgPageTemplateElementsType != null" > hfcfg_page_template_elements_type = #{hfcfgPageTemplateElementsType,jdbcType=TINYINT}, </if> <if test="modifierId != null" > modifier_id = #{modifierId,jdbcType=BIGINT}, </if> <if test="createTime != null" > create_time = #{createTime,jdbcType=TIMESTAMP}, </if> <if test="creatorId != null" > creator_id = #{creatorId,jdbcType=BIGINT}, </if> <if test="eventExtend != null" > event_extend = #{eventExtend,jdbcType=TINYINT}, </if> <if test="hfcfgComponentTemplateId != null" > hfcfg_component_template_id = #{hfcfgComponentTemplateId,jdbcType=BIGINT}, </if> </set> where hfcfg_page_template_elements_id = #{hfcfgPageTemplateElementsId,jdbcType=BIGINT} </update> <update id="updateByPrimaryKey" parameterType="com.hframe.domain.model.HfcfgPageTemplateElements" > update hfcfg_page_template_elements set hfcfg_page_template_id = #{hfcfgPageTemplateId,jdbcType=BIGINT}, modify_time = #{modifyTime,jdbcType=TIMESTAMP}, hfcfg_page_template_elements_type = #{hfcfgPageTemplateElementsType,jdbcType=TINYINT}, modifier_id = #{modifierId,jdbcType=BIGINT}, create_time = #{createTime,jdbcType=TIMESTAMP}, creator_id = #{creatorId,jdbcType=BIGINT}, event_extend = #{eventExtend,jdbcType=TINYINT}, hfcfg_component_template_id = #{hfcfgComponentTemplateId,jdbcType=BIGINT} where hfcfg_page_template_elements_id = #{hfcfgPageTemplateElementsId,jdbcType=BIGINT} </update> </mapper>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy