|
|
@@ -159,6 +159,9 @@
|
|
|
<if test="sa_nettotal != null">
|
|
|
sa_nettotal,
|
|
|
</if>
|
|
|
+ <if test="sa_delivery != null">
|
|
|
+ sa_delivery,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="sa_code != null" >
|
|
|
@@ -245,6 +248,9 @@
|
|
|
<if test="sa_nettotal != null" >
|
|
|
#{sa_nettotal,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
+ <if test="sa_delivery != null" >
|
|
|
+ #{sa_delivery,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.sale.po.Sale" >
|
|
|
@@ -706,4 +712,8 @@
|
|
|
</if>
|
|
|
|
|
|
</select>
|
|
|
+
|
|
|
+ <update id="updateDelivery" parameterType="long">
|
|
|
+ update saledetail set sd_delivery = (select sa_delivery from sale where sa_id=#{id}) where sdsaid=#{id} and sa_delivery is null
|
|
|
+ </update>
|
|
|
</mapper>
|