All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mapper.HfpmFieldShowTypeMapper.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.HfpmFieldShowTypeMapper" >
  <resultMap id="BaseResultMap" type="com.hframe.domain.model.HfpmFieldShowType" >
    <constructor >
      <idArg column="hfpm_field_show_type_id" jdbcType="BIGINT" javaType="java.lang.Long" />
      <arg column="hfpm_field_show_type_code" jdbcType="VARCHAR" javaType="java.lang.String" />
      <arg column="hfpm_field_show_type_name" jdbcType="VARCHAR" javaType="java.lang.String" />
      <arg column="pre_str" jdbcType="VARCHAR" javaType="java.lang.String" />
      <arg column="after_str" jdbcType="VARCHAR" javaType="java.lang.String" />
      <arg column="col_span" jdbcType="INTEGER" javaType="java.lang.Integer" />
      <arg column="row_span" jdbcType="INTEGER" javaType="java.lang.Integer" />
      <arg column="width" jdbcType="INTEGER" javaType="java.lang.Integer" />
      <arg column="height" jdbcType="INTEGER" javaType="java.lang.Integer" />
      <arg column="param1" jdbcType="VARCHAR" javaType="java.lang.String" />
      <arg column="param2" jdbcType="VARCHAR" javaType="java.lang.String" />
      <arg column="param3" jdbcType="VARCHAR" javaType="java.lang.String" />
      <arg column="param4" 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" />
    </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_field_show_type_id, hfpm_field_show_type_code, hfpm_field_show_type_name, pre_str, 
    after_str, col_span, row_span, width, height, param1, param2, param3, param4, op_id, 
    create_time, modify_op_id, modify_time, del_flag
  </sql>
  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.hframe.domain.model.HfpmFieldShowType_Example" >
    select
    <if test="distinct" >
      distinct
    </if>
    <include refid="Base_Column_List" />
    from hfpm_field_show_type
    <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_field_show_type
    where hfpm_field_show_type_id = #{hfpmFieldShowTypeId,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
    delete from hfpm_field_show_type
    where hfpm_field_show_type_id = #{hfpmFieldShowTypeId,jdbcType=BIGINT}
  </delete>
  <delete id="deleteByExample" parameterType="com.hframe.domain.model.HfpmFieldShowType_Example" >
    delete from hfpm_field_show_type
    <if test="_parameter != null" >
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.hframe.domain.model.HfpmFieldShowType" >
    <selectKey resultType="java.lang.Long" keyProperty="hfpmFieldShowTypeId" order="AFTER" >
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into hfpm_field_show_type (hfpm_field_show_type_code, hfpm_field_show_type_name, 
      pre_str, after_str, col_span, 
      row_span, width, height, 
      param1, param2, param3, 
      param4, op_id, create_time, 
      modify_op_id, modify_time, del_flag
      )
    values (#{hfpmFieldShowTypeCode,jdbcType=VARCHAR}, #{hfpmFieldShowTypeName,jdbcType=VARCHAR}, 
      #{preStr,jdbcType=VARCHAR}, #{afterStr,jdbcType=VARCHAR}, #{colSpan,jdbcType=INTEGER}, 
      #{rowSpan,jdbcType=INTEGER}, #{width,jdbcType=INTEGER}, #{height,jdbcType=INTEGER}, 
      #{param1,jdbcType=VARCHAR}, #{param2,jdbcType=VARCHAR}, #{param3,jdbcType=VARCHAR}, 
      #{param4,jdbcType=VARCHAR}, #{opId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, 
      #{modifyOpId,jdbcType=BIGINT}, #{modifyTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=INTEGER}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.hframe.domain.model.HfpmFieldShowType" >
    <selectKey resultType="java.lang.Long" keyProperty="hfpmFieldShowTypeId" order="AFTER" >
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into hfpm_field_show_type
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="hfpmFieldShowTypeCode != null" >
        hfpm_field_show_type_code,
      </if>
      <if test="hfpmFieldShowTypeName != null" >
        hfpm_field_show_type_name,
      </if>
      <if test="preStr != null" >
        pre_str,
      </if>
      <if test="afterStr != null" >
        after_str,
      </if>
      <if test="colSpan != null" >
        col_span,
      </if>
      <if test="rowSpan != null" >
        row_span,
      </if>
      <if test="width != null" >
        width,
      </if>
      <if test="height != null" >
        height,
      </if>
      <if test="param1 != null" >
        param1,
      </if>
      <if test="param2 != null" >
        param2,
      </if>
      <if test="param3 != null" >
        param3,
      </if>
      <if test="param4 != null" >
        param4,
      </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>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="hfpmFieldShowTypeCode != null" >
        #{hfpmFieldShowTypeCode,jdbcType=VARCHAR},
      </if>
      <if test="hfpmFieldShowTypeName != null" >
        #{hfpmFieldShowTypeName,jdbcType=VARCHAR},
      </if>
      <if test="preStr != null" >
        #{preStr,jdbcType=VARCHAR},
      </if>
      <if test="afterStr != null" >
        #{afterStr,jdbcType=VARCHAR},
      </if>
      <if test="colSpan != null" >
        #{colSpan,jdbcType=INTEGER},
      </if>
      <if test="rowSpan != null" >
        #{rowSpan,jdbcType=INTEGER},
      </if>
      <if test="width != null" >
        #{width,jdbcType=INTEGER},
      </if>
      <if test="height != null" >
        #{height,jdbcType=INTEGER},
      </if>
      <if test="param1 != null" >
        #{param1,jdbcType=VARCHAR},
      </if>
      <if test="param2 != null" >
        #{param2,jdbcType=VARCHAR},
      </if>
      <if test="param3 != null" >
        #{param3,jdbcType=VARCHAR},
      </if>
      <if test="param4 != null" >
        #{param4,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>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.hframe.domain.model.HfpmFieldShowType_Example" resultType="java.lang.Integer" >
    select count(*) from hfpm_field_show_type
    <if test="_parameter != null" >
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map" >
    update hfpm_field_show_type
    <set >
      <if test="record.hfpmFieldShowTypeId != null" >
        hfpm_field_show_type_id = #{record.hfpmFieldShowTypeId,jdbcType=BIGINT},
      </if>
      <if test="record.hfpmFieldShowTypeCode != null" >
        hfpm_field_show_type_code = #{record.hfpmFieldShowTypeCode,jdbcType=VARCHAR},
      </if>
      <if test="record.hfpmFieldShowTypeName != null" >
        hfpm_field_show_type_name = #{record.hfpmFieldShowTypeName,jdbcType=VARCHAR},
      </if>
      <if test="record.preStr != null" >
        pre_str = #{record.preStr,jdbcType=VARCHAR},
      </if>
      <if test="record.afterStr != null" >
        after_str = #{record.afterStr,jdbcType=VARCHAR},
      </if>
      <if test="record.colSpan != null" >
        col_span = #{record.colSpan,jdbcType=INTEGER},
      </if>
      <if test="record.rowSpan != null" >
        row_span = #{record.rowSpan,jdbcType=INTEGER},
      </if>
      <if test="record.width != null" >
        width = #{record.width,jdbcType=INTEGER},
      </if>
      <if test="record.height != null" >
        height = #{record.height,jdbcType=INTEGER},
      </if>
      <if test="record.param1 != null" >
        param1 = #{record.param1,jdbcType=VARCHAR},
      </if>
      <if test="record.param2 != null" >
        param2 = #{record.param2,jdbcType=VARCHAR},
      </if>
      <if test="record.param3 != null" >
        param3 = #{record.param3,jdbcType=VARCHAR},
      </if>
      <if test="record.param4 != null" >
        param4 = #{record.param4,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>
    </set>
    <if test="_parameter != null" >
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map" >
    update hfpm_field_show_type
    set hfpm_field_show_type_id = #{record.hfpmFieldShowTypeId,jdbcType=BIGINT},
      hfpm_field_show_type_code = #{record.hfpmFieldShowTypeCode,jdbcType=VARCHAR},
      hfpm_field_show_type_name = #{record.hfpmFieldShowTypeName,jdbcType=VARCHAR},
      pre_str = #{record.preStr,jdbcType=VARCHAR},
      after_str = #{record.afterStr,jdbcType=VARCHAR},
      col_span = #{record.colSpan,jdbcType=INTEGER},
      row_span = #{record.rowSpan,jdbcType=INTEGER},
      width = #{record.width,jdbcType=INTEGER},
      height = #{record.height,jdbcType=INTEGER},
      param1 = #{record.param1,jdbcType=VARCHAR},
      param2 = #{record.param2,jdbcType=VARCHAR},
      param3 = #{record.param3,jdbcType=VARCHAR},
      param4 = #{record.param4,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}
    <if test="_parameter != null" >
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.hframe.domain.model.HfpmFieldShowType" >
    update hfpm_field_show_type
    <set >
      <if test="hfpmFieldShowTypeCode != null" >
        hfpm_field_show_type_code = #{hfpmFieldShowTypeCode,jdbcType=VARCHAR},
      </if>
      <if test="hfpmFieldShowTypeName != null" >
        hfpm_field_show_type_name = #{hfpmFieldShowTypeName,jdbcType=VARCHAR},
      </if>
      <if test="preStr != null" >
        pre_str = #{preStr,jdbcType=VARCHAR},
      </if>
      <if test="afterStr != null" >
        after_str = #{afterStr,jdbcType=VARCHAR},
      </if>
      <if test="colSpan != null" >
        col_span = #{colSpan,jdbcType=INTEGER},
      </if>
      <if test="rowSpan != null" >
        row_span = #{rowSpan,jdbcType=INTEGER},
      </if>
      <if test="width != null" >
        width = #{width,jdbcType=INTEGER},
      </if>
      <if test="height != null" >
        height = #{height,jdbcType=INTEGER},
      </if>
      <if test="param1 != null" >
        param1 = #{param1,jdbcType=VARCHAR},
      </if>
      <if test="param2 != null" >
        param2 = #{param2,jdbcType=VARCHAR},
      </if>
      <if test="param3 != null" >
        param3 = #{param3,jdbcType=VARCHAR},
      </if>
      <if test="param4 != null" >
        param4 = #{param4,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>
    </set>
    where hfpm_field_show_type_id = #{hfpmFieldShowTypeId,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.hframe.domain.model.HfpmFieldShowType" >
    update hfpm_field_show_type
    set hfpm_field_show_type_code = #{hfpmFieldShowTypeCode,jdbcType=VARCHAR},
      hfpm_field_show_type_name = #{hfpmFieldShowTypeName,jdbcType=VARCHAR},
      pre_str = #{preStr,jdbcType=VARCHAR},
      after_str = #{afterStr,jdbcType=VARCHAR},
      col_span = #{colSpan,jdbcType=INTEGER},
      row_span = #{rowSpan,jdbcType=INTEGER},
      width = #{width,jdbcType=INTEGER},
      height = #{height,jdbcType=INTEGER},
      param1 = #{param1,jdbcType=VARCHAR},
      param2 = #{param2,jdbcType=VARCHAR},
      param3 = #{param3,jdbcType=VARCHAR},
      param4 = #{param4,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}
    where hfpm_field_show_type_id = #{hfpmFieldShowTypeId,jdbcType=BIGINT}
  </update>
</mapper>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy