|
@@ -14,6 +14,7 @@
|
|
|
<result column="create_time_" property="createTime"/>
|
|
|
<result column="update_time_" property="updateTime"/>
|
|
|
<result column="payment_order_id_" property="paymentOrderId"/>
|
|
|
+ <result column="kit_group_purchase_type_" property="kitGroupPurchaseType" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -37,8 +38,9 @@
|
|
|
</selectKey>
|
|
|
-->
|
|
|
INSERT INTO student_payment_order_detail
|
|
|
- (id_,type_,goods_id_list_,price_,create_time_,update_time_,payment_order_id_)
|
|
|
- VALUES(#{id},#{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{goodsIdList},#{price},now(),now(),#{paymentOrderId})
|
|
|
+ (id_,type_,goods_id_list_,price_,create_time_,update_time_,payment_order_id_,kit_group_purchase_type_)
|
|
|
+ VALUES(#{id},#{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
+ #{goodsIdList},#{price},now(),now(),#{paymentOrderId},#{kitGroupPurchaseType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler})
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -57,6 +59,9 @@
|
|
|
<if test="paymentOrderId != null">
|
|
|
payment_order_id_ = #{paymentOrderId},
|
|
|
</if>
|
|
|
+ <if test="kitGroupPurchaseType != null">
|
|
|
+ kit_group_purchase_type_ = #{kitGroupPurchaseType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
+ </if>
|
|
|
<if test="type != null">
|
|
|
type_ = #{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
</if>
|
|
@@ -83,10 +88,12 @@
|
|
|
|
|
|
<insert id="batchAdd" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id_">
|
|
|
INSERT INTO student_payment_order_detail
|
|
|
- (id_,type_,goods_id_list_,price_,create_time_,update_time_,payment_order_id_)
|
|
|
+ (id_,type_,goods_id_list_,price_,create_time_,update_time_,payment_order_id_,kit_group_purchase_type_)
|
|
|
VALUES
|
|
|
<foreach collection="studentPaymentOrderDetailList" item="orderDetail" separator=",">
|
|
|
- (#{orderDetail.id},#{orderDetail.type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{orderDetail.goodsIdList},#{orderDetail.price},now(),now(),#{orderDetail.paymentOrderId})
|
|
|
+ (#{orderDetail.id},#{orderDetail.type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
+ #{orderDetail.goodsIdList},#{orderDetail.price},now(),now(),#{orderDetail.paymentOrderId},
|
|
|
+ #{orderDetail.kitGroupPurchaseType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|