|
|
|
@ -42,27 +42,29 @@ public interface BsOrderRefundMapper extends BsOrderRefundMapperExt { |
|
|
|
|
"insert into bs_order_refund (mer_id, order_no, ", |
|
|
|
|
"order_child_no, user_id, ", |
|
|
|
|
"user_phone, refund_order_no, ", |
|
|
|
|
"account_merchant_no, refund_pay_channel, ", |
|
|
|
|
"reufnd_pay_type, refund_serial_no, ", |
|
|
|
|
"refund_pay_channel_order_no, refund_price, ", |
|
|
|
|
"refund_integral, refund_remark, ", |
|
|
|
|
"refund_status, refund_fail_reason, ", |
|
|
|
|
"create_time, update_time, ", |
|
|
|
|
"finish_time, op_user_type, ", |
|
|
|
|
"op_user_id, op_user_name, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"account_merchant_no, account_merchant_key, ", |
|
|
|
|
"refund_pay_channel, reufnd_pay_type, ", |
|
|
|
|
"refund_serial_no, refund_pay_channel_order_no, ", |
|
|
|
|
"refund_price, refund_integral, ", |
|
|
|
|
"refund_remark, refund_status, ", |
|
|
|
|
"refund_fail_reason, create_time, ", |
|
|
|
|
"update_time, finish_time, ", |
|
|
|
|
"op_user_type, op_user_id, ", |
|
|
|
|
"op_user_name, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"values (#{merId,jdbcType=BIGINT}, #{orderNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{orderChildNo,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{userPhone,jdbcType=VARCHAR}, #{refundOrderNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{accountMerchantNo,jdbcType=VARCHAR}, #{refundPayChannel,jdbcType=INTEGER}, ", |
|
|
|
|
"#{reufndPayType,jdbcType=INTEGER}, #{refundSerialNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{refundPayChannelOrderNo,jdbcType=VARCHAR}, #{refundPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{refundIntegral,jdbcType=BIGINT}, #{refundRemark,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{refundStatus,jdbcType=INTEGER}, #{refundFailReason,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{finishTime,jdbcType=TIMESTAMP}, #{opUserType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{opUserId,jdbcType=BIGINT}, #{opUserName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"#{accountMerchantNo,jdbcType=VARCHAR}, #{accountMerchantKey,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{refundPayChannel,jdbcType=INTEGER}, #{reufndPayType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{refundSerialNo,jdbcType=VARCHAR}, #{refundPayChannelOrderNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{refundPrice,jdbcType=DECIMAL}, #{refundIntegral,jdbcType=BIGINT}, ", |
|
|
|
|
"#{refundRemark,jdbcType=VARCHAR}, #{refundStatus,jdbcType=INTEGER}, ", |
|
|
|
|
"#{refundFailReason,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{finishTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{opUserType,jdbcType=INTEGER}, #{opUserId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{opUserName,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(BsOrderRefund record); |
|
|
|
@ -81,6 +83,7 @@ public interface BsOrderRefundMapper extends BsOrderRefundMapperExt { |
|
|
|
|
@Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="refund_order_no", property="refundOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="account_merchant_no", property="accountMerchantNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="account_merchant_key", property="accountMerchantKey", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="refund_pay_channel", property="refundPayChannel", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="reufnd_pay_type", property="reufndPayType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="refund_serial_no", property="refundSerialNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -105,10 +108,10 @@ public interface BsOrderRefundMapper extends BsOrderRefundMapperExt { |
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, mer_id, order_no, order_child_no, user_id, user_phone, refund_order_no, ", |
|
|
|
|
"account_merchant_no, refund_pay_channel, reufnd_pay_type, refund_serial_no, ", |
|
|
|
|
"refund_pay_channel_order_no, refund_price, refund_integral, refund_remark, refund_status, ", |
|
|
|
|
"refund_fail_reason, create_time, update_time, finish_time, op_user_type, op_user_id, ", |
|
|
|
|
"op_user_name, ext_1, ext_2, ext_3", |
|
|
|
|
"account_merchant_no, account_merchant_key, refund_pay_channel, reufnd_pay_type, ", |
|
|
|
|
"refund_serial_no, refund_pay_channel_order_no, refund_price, refund_integral, ", |
|
|
|
|
"refund_remark, refund_status, refund_fail_reason, create_time, update_time, ", |
|
|
|
|
"finish_time, op_user_type, op_user_id, op_user_name, ext_1, ext_2, ext_3", |
|
|
|
|
"from bs_order_refund", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -121,6 +124,7 @@ public interface BsOrderRefundMapper extends BsOrderRefundMapperExt { |
|
|
|
|
@Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="refund_order_no", property="refundOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="account_merchant_no", property="accountMerchantNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="account_merchant_key", property="accountMerchantKey", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="refund_pay_channel", property="refundPayChannel", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="reufnd_pay_type", property="reufndPayType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="refund_serial_no", property="refundSerialNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -160,6 +164,7 @@ public interface BsOrderRefundMapper extends BsOrderRefundMapperExt { |
|
|
|
|
"user_phone = #{userPhone,jdbcType=VARCHAR},", |
|
|
|
|
"refund_order_no = #{refundOrderNo,jdbcType=VARCHAR},", |
|
|
|
|
"account_merchant_no = #{accountMerchantNo,jdbcType=VARCHAR},", |
|
|
|
|
"account_merchant_key = #{accountMerchantKey,jdbcType=VARCHAR},", |
|
|
|
|
"refund_pay_channel = #{refundPayChannel,jdbcType=INTEGER},", |
|
|
|
|
"reufnd_pay_type = #{reufndPayType,jdbcType=INTEGER},", |
|
|
|
|
"refund_serial_no = #{refundSerialNo,jdbcType=VARCHAR},", |
|
|
|
|