<?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.TbPlussProvinceMapper">
  <resultMap id="BaseResultMap" type="com.chaozhanggui.dao.system.entity.TbPlussProvince">
    <id column="F_province_no" jdbcType="INTEGER" property="fProvinceNo" />
    <result column="F_province_name" jdbcType="VARCHAR" property="fProvinceName" />
    <result column="F_aliasp" jdbcType="VARCHAR" property="fAliasp" />
    <result column="F_province_cups_no" jdbcType="INTEGER" property="fProvinceCupsNo" />
  </resultMap>
  <sql id="Base_Column_List">
    F_province_no, F_province_name, F_aliasp, F_province_cups_no
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from tb_pluss_province
    where F_province_no = #{fProvinceNo,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    delete from tb_pluss_province
    where F_province_no = #{fProvinceNo,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.chaozhanggui.dao.system.entity.TbPlussProvince">
    insert into tb_pluss_province (F_province_no, F_province_name, F_aliasp, 
      F_province_cups_no)
    values (#{fProvinceNo,jdbcType=INTEGER}, #{fProvinceName,jdbcType=VARCHAR}, #{fAliasp,jdbcType=VARCHAR}, 
      #{fProvinceCupsNo,jdbcType=INTEGER})
  </insert>
  <insert id="insertSelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussProvince">
    insert into tb_pluss_province
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="fProvinceNo != null">
        F_province_no,
      </if>
      <if test="fProvinceName != null">
        F_province_name,
      </if>
      <if test="fAliasp != null">
        F_aliasp,
      </if>
      <if test="fProvinceCupsNo != null">
        F_province_cups_no,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="fProvinceNo != null">
        #{fProvinceNo,jdbcType=INTEGER},
      </if>
      <if test="fProvinceName != null">
        #{fProvinceName,jdbcType=VARCHAR},
      </if>
      <if test="fAliasp != null">
        #{fAliasp,jdbcType=VARCHAR},
      </if>
      <if test="fProvinceCupsNo != null">
        #{fProvinceCupsNo,jdbcType=INTEGER},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussProvince">
    update tb_pluss_province
    <set>
      <if test="fProvinceName != null">
        F_province_name = #{fProvinceName,jdbcType=VARCHAR},
      </if>
      <if test="fAliasp != null">
        F_aliasp = #{fAliasp,jdbcType=VARCHAR},
      </if>
      <if test="fProvinceCupsNo != null">
        F_province_cups_no = #{fProvinceCupsNo,jdbcType=INTEGER},
      </if>
    </set>
    where F_province_no = #{fProvinceNo,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.chaozhanggui.dao.system.entity.TbPlussProvince">
    update tb_pluss_province
    set F_province_name = #{fProvinceName,jdbcType=VARCHAR},
      F_aliasp = #{fAliasp,jdbcType=VARCHAR},
      F_province_cups_no = #{fProvinceCupsNo,jdbcType=INTEGER}
    where F_province_no = #{fProvinceNo,jdbcType=INTEGER}
  </update>
</mapper>