|
@@ -36,13 +36,14 @@
|
|
|
<result column="sa_sellerid" property="sa_sellerid" jdbcType="INTEGER" />
|
|
<result column="sa_sellerid" property="sa_sellerid" jdbcType="INTEGER" />
|
|
|
<result column="sa_currency" property="sa_currency" jdbcType="VARCHAR" />
|
|
<result column="sa_currency" property="sa_currency" jdbcType="VARCHAR" />
|
|
|
<result column="sa_nettotal" property="sa_nettotal" jdbcType="DOUBLE" />
|
|
<result column="sa_nettotal" property="sa_nettotal" jdbcType="DOUBLE" />
|
|
|
|
|
+ <result column="sa_rate" property="sa_rate" jdbcType="DOUBLE" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
<sql id="Base_Column_List" >
|
|
|
sa_id, sa_code, sa_custid, sa_custcode, sa_custname, sa_toplace, sa_total, sa_totalupper,
|
|
sa_id, sa_code, sa_custid, sa_custcode, sa_custname, sa_toplace, sa_total, sa_totalupper,
|
|
|
sa_remark, sa_status, sa_statuscode, sa_sendstatuscode, sa_sendstatus, sa_printstatus,
|
|
sa_remark, sa_status, sa_statuscode, sa_sendstatuscode, sa_sendstatus, sa_printstatus,
|
|
|
- sa_printstatuscode,companyId, updaterId,
|
|
|
|
|
|
|
+ sa_printstatuscode,companyId, updaterId,sa_currency
|
|
|
updateTime, sa_text1, sa_text2, sa_text3, sa_text4, sa_text5,sa_auditman,sa_auditdate,
|
|
updateTime, sa_text1, sa_text2, sa_text3, sa_text4, sa_text5,sa_auditman,sa_auditdate,
|
|
|
- sa_seller,sa_sellercode,sa_date,sa_sellerid
|
|
|
|
|
|
|
+ sa_seller,sa_sellercode,sa_date,sa_sellerid,sa_rate
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
|
|
select * from sale where sa_id = #{id}
|
|
select * from sale where sa_id = #{id}
|
|
@@ -162,6 +163,9 @@
|
|
|
<if test="sa_delivery != null">
|
|
<if test="sa_delivery != null">
|
|
|
sa_delivery,
|
|
sa_delivery,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="sa_rate != null">
|
|
|
|
|
+ sa_rate,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="sa_code != null" >
|
|
<if test="sa_code != null" >
|
|
@@ -251,6 +255,9 @@
|
|
|
<if test="sa_delivery != null" >
|
|
<if test="sa_delivery != null" >
|
|
|
#{sa_delivery,jdbcType=TIMESTAMP},
|
|
#{sa_delivery,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="sa_rate != null" >
|
|
|
|
|
+ #{sa_rate,jdbcType=DOUBLE},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.sale.po.Sale" >
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.sale.po.Sale" >
|
|
@@ -349,6 +356,9 @@
|
|
|
<if test="sa_delivery!=null">
|
|
<if test="sa_delivery!=null">
|
|
|
sa_delivery = #{sa_delivery,jdbcType=TIMESTAMP},
|
|
sa_delivery = #{sa_delivery,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="sa_rate!=null">
|
|
|
|
|
+ sa_rate = #{sa_rate,jdbcType=DOUBLE},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where sa_id = #{id,jdbcType=INTEGER}
|
|
where sa_id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
</update>
|