|
|
|
@ -60,19 +60,19 @@ public interface BsTradeOrderMapper extends BsTradeOrderMapperExt { |
|
|
|
|
"user_discount_name, user_discount_type, ", |
|
|
|
|
"user_discount_price, user_discount_actual_price, ", |
|
|
|
|
"trade_actual_amount, income_amount, ", |
|
|
|
|
"acc_trade_no, acc_mdiscount_amount, ", |
|
|
|
|
"acc_discount_amount, shd_fee_amt, ", |
|
|
|
|
"fee_rate, settle_amount, ", |
|
|
|
|
"settle_date, acc_payment_code, ", |
|
|
|
|
"card_type, `status`, ", |
|
|
|
|
"profit_sharing_status, pay_time, ", |
|
|
|
|
"timeout_express, subject, ", |
|
|
|
|
"pay_notify_url, attach, ", |
|
|
|
|
"special_field, refund_type, ", |
|
|
|
|
"refund_price, create_type, ", |
|
|
|
|
"create_time, cancel_time, ", |
|
|
|
|
"update_time, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"acc_trade_no, acc_settle_amount, ", |
|
|
|
|
"acc_mdiscount_amount, acc_discount_amount, ", |
|
|
|
|
"shd_fee_amt, fee_rate, ", |
|
|
|
|
"settle_amount, settle_date, ", |
|
|
|
|
"acc_payment_code, card_type, ", |
|
|
|
|
"`status`, profit_sharing_status, ", |
|
|
|
|
"pay_time, timeout_express, ", |
|
|
|
|
"subject, pay_notify_url, ", |
|
|
|
|
"attach, special_field, ", |
|
|
|
|
"refund_type, refund_price, ", |
|
|
|
|
"create_type, create_time, ", |
|
|
|
|
"cancel_time, update_time, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"values (#{companyId,jdbcType=BIGINT}, #{agentId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{salesmanId,jdbcType=BIGINT}, #{salesmanName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{merId,jdbcType=BIGINT}, #{merName,jdbcType=VARCHAR}, #{merNo,jdbcType=VARCHAR}, ", |
|
|
|
@ -94,19 +94,19 @@ public interface BsTradeOrderMapper extends BsTradeOrderMapperExt { |
|
|
|
|
"#{userDiscountName,jdbcType=VARCHAR}, #{userDiscountType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{userDiscountPrice,jdbcType=DECIMAL}, #{userDiscountActualPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{tradeActualAmount,jdbcType=DECIMAL}, #{incomeAmount,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{accTradeNo,jdbcType=VARCHAR}, #{accMdiscountAmount,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{accDiscountAmount,jdbcType=DECIMAL}, #{shdFeeAmt,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{feeRate,jdbcType=DECIMAL}, #{settleAmount,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{settleDate,jdbcType=DATE}, #{accPaymentCode,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{cardType,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
|
"#{profitSharingStatus,jdbcType=BIT}, #{payTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{timeoutExpress,jdbcType=INTEGER}, #{subject,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{payNotifyUrl,jdbcType=VARCHAR}, #{attach,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{specialField,jdbcType=VARCHAR}, #{refundType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{refundPrice,jdbcType=DECIMAL}, #{createType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{cancelTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"#{accTradeNo,jdbcType=VARCHAR}, #{accSettleAmount,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{accMdiscountAmount,jdbcType=DECIMAL}, #{accDiscountAmount,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{shdFeeAmt,jdbcType=DECIMAL}, #{feeRate,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{settleAmount,jdbcType=DECIMAL}, #{settleDate,jdbcType=DATE}, ", |
|
|
|
|
"#{accPaymentCode,jdbcType=VARCHAR}, #{cardType,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{profitSharingStatus,jdbcType=BIT}, ", |
|
|
|
|
"#{payTime,jdbcType=TIMESTAMP}, #{timeoutExpress,jdbcType=INTEGER}, ", |
|
|
|
|
"#{subject,jdbcType=VARCHAR}, #{payNotifyUrl,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{attach,jdbcType=VARCHAR}, #{specialField,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{refundType,jdbcType=INTEGER}, #{refundPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{createType,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{cancelTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(BsTradeOrder record); |
|
|
|
@ -162,6 +162,7 @@ public interface BsTradeOrderMapper extends BsTradeOrderMapperExt { |
|
|
|
|
@Result(column="trade_actual_amount", property="tradeActualAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="income_amount", property="incomeAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="acc_trade_no", property="accTradeNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="acc_settle_amount", property="accSettleAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="acc_mdiscount_amount", property="accMdiscountAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="acc_discount_amount", property="accDiscountAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="shd_fee_amt", property="shdFeeAmt", jdbcType=JdbcType.DECIMAL), |
|
|
|
@ -201,9 +202,9 @@ public interface BsTradeOrderMapper extends BsTradeOrderMapperExt { |
|
|
|
|
"store_discount_actual_price, store_discount_profit_price, user_id, user_phone, ", |
|
|
|
|
"user_discount_id, user_discount_name, user_discount_type, user_discount_price, ", |
|
|
|
|
"user_discount_actual_price, trade_actual_amount, income_amount, acc_trade_no, ", |
|
|
|
|
"acc_mdiscount_amount, acc_discount_amount, shd_fee_amt, fee_rate, settle_amount, ", |
|
|
|
|
"settle_date, acc_payment_code, card_type, `status`, profit_sharing_status, pay_time, ", |
|
|
|
|
"timeout_express, subject, pay_notify_url, attach, special_field, refund_type, ", |
|
|
|
|
"acc_settle_amount, acc_mdiscount_amount, acc_discount_amount, shd_fee_amt, fee_rate, ", |
|
|
|
|
"settle_amount, settle_date, acc_payment_code, card_type, `status`, profit_sharing_status, ", |
|
|
|
|
"pay_time, timeout_express, subject, pay_notify_url, attach, special_field, refund_type, ", |
|
|
|
|
"refund_price, create_type, create_time, cancel_time, update_time, ext_1, ext_2, ", |
|
|
|
|
"ext_3", |
|
|
|
|
"from bs_trade_order", |
|
|
|
@ -255,6 +256,7 @@ public interface BsTradeOrderMapper extends BsTradeOrderMapperExt { |
|
|
|
|
@Result(column="trade_actual_amount", property="tradeActualAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="income_amount", property="incomeAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="acc_trade_no", property="accTradeNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="acc_settle_amount", property="accSettleAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="acc_mdiscount_amount", property="accMdiscountAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="acc_discount_amount", property="accDiscountAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="shd_fee_amt", property="shdFeeAmt", jdbcType=JdbcType.DECIMAL), |
|
|
|
@ -338,6 +340,7 @@ public interface BsTradeOrderMapper extends BsTradeOrderMapperExt { |
|
|
|
|
"trade_actual_amount = #{tradeActualAmount,jdbcType=DECIMAL},", |
|
|
|
|
"income_amount = #{incomeAmount,jdbcType=DECIMAL},", |
|
|
|
|
"acc_trade_no = #{accTradeNo,jdbcType=VARCHAR},", |
|
|
|
|
"acc_settle_amount = #{accSettleAmount,jdbcType=DECIMAL},", |
|
|
|
|
"acc_mdiscount_amount = #{accMdiscountAmount,jdbcType=DECIMAL},", |
|
|
|
|
"acc_discount_amount = #{accDiscountAmount,jdbcType=DECIMAL},", |
|
|
|
|
"shd_fee_amt = #{shdFeeAmt,jdbcType=DECIMAL},", |
|
|
|
|