<?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.chaozhanggui.dao.system.dao.TbPlussAreaMapper">
  <resultMap id="BaseResultMap" type="com.chaozhanggui.dao.system.entity.TbPlussArea">
    <id column="F_area_no" jdbcType="INTEGER" property="fAreaNo" />
    <result column="F_area_name" jdbcType="VARCHAR" property="fAreaName" />
    <result column="F_aliasa" jdbcType="VARCHAR" property="fAliasa" />
    <result column="F_area_cups_no" jdbcType="INTEGER" property="fAreaCupsNo" />
    <result column="F_city_no" jdbcType="INTEGER" property="fCityNo" />
    <result column="F_x" jdbcType="VARCHAR" property="fX" />
    <result column="F_y" jdbcType="VARCHAR" property="fY" />
  </resultMap>
  <sql id="Base_Column_List">
    F_area_no, F_area_name, F_aliasa, F_area_cups_no, F_city_no, F_x, F_y
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from tb_pluss_area
    where F_area_no = #{fAreaNo,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    delete from tb_pluss_area
    where F_area_no = #{fAreaNo,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.chaozhanggui.dao.system.entity.TbPlussArea">
    insert into tb_pluss_area (F_area_no, F_area_name, F_aliasa, 
      F_area_cups_no, F_city_no, F_x, 
      F_y)
    values (#{fAreaNo,jdbcType=INTEGER}, #{fAreaName,jdbcType=VARCHAR}, #{fAliasa,jdbcType=VARCHAR}, 
      #{fAreaCupsNo,jdbcType=INTEGER}, #{fCityNo,jdbcType=INTEGER}, #{fX,jdbcType=VARCHAR}, 
      #{fY,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussArea">
    insert into tb_pluss_area
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="fAreaNo != null">
        F_area_no,
      </if>
      <if test="fAreaName != null">
        F_area_name,
      </if>
      <if test="fAliasa != null">
        F_aliasa,
      </if>
      <if test="fAreaCupsNo != null">
        F_area_cups_no,
      </if>
      <if test="fCityNo != null">
        F_city_no,
      </if>
      <if test="fX != null">
        F_x,
      </if>
      <if test="fY != null">
        F_y,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="fAreaNo != null">
        #{fAreaNo,jdbcType=INTEGER},
      </if>
      <if test="fAreaName != null">
        #{fAreaName,jdbcType=VARCHAR},
      </if>
      <if test="fAliasa != null">
        #{fAliasa,jdbcType=VARCHAR},
      </if>
      <if test="fAreaCupsNo != null">
        #{fAreaCupsNo,jdbcType=INTEGER},
      </if>
      <if test="fCityNo != null">
        #{fCityNo,jdbcType=INTEGER},
      </if>
      <if test="fX != null">
        #{fX,jdbcType=VARCHAR},
      </if>
      <if test="fY != null">
        #{fY,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussArea">
    update tb_pluss_area
    <set>
      <if test="fAreaName != null">
        F_area_name = #{fAreaName,jdbcType=VARCHAR},
      </if>
      <if test="fAliasa != null">
        F_aliasa = #{fAliasa,jdbcType=VARCHAR},
      </if>
      <if test="fAreaCupsNo != null">
        F_area_cups_no = #{fAreaCupsNo,jdbcType=INTEGER},
      </if>
      <if test="fCityNo != null">
        F_city_no = #{fCityNo,jdbcType=INTEGER},
      </if>
      <if test="fX != null">
        F_x = #{fX,jdbcType=VARCHAR},
      </if>
      <if test="fY != null">
        F_y = #{fY,jdbcType=VARCHAR},
      </if>
    </set>
    where F_area_no = #{fAreaNo,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.chaozhanggui.dao.system.entity.TbPlussArea">
    update tb_pluss_area
    set F_area_name = #{fAreaName,jdbcType=VARCHAR},
      F_aliasa = #{fAliasa,jdbcType=VARCHAR},
      F_area_cups_no = #{fAreaCupsNo,jdbcType=INTEGER},
      F_city_no = #{fCityNo,jdbcType=INTEGER},
      F_x = #{fX,jdbcType=VARCHAR},
      F_y = #{fY,jdbcType=VARCHAR}
    where F_area_no = #{fAreaNo,jdbcType=INTEGER}
  </update>
</mapper>