|
@@ -56,15 +56,11 @@
|
|
|
useGeneratedKeys="true">
|
|
|
<!--@mbg.generated-->
|
|
|
insert into sell_order (edu_teacher_id_,organ_id_, cooperation_organ_id_, trans_no_,order_id_, order_no_,
|
|
|
- expect_amount_,
|
|
|
- actual_amount_,
|
|
|
- balance_amount_, type_, goods_id_,goods_name_, sell_cost_, sell_cost2_, num_, user_id_, payment_channel_,
|
|
|
- mer_no_, sell_time_, create_ime_, update_time_)
|
|
|
+ expect_amount_,actual_amount_,balance_amount_, type_, goods_id_,goods_name_, sell_cost_, sell_cost2_, num_, user_id_, payment_channel_,
|
|
|
+ mer_no_,batch_no_,stock_type_,account_type_, sell_time_, create_ime_, update_time_)
|
|
|
values (#{eduTeacherId},#{organId}, #{cooperationOrganId}, #{transNo}, #{orderNo},#{orderId}, #{expectAmount},
|
|
|
- #{actualAmount},
|
|
|
- #{balanceAmount}, #{type}, #{goodsId}, #{goodsName}, #{sellCost}, #{sellCost2}, #{num}, #{userId},
|
|
|
- #{paymentChannel},
|
|
|
- #{merNo}, #{sellTime}, #{createIme}, #{updateTime})
|
|
|
+ #{actualAmount}, #{balanceAmount}, #{type}, #{goodsId}, #{goodsName}, #{sellCost}, #{sellCost2}, #{num}, #{userId},
|
|
|
+ #{paymentChannel}, #{merNo},#{batchNo},#{stockType},#{accountType}, #{sellTime}, #{createIme}, #{updateTime})
|
|
|
</insert>
|
|
|
<update id="update" parameterType="com.ym.mec.biz.dal.entity.SellOrder">
|
|
|
<!--@mbg.generated-->
|
|
@@ -98,7 +94,7 @@
|
|
|
balance_amount_ = #{balanceAmount},
|
|
|
</if>
|
|
|
<if test="type != null">
|
|
|
- type_ = #{type},
|
|
|
+ type_ = #{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
</if>
|
|
|
<if test="goodsId != null">
|
|
|
goods_id_ = #{goodsId},
|
|
@@ -124,6 +120,15 @@
|
|
|
<if test="merNo != null">
|
|
|
mer_no_ = #{merNo},
|
|
|
</if>
|
|
|
+ <if test="batchNo != null">
|
|
|
+ batch_no_ = #{batchNo},
|
|
|
+ </if>
|
|
|
+ <if test="stockType != null">
|
|
|
+ stock_type_ = #{stockType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
+ </if>
|
|
|
+ <if test="accountType != null">
|
|
|
+ account_type_ = #{accountType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
+ </if>
|
|
|
<if test="sellTime != null">
|
|
|
sell_time_ = #{sellTime},
|
|
|
</if>
|
|
@@ -139,15 +144,15 @@
|
|
|
|
|
|
<insert id="batchInsert" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id_">
|
|
|
insert into sell_order (organ_id_, cooperation_organ_id_, trans_no_,order_id_, order_no_, expect_amount_,
|
|
|
- actual_amount_,
|
|
|
- balance_amount_, type_, goods_id_,goods_name_, sell_cost_, sell_cost2_, num_, user_id_, payment_channel_,
|
|
|
- mer_no_, sell_time_,edu_teacher_id_, create_ime_, update_time_)
|
|
|
+ actual_amount_,balance_amount_, type_, goods_id_,goods_name_, sell_cost_, sell_cost2_, num_, user_id_, payment_channel_,
|
|
|
+ mer_no_,batch_no_,stock_type_,account_type_, sell_time_,edu_teacher_id_, create_ime_, update_time_)
|
|
|
VALUE
|
|
|
<foreach collection="sellOrders" separator="," item="sellOrder">
|
|
|
(#{sellOrder.organId},#{sellOrder.cooperationOrganId},#{sellOrder.transNo},#{sellOrder.orderId},#{sellOrder.orderNo},
|
|
|
#{sellOrder.expectAmount},#{sellOrder.actualAmount},#{sellOrder.balanceAmount},#{sellOrder.type},#{sellOrder.goodsId},
|
|
|
#{sellOrder.goodsName},#{sellOrder.sellCost},#{sellOrder.sellCost2},#{sellOrder.num},#{sellOrder.userId},
|
|
|
- #{sellOrder.paymentChannel},#{sellOrder.merNo},#{sellOrder.sellTime},#{sellOrder.eduTeacherId},NOW(),NOW())
|
|
|
+ #{sellOrder.paymentChannel},#{sellOrder.merNo},#{sellOrder.batchNo},#{sellOrder.stockType},#{sellOrder.accountType},
|
|
|
+ #{sellOrder.sellTime},#{sellOrder.eduTeacherId},NOW(),NOW())
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|