<?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.fuxi.ws.data.dao.PossalesdetailMapper" >
  <resultMap id="BaseResultMap" type="com.fuxi.ws.data.entity.Possalesdetail" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Tue Dec 09 15:15:10 CST 2014.
    -->
    <id column="POSSalesDetailID" property="possalesdetailid" jdbcType="INTEGER" />
    <result column="POSSalesID" property="possalesid" jdbcType="VARCHAR" />
    <result column="SN" property="sn" jdbcType="INTEGER" />
    <result column="GoodsBarcode" property="goodsbarcode" jdbcType="VARCHAR" />
    <result column="GoodsID" property="goodsid" jdbcType="VARCHAR" />
    <result column="ColorID" property="colorid" jdbcType="VARCHAR" />
    <result column="SizeID" property="sizeid" jdbcType="VARCHAR" />
    <result column="Quantity" property="quantity" jdbcType="INTEGER" />
    <result column="UnitPrice" property="unitprice" jdbcType="DECIMAL" />
    <result column="DiscountRate" property="discountrate" jdbcType="DECIMAL" />
    <result column="Discount" property="discount" jdbcType="DECIMAL" />
    <result column="Amount" property="amount" jdbcType="DECIMAL" />
    <result column="SpecialPriceFlag" property="specialpriceflag" jdbcType="BIT" />
    <result column="HireRate" property="hirerate" jdbcType="DECIMAL" />
    <result column="SupplierAmount" property="supplieramount" jdbcType="DECIMAL" />
    <result column="DeptDiscountRate" property="deptdiscountrate" jdbcType="DECIMAL" />
    <result column="DeptAmount" property="deptamount" jdbcType="DECIMAL" />
    <result column="EmployeeID" property="employeeid" jdbcType="VARCHAR" />
    <result column="POSSalesNo" property="possalesno" jdbcType="VARCHAR" />
    <result column="BackAudit" property="backaudit" jdbcType="VARCHAR" />
    <result column="SPID" property="spid" jdbcType="VARCHAR" />
    <result column="Memo" property="memo" jdbcType="VARCHAR" />
    <result column="RecordFlag" property="recordflag" jdbcType="INTEGER" />
    <result column="SPID2" property="spid2" jdbcType="VARCHAR" />
    <result column="SPID3" property="spid3" jdbcType="VARCHAR" />
    <result column="SPID4" property="spid4" jdbcType="VARCHAR" />
    <result column="SPID5" property="spid5" jdbcType="VARCHAR" />
    <result column="SPID6" property="spid6" jdbcType="VARCHAR" />
    <result column="RetailSales" property="retailsales" jdbcType="DECIMAL" />
    <result column="RetailAmount" property="retailamount" jdbcType="DECIMAL" />
    <result column="DelFlag" property="delflag" jdbcType="SMALLINT" />
    <result column="FixMoney" property="fixmoney" jdbcType="DECIMAL" />
    <result column="SPID7" property="spid7" jdbcType="VARCHAR" />
    <result column="PointRate" property="pointrate" jdbcType="DECIMAL" />
    <result column="FactAmount" property="factamount" jdbcType="DECIMAL" />
    <result column="FixedFlag" property="fixedflag" jdbcType="INTEGER" />
    <result column="DepartmentID" property="departmentid" jdbcType="VARCHAR" />
    <result column="Type" property="type" jdbcType="VARCHAR" />
    <result column="VIPID" property="vipid" jdbcType="VARCHAR" />
    <result column="NonTaxUnitPrice" property="nontaxunitprice" jdbcType="DECIMAL" />
    <result column="GoodsKind" property="goodskind" jdbcType="VARCHAR" />
  </resultMap>
  <sql id="Example_Where_Clause" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Tue Dec 09 15:15:10 CST 2014.
    -->
    <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="Base_Column_List" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Tue Dec 09 15:15:10 CST 2014.
    -->
    POSSalesDetailID, POSSalesID, SN, GoodsBarcode, GoodsID, ColorID, SizeID, Quantity, 
    UnitPrice, DiscountRate, Discount, Amount, SpecialPriceFlag, HireRate, SupplierAmount, 
    DeptDiscountRate, DeptAmount, EmployeeID, POSSalesNo, BackAudit, SPID, Memo, RecordFlag, 
    SPID2, SPID3, SPID4, SPID5, SPID6, RetailSales, RetailAmount, DelFlag, FixMoney, 
    SPID7, PointRate, FactAmount, FixedFlag, DepartmentID, Type, VIPID, NonTaxUnitPrice, 
    GoodsKind
  </sql>
  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.fuxi.ws.data.entity.PossalesdetailExample" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Tue Dec 09 15:15:10 CST 2014.
    -->
    select
    <if test="distinct" >
      distinct
    </if>
    'false' as QUERYID,
    <include refid="Base_Column_List" />
    from POSSalesDetail
    <if test="_parameter != null" >
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null" >
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Tue Dec 09 15:15:10 CST 2014.
    -->
    select 
    <include refid="Base_Column_List" />
    from POSSalesDetail
    where POSSalesDetailID = #{possalesdetailid,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Tue Dec 09 15:15:10 CST 2014.
    -->
    delete from POSSalesDetail
    where POSSalesDetailID = #{possalesdetailid,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.fuxi.ws.data.entity.Possalesdetail" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Tue Dec 09 15:15:10 CST 2014.
    -->
    insert into POSSalesDetail (POSSalesDetailID, POSSalesID, SN, 
      GoodsBarcode, GoodsID, ColorID, 
      SizeID, Quantity, UnitPrice, 
      DiscountRate, Discount, Amount, 
      SpecialPriceFlag, HireRate, SupplierAmount, 
      DeptDiscountRate, DeptAmount, EmployeeID, 
      POSSalesNo, BackAudit, SPID, 
      Memo, RecordFlag, SPID2, 
      SPID3, SPID4, SPID5, 
      SPID6, RetailSales, RetailAmount, 
      DelFlag, FixMoney, SPID7, 
      PointRate, FactAmount, FixedFlag, 
      DepartmentID, Type, VIPID, 
      NonTaxUnitPrice, GoodsKind)
    values (#{possalesdetailid,jdbcType=INTEGER}, #{possalesid,jdbcType=VARCHAR}, #{sn,jdbcType=INTEGER}, 
      #{goodsbarcode,jdbcType=VARCHAR}, #{goodsid,jdbcType=VARCHAR}, #{colorid,jdbcType=VARCHAR}, 
      #{sizeid,jdbcType=VARCHAR}, #{quantity,jdbcType=INTEGER}, #{unitprice,jdbcType=DECIMAL}, 
      #{discountrate,jdbcType=DECIMAL}, #{discount,jdbcType=DECIMAL}, #{amount,jdbcType=DECIMAL}, 
      #{specialpriceflag,jdbcType=BIT}, #{hirerate,jdbcType=DECIMAL}, #{supplieramount,jdbcType=DECIMAL}, 
      #{deptdiscountrate,jdbcType=DECIMAL}, #{deptamount,jdbcType=DECIMAL}, #{employeeid,jdbcType=VARCHAR}, 
      #{possalesno,jdbcType=VARCHAR}, #{backaudit,jdbcType=VARCHAR}, #{spid,jdbcType=VARCHAR}, 
      #{memo,jdbcType=VARCHAR}, #{recordflag,jdbcType=INTEGER}, #{spid2,jdbcType=VARCHAR}, 
      #{spid3,jdbcType=VARCHAR}, #{spid4,jdbcType=VARCHAR}, #{spid5,jdbcType=VARCHAR}, 
      #{spid6,jdbcType=VARCHAR}, #{retailsales,jdbcType=DECIMAL}, #{retailamount,jdbcType=DECIMAL}, 
      #{delflag,jdbcType=SMALLINT}, #{fixmoney,jdbcType=DECIMAL}, #{spid7,jdbcType=VARCHAR}, 
      #{pointrate,jdbcType=DECIMAL}, #{factamount,jdbcType=DECIMAL}, #{fixedflag,jdbcType=INTEGER}, 
      #{departmentid,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{vipid,jdbcType=VARCHAR}, 
      #{nontaxunitprice,jdbcType=DECIMAL}, #{goodskind,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.fuxi.ws.data.entity.Possalesdetail" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Tue Dec 09 15:15:10 CST 2014.
    -->
    insert into POSSalesDetail
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="possalesdetailid != null" >
        POSSalesDetailID,
      </if>
      <if test="possalesid != null" >
        POSSalesID,
      </if>
      <if test="sn != null" >
        SN,
      </if>
      <if test="goodsbarcode != null" >
        GoodsBarcode,
      </if>
      <if test="goodsid != null" >
        GoodsID,
      </if>
      <if test="colorid != null" >
        ColorID,
      </if>
      <if test="sizeid != null" >
        SizeID,
      </if>
      <if test="quantity != null" >
        Quantity,
      </if>
      <if test="unitprice != null" >
        UnitPrice,
      </if>
      <if test="discountrate != null" >
        DiscountRate,
      </if>
      <if test="discount != null" >
        Discount,
      </if>
      <if test="amount != null" >
        Amount,
      </if>
      <if test="specialpriceflag != null" >
        SpecialPriceFlag,
      </if>
      <if test="hirerate != null" >
        HireRate,
      </if>
      <if test="supplieramount != null" >
        SupplierAmount,
      </if>
      <if test="deptdiscountrate != null" >
        DeptDiscountRate,
      </if>
      <if test="deptamount != null" >
        DeptAmount,
      </if>
      <if test="employeeid != null" >
        EmployeeID,
      </if>
      <if test="possalesno != null" >
        POSSalesNo,
      </if>
      <if test="backaudit != null" >
        BackAudit,
      </if>
      <if test="spid != null" >
        SPID,
      </if>
      <if test="memo != null" >
        Memo,
      </if>
      <if test="recordflag != null" >
        RecordFlag,
      </if>
      <if test="spid2 != null" >
        SPID2,
      </if>
      <if test="spid3 != null" >
        SPID3,
      </if>
      <if test="spid4 != null" >
        SPID4,
      </if>
      <if test="spid5 != null" >
        SPID5,
      </if>
      <if test="spid6 != null" >
        SPID6,
      </if>
      <if test="retailsales != null" >
        RetailSales,
      </if>
      <if test="retailamount != null" >
        RetailAmount,
      </if>
      <if test="delflag != null" >
        DelFlag,
      </if>
      <if test="fixmoney != null" >
        FixMoney,
      </if>
      <if test="spid7 != null" >
        SPID7,
      </if>
      <if test="pointrate != null" >
        PointRate,
      </if>
      <if test="factamount != null" >
        FactAmount,
      </if>
      <if test="fixedflag != null" >
        FixedFlag,
      </if>
      <if test="departmentid != null" >
        DepartmentID,
      </if>
      <if test="type != null" >
        Type,
      </if>
      <if test="vipid != null" >
        VIPID,
      </if>
      <if test="nontaxunitprice != null" >
        NonTaxUnitPrice,
      </if>
      <if test="goodskind != null" >
        GoodsKind,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="possalesdetailid != null" >
        #{possalesdetailid,jdbcType=INTEGER},
      </if>
      <if test="possalesid != null" >
        #{possalesid,jdbcType=VARCHAR},
      </if>
      <if test="sn != null" >
        #{sn,jdbcType=INTEGER},
      </if>
      <if test="goodsbarcode != null" >
        #{goodsbarcode,jdbcType=VARCHAR},
      </if>
      <if test="goodsid != null" >
        #{goodsid,jdbcType=VARCHAR},
      </if>
      <if test="colorid != null" >
        #{colorid,jdbcType=VARCHAR},
      </if>
      <if test="sizeid != null" >
        #{sizeid,jdbcType=VARCHAR},
      </if>
      <if test="quantity != null" >
        #{quantity,jdbcType=INTEGER},
      </if>
      <if test="unitprice != null" >
        #{unitprice,jdbcType=DECIMAL},
      </if>
      <if test="discountrate != null" >
        #{discountrate,jdbcType=DECIMAL},
      </if>
      <if test="discount != null" >
        #{discount,jdbcType=DECIMAL},
      </if>
      <if test="amount != null" >
        #{amount,jdbcType=DECIMAL},
      </if>
      <if test="specialpriceflag != null" >
        #{specialpriceflag,jdbcType=BIT},
      </if>
      <if test="hirerate != null" >
        #{hirerate,jdbcType=DECIMAL},
      </if>
      <if test="supplieramount != null" >
        #{supplieramount,jdbcType=DECIMAL},
      </if>
      <if test="deptdiscountrate != null" >
        #{deptdiscountrate,jdbcType=DECIMAL},
      </if>
      <if test="deptamount != null" >
        #{deptamount,jdbcType=DECIMAL},
      </if>
      <if test="employeeid != null" >
        #{employeeid,jdbcType=VARCHAR},
      </if>
      <if test="possalesno != null" >
        #{possalesno,jdbcType=VARCHAR},
      </if>
      <if test="backaudit != null" >
        #{backaudit,jdbcType=VARCHAR},
      </if>
      <if test="spid != null" >
        #{spid,jdbcType=VARCHAR},
      </if>
      <if test="memo != null" >
        #{memo,jdbcType=VARCHAR},
      </if>
      <if test="recordflag != null" >
        #{recordflag,jdbcType=INTEGER},
      </if>
      <if test="spid2 != null" >
        #{spid2,jdbcType=VARCHAR},
      </if>
      <if test="spid3 != null" >
        #{spid3,jdbcType=VARCHAR},
      </if>
      <if test="spid4 != null" >
        #{spid4,jdbcType=VARCHAR},
      </if>
      <if test="spid5 != null" >
        #{spid5,jdbcType=VARCHAR},
      </if>
      <if test="spid6 != null" >
        #{spid6,jdbcType=VARCHAR},
      </if>
      <if test="retailsales != null" >
        #{retailsales,jdbcType=DECIMAL},
      </if>
      <if test="retailamount != null" >
        #{retailamount,jdbcType=DECIMAL},
      </if>
      <if test="delflag != null" >
        #{delflag,jdbcType=SMALLINT},
      </if>
      <if test="fixmoney != null" >
        #{fixmoney,jdbcType=DECIMAL},
      </if>
      <if test="spid7 != null" >
        #{spid7,jdbcType=VARCHAR},
      </if>
      <if test="pointrate != null" >
        #{pointrate,jdbcType=DECIMAL},
      </if>
      <if test="factamount != null" >
        #{factamount,jdbcType=DECIMAL},
      </if>
      <if test="fixedflag != null" >
        #{fixedflag,jdbcType=INTEGER},
      </if>
      <if test="departmentid != null" >
        #{departmentid,jdbcType=VARCHAR},
      </if>
      <if test="type != null" >
        #{type,jdbcType=VARCHAR},
      </if>
      <if test="vipid != null" >
        #{vipid,jdbcType=VARCHAR},
      </if>
      <if test="nontaxunitprice != null" >
        #{nontaxunitprice,jdbcType=DECIMAL},
      </if>
      <if test="goodskind != null" >
        #{goodskind,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.fuxi.ws.data.entity.PossalesdetailExample" resultType="java.lang.Integer" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Tue Dec 09 15:15:10 CST 2014.
    -->
    select count(*) from POSSalesDetail
    <if test="_parameter != null" >
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByPrimaryKeySelective" parameterType="com.fuxi.ws.data.entity.Possalesdetail" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Tue Dec 09 15:15:10 CST 2014.
    -->
    update POSSalesDetail
    <set >
      <if test="possalesid != null" >
        POSSalesID = #{possalesid,jdbcType=VARCHAR},
      </if>
      <if test="sn != null" >
        SN = #{sn,jdbcType=INTEGER},
      </if>
      <if test="goodsbarcode != null" >
        GoodsBarcode = #{goodsbarcode,jdbcType=VARCHAR},
      </if>
      <if test="goodsid != null" >
        GoodsID = #{goodsid,jdbcType=VARCHAR},
      </if>
      <if test="colorid != null" >
        ColorID = #{colorid,jdbcType=VARCHAR},
      </if>
      <if test="sizeid != null" >
        SizeID = #{sizeid,jdbcType=VARCHAR},
      </if>
      <if test="quantity != null" >
        Quantity = #{quantity,jdbcType=INTEGER},
      </if>
      <if test="unitprice != null" >
        UnitPrice = #{unitprice,jdbcType=DECIMAL},
      </if>
      <if test="discountrate != null" >
        DiscountRate = #{discountrate,jdbcType=DECIMAL},
      </if>
      <if test="discount != null" >
        Discount = #{discount,jdbcType=DECIMAL},
      </if>
      <if test="amount != null" >
        Amount = #{amount,jdbcType=DECIMAL},
      </if>
      <if test="specialpriceflag != null" >
        SpecialPriceFlag = #{specialpriceflag,jdbcType=BIT},
      </if>
      <if test="hirerate != null" >
        HireRate = #{hirerate,jdbcType=DECIMAL},
      </if>
      <if test="supplieramount != null" >
        SupplierAmount = #{supplieramount,jdbcType=DECIMAL},
      </if>
      <if test="deptdiscountrate != null" >
        DeptDiscountRate = #{deptdiscountrate,jdbcType=DECIMAL},
      </if>
      <if test="deptamount != null" >
        DeptAmount = #{deptamount,jdbcType=DECIMAL},
      </if>
      <if test="employeeid != null" >
        EmployeeID = #{employeeid,jdbcType=VARCHAR},
      </if>
      <if test="possalesno != null" >
        POSSalesNo = #{possalesno,jdbcType=VARCHAR},
      </if>
      <if test="backaudit != null" >
        BackAudit = #{backaudit,jdbcType=VARCHAR},
      </if>
      <if test="spid != null" >
        SPID = #{spid,jdbcType=VARCHAR},
      </if>
      <if test="memo != null" >
        Memo = #{memo,jdbcType=VARCHAR},
      </if>
      <if test="recordflag != null" >
        RecordFlag = #{recordflag,jdbcType=INTEGER},
      </if>
      <if test="spid2 != null" >
        SPID2 = #{spid2,jdbcType=VARCHAR},
      </if>
      <if test="spid3 != null" >
        SPID3 = #{spid3,jdbcType=VARCHAR},
      </if>
      <if test="spid4 != null" >
        SPID4 = #{spid4,jdbcType=VARCHAR},
      </if>
      <if test="spid5 != null" >
        SPID5 = #{spid5,jdbcType=VARCHAR},
      </if>
      <if test="spid6 != null" >
        SPID6 = #{spid6,jdbcType=VARCHAR},
      </if>
      <if test="retailsales != null" >
        RetailSales = #{retailsales,jdbcType=DECIMAL},
      </if>
      <if test="retailamount != null" >
        RetailAmount = #{retailamount,jdbcType=DECIMAL},
      </if>
      <if test="delflag != null" >
        DelFlag = #{delflag,jdbcType=SMALLINT},
      </if>
      <if test="fixmoney != null" >
        FixMoney = #{fixmoney,jdbcType=DECIMAL},
      </if>
      <if test="spid7 != null" >
        SPID7 = #{spid7,jdbcType=VARCHAR},
      </if>
      <if test="pointrate != null" >
        PointRate = #{pointrate,jdbcType=DECIMAL},
      </if>
      <if test="factamount != null" >
        FactAmount = #{factamount,jdbcType=DECIMAL},
      </if>
      <if test="fixedflag != null" >
        FixedFlag = #{fixedflag,jdbcType=INTEGER},
      </if>
      <if test="departmentid != null" >
        DepartmentID = #{departmentid,jdbcType=VARCHAR},
      </if>
      <if test="type != null" >
        Type = #{type,jdbcType=VARCHAR},
      </if>
      <if test="vipid != null" >
        VIPID = #{vipid,jdbcType=VARCHAR},
      </if>
      <if test="nontaxunitprice != null" >
        NonTaxUnitPrice = #{nontaxunitprice,jdbcType=DECIMAL},
      </if>
      <if test="goodskind != null" >
        GoodsKind = #{goodskind,jdbcType=VARCHAR},
      </if>
    </set>
    where POSSalesDetailID = #{possalesdetailid,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.fuxi.ws.data.entity.Possalesdetail" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Tue Dec 09 15:15:10 CST 2014.
    -->
    update POSSalesDetail
    set POSSalesID = #{possalesid,jdbcType=VARCHAR},
      SN = #{sn,jdbcType=INTEGER},
      GoodsBarcode = #{goodsbarcode,jdbcType=VARCHAR},
      GoodsID = #{goodsid,jdbcType=VARCHAR},
      ColorID = #{colorid,jdbcType=VARCHAR},
      SizeID = #{sizeid,jdbcType=VARCHAR},
      Quantity = #{quantity,jdbcType=INTEGER},
      UnitPrice = #{unitprice,jdbcType=DECIMAL},
      DiscountRate = #{discountrate,jdbcType=DECIMAL},
      Discount = #{discount,jdbcType=DECIMAL},
      Amount = #{amount,jdbcType=DECIMAL},
      SpecialPriceFlag = #{specialpriceflag,jdbcType=BIT},
      HireRate = #{hirerate,jdbcType=DECIMAL},
      SupplierAmount = #{supplieramount,jdbcType=DECIMAL},
      DeptDiscountRate = #{deptdiscountrate,jdbcType=DECIMAL},
      DeptAmount = #{deptamount,jdbcType=DECIMAL},
      EmployeeID = #{employeeid,jdbcType=VARCHAR},
      POSSalesNo = #{possalesno,jdbcType=VARCHAR},
      BackAudit = #{backaudit,jdbcType=VARCHAR},
      SPID = #{spid,jdbcType=VARCHAR},
      Memo = #{memo,jdbcType=VARCHAR},
      RecordFlag = #{recordflag,jdbcType=INTEGER},
      SPID2 = #{spid2,jdbcType=VARCHAR},
      SPID3 = #{spid3,jdbcType=VARCHAR},
      SPID4 = #{spid4,jdbcType=VARCHAR},
      SPID5 = #{spid5,jdbcType=VARCHAR},
      SPID6 = #{spid6,jdbcType=VARCHAR},
      RetailSales = #{retailsales,jdbcType=DECIMAL},
      RetailAmount = #{retailamount,jdbcType=DECIMAL},
      DelFlag = #{delflag,jdbcType=SMALLINT},
      FixMoney = #{fixmoney,jdbcType=DECIMAL},
      SPID7 = #{spid7,jdbcType=VARCHAR},
      PointRate = #{pointrate,jdbcType=DECIMAL},
      FactAmount = #{factamount,jdbcType=DECIMAL},
      FixedFlag = #{fixedflag,jdbcType=INTEGER},
      DepartmentID = #{departmentid,jdbcType=VARCHAR},
      Type = #{type,jdbcType=VARCHAR},
      VIPID = #{vipid,jdbcType=VARCHAR},
      NonTaxUnitPrice = #{nontaxunitprice,jdbcType=DECIMAL},
      GoodsKind = #{goodskind,jdbcType=VARCHAR}
    where POSSalesDetailID = #{possalesdetailid,jdbcType=INTEGER}
  </update>
</mapper>