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})
UPDATE student_payment_order_detail
price_ = #{price},
goods_id_list_ = #{goodsIdList},
update_time_ = NOW(),
payment_order_id_ = #{paymentOrderId},
type_ = #{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
WHERE id_ = #{id}
DELETE FROM student_payment_order_detail WHERE id_ = #{id}
INSERT INTO student_payment_order_detail
(id_,type_,goods_id_list_,price_,create_time_,update_time_,payment_order_id_)
VALUES
(#{orderDetail.id},#{orderDetail.type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{orderDetail.goodsIdList},#{orderDetail.price},now(),now(),#{orderDetail.paymentOrderId})