INSERT INTO student_apply_refunds
(id_,user_id_,order_no_,status_,expect_amount_,actual_amount_,create_time_,update_time_,orig_payment_order_id_,remark_)
VALUES(#{id},#{userId},#{orderNo},#{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{expectAmount},#{actualAmount},now(),now(),#{origPaymentOrderId},#{remark})
UPDATE student_apply_refunds
status_ = #{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
user_id_ = #{userId},
order_no_ = #{orderNo},
expect_amount_ = #{expectAmount},
update_time_ = NOW(),
orig_payment_order_id_ = #{origPaymentOrderId},
actual_amount_ = #{actualAmount},
remark_ = #{remark},
WHERE id_ = #{id}
DELETE FROM student_apply_refunds WHERE id_ = #{id}