惠支付服务
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gratia-pay-parent/service/src/main/java/com/hfkj/dao/BsTradeOrderMapper.java

431 lines
30 KiB

package com.hfkj.dao;
import com.hfkj.entity.BsTradeOrder;
import com.hfkj.entity.BsTradeOrderExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;
import org.springframework.stereotype.Repository;
/**
*
* 代码由工具生成,请勿修改!!!
* 如果需要扩展请在其父类进行扩展
*
**/
@Repository
public interface BsTradeOrderMapper extends BsTradeOrderMapperExt {
@SelectProvider(type=BsTradeOrderSqlProvider.class, method="countByExample")
long countByExample(BsTradeOrderExample example);
@DeleteProvider(type=BsTradeOrderSqlProvider.class, method="deleteByExample")
int deleteByExample(BsTradeOrderExample example);
@Delete({
"delete from bs_trade_order",
"where id = #{id,jdbcType=BIGINT}"
})
int deleteByPrimaryKey(Long id);
@Insert({
"insert into bs_trade_order (company_id, agent_id, ",
"salesman_id, salesman_name, ",
"mer_id, mer_name, mer_abbreviate, ",
"mer_no, store_id, store_name, ",
"device_id, device_sn, ",
"qr_code_id, qr_code_sn, ",
"platform_type, platform_mer_no, ",
"platform_trade_no, platform_log_no, ",
"platform_appid, platform_rate, ",
"platform_commission, pay_appid, ",
"pay_user_id, pay_mode, ",
"out_trade_no, trade_amount, ",
"store_discount_satisfy, store_discount_id, ",
"store_discount_name, store_discount_type, ",
"store_discount_condition, store_discount_price, ",
"store_discount_final_cost_price, 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, ",
"rebate_activity_part, rebate_activity_id, ",
"rebate_activity_no, rebate_activity_type, ",
"rebate_activity_preferential_type, rebate_activity_price, ",
"rebate_activity_actual_price, trade_actual_amount, ",
"income_amount, 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, period_status, ",
"period_bank_code, period_bank_name, ",
"period_num, pay_time, ",
"timeout_express, subject, ",
"pay_notify_url, attach, ",
"special_field, refund_type, ",
"refund_price, create_type, ",
"trans_type, create_time, ",
"cancel_time, update_time, ",
"request_ip, 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}, #{merAbbreviate,jdbcType=VARCHAR}, ",
"#{merNo,jdbcType=VARCHAR}, #{storeId,jdbcType=BIGINT}, #{storeName,jdbcType=VARCHAR}, ",
"#{deviceId,jdbcType=BIGINT}, #{deviceSn,jdbcType=VARCHAR}, ",
"#{qrCodeId,jdbcType=BIGINT}, #{qrCodeSn,jdbcType=VARCHAR}, ",
"#{platformType,jdbcType=INTEGER}, #{platformMerNo,jdbcType=VARCHAR}, ",
"#{platformTradeNo,jdbcType=VARCHAR}, #{platformLogNo,jdbcType=VARCHAR}, ",
"#{platformAppid,jdbcType=VARCHAR}, #{platformRate,jdbcType=DECIMAL}, ",
"#{platformCommission,jdbcType=DECIMAL}, #{payAppid,jdbcType=VARCHAR}, ",
"#{payUserId,jdbcType=VARCHAR}, #{payMode,jdbcType=VARCHAR}, ",
"#{outTradeNo,jdbcType=VARCHAR}, #{tradeAmount,jdbcType=DECIMAL}, ",
"#{storeDiscountSatisfy,jdbcType=BIT}, #{storeDiscountId,jdbcType=BIGINT}, ",
"#{storeDiscountName,jdbcType=VARCHAR}, #{storeDiscountType,jdbcType=INTEGER}, ",
"#{storeDiscountCondition,jdbcType=DECIMAL}, #{storeDiscountPrice,jdbcType=DECIMAL}, ",
"#{storeDiscountFinalCostPrice,jdbcType=DECIMAL}, #{storeDiscountActualPrice,jdbcType=DECIMAL}, ",
"#{storeDiscountProfitPrice,jdbcType=DECIMAL}, #{userId,jdbcType=INTEGER}, ",
"#{userPhone,jdbcType=VARCHAR}, #{userDiscountId,jdbcType=BIGINT}, ",
"#{userDiscountName,jdbcType=VARCHAR}, #{userDiscountType,jdbcType=INTEGER}, ",
"#{userDiscountPrice,jdbcType=DECIMAL}, #{userDiscountActualPrice,jdbcType=DECIMAL}, ",
"#{rebateActivityPart,jdbcType=BIT}, #{rebateActivityId,jdbcType=BIGINT}, ",
"#{rebateActivityNo,jdbcType=VARCHAR}, #{rebateActivityType,jdbcType=INTEGER}, ",
"#{rebateActivityPreferentialType,jdbcType=INTEGER}, #{rebateActivityPrice,jdbcType=DECIMAL}, ",
"#{rebateActivityActualPrice,jdbcType=DECIMAL}, #{tradeActualAmount,jdbcType=DECIMAL}, ",
"#{incomeAmount,jdbcType=DECIMAL}, #{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}, #{periodStatus,jdbcType=BIT}, ",
"#{periodBankCode,jdbcType=VARCHAR}, #{periodBankName,jdbcType=VARCHAR}, ",
"#{periodNum,jdbcType=INTEGER}, #{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}, ",
"#{transType,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ",
"#{cancelTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ",
"#{requestIp,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, ",
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})"
})
@Options(useGeneratedKeys=true,keyProperty="id")
int insert(BsTradeOrder record);
@InsertProvider(type=BsTradeOrderSqlProvider.class, method="insertSelective")
@Options(useGeneratedKeys=true,keyProperty="id")
int insertSelective(BsTradeOrder record);
@SelectProvider(type=BsTradeOrderSqlProvider.class, method="selectByExample")
@Results({
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT),
@Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT),
@Result(column="salesman_id", property="salesmanId", jdbcType=JdbcType.BIGINT),
@Result(column="salesman_name", property="salesmanName", jdbcType=JdbcType.VARCHAR),
@Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT),
@Result(column="mer_name", property="merName", jdbcType=JdbcType.VARCHAR),
@Result(column="mer_abbreviate", property="merAbbreviate", jdbcType=JdbcType.VARCHAR),
@Result(column="mer_no", property="merNo", jdbcType=JdbcType.VARCHAR),
@Result(column="store_id", property="storeId", jdbcType=JdbcType.BIGINT),
@Result(column="store_name", property="storeName", jdbcType=JdbcType.VARCHAR),
@Result(column="device_id", property="deviceId", jdbcType=JdbcType.BIGINT),
@Result(column="device_sn", property="deviceSn", jdbcType=JdbcType.VARCHAR),
@Result(column="qr_code_id", property="qrCodeId", jdbcType=JdbcType.BIGINT),
@Result(column="qr_code_sn", property="qrCodeSn", jdbcType=JdbcType.VARCHAR),
@Result(column="platform_type", property="platformType", jdbcType=JdbcType.INTEGER),
@Result(column="platform_mer_no", property="platformMerNo", jdbcType=JdbcType.VARCHAR),
@Result(column="platform_trade_no", property="platformTradeNo", jdbcType=JdbcType.VARCHAR),
@Result(column="platform_log_no", property="platformLogNo", jdbcType=JdbcType.VARCHAR),
@Result(column="platform_appid", property="platformAppid", jdbcType=JdbcType.VARCHAR),
@Result(column="platform_rate", property="platformRate", jdbcType=JdbcType.DECIMAL),
@Result(column="platform_commission", property="platformCommission", jdbcType=JdbcType.DECIMAL),
@Result(column="pay_appid", property="payAppid", jdbcType=JdbcType.VARCHAR),
@Result(column="pay_user_id", property="payUserId", jdbcType=JdbcType.VARCHAR),
@Result(column="pay_mode", property="payMode", jdbcType=JdbcType.VARCHAR),
@Result(column="out_trade_no", property="outTradeNo", jdbcType=JdbcType.VARCHAR),
@Result(column="trade_amount", property="tradeAmount", jdbcType=JdbcType.DECIMAL),
@Result(column="store_discount_satisfy", property="storeDiscountSatisfy", jdbcType=JdbcType.BIT),
@Result(column="store_discount_id", property="storeDiscountId", jdbcType=JdbcType.BIGINT),
@Result(column="store_discount_name", property="storeDiscountName", jdbcType=JdbcType.VARCHAR),
@Result(column="store_discount_type", property="storeDiscountType", jdbcType=JdbcType.INTEGER),
@Result(column="store_discount_condition", property="storeDiscountCondition", jdbcType=JdbcType.DECIMAL),
@Result(column="store_discount_price", property="storeDiscountPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="store_discount_final_cost_price", property="storeDiscountFinalCostPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="store_discount_actual_price", property="storeDiscountActualPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="store_discount_profit_price", property="storeDiscountProfitPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="user_id", property="userId", jdbcType=JdbcType.INTEGER),
@Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR),
@Result(column="user_discount_id", property="userDiscountId", jdbcType=JdbcType.BIGINT),
@Result(column="user_discount_name", property="userDiscountName", jdbcType=JdbcType.VARCHAR),
@Result(column="user_discount_type", property="userDiscountType", jdbcType=JdbcType.INTEGER),
@Result(column="user_discount_price", property="userDiscountPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="user_discount_actual_price", property="userDiscountActualPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="rebate_activity_part", property="rebateActivityPart", jdbcType=JdbcType.BIT),
@Result(column="rebate_activity_id", property="rebateActivityId", jdbcType=JdbcType.BIGINT),
@Result(column="rebate_activity_no", property="rebateActivityNo", jdbcType=JdbcType.VARCHAR),
@Result(column="rebate_activity_type", property="rebateActivityType", jdbcType=JdbcType.INTEGER),
@Result(column="rebate_activity_preferential_type", property="rebateActivityPreferentialType", jdbcType=JdbcType.INTEGER),
@Result(column="rebate_activity_price", property="rebateActivityPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="rebate_activity_actual_price", property="rebateActivityActualPrice", jdbcType=JdbcType.DECIMAL),
@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),
@Result(column="fee_rate", property="feeRate", jdbcType=JdbcType.DECIMAL),
@Result(column="settle_amount", property="settleAmount", jdbcType=JdbcType.DECIMAL),
@Result(column="settle_date", property="settleDate", jdbcType=JdbcType.DATE),
@Result(column="acc_payment_code", property="accPaymentCode", jdbcType=JdbcType.VARCHAR),
@Result(column="card_type", property="cardType", jdbcType=JdbcType.VARCHAR),
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
@Result(column="profit_sharing_status", property="profitSharingStatus", jdbcType=JdbcType.BIT),
@Result(column="period_status", property="periodStatus", jdbcType=JdbcType.BIT),
@Result(column="period_bank_code", property="periodBankCode", jdbcType=JdbcType.VARCHAR),
@Result(column="period_bank_name", property="periodBankName", jdbcType=JdbcType.VARCHAR),
@Result(column="period_num", property="periodNum", jdbcType=JdbcType.INTEGER),
@Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="timeout_express", property="timeoutExpress", jdbcType=JdbcType.INTEGER),
@Result(column="subject", property="subject", jdbcType=JdbcType.VARCHAR),
@Result(column="pay_notify_url", property="payNotifyUrl", jdbcType=JdbcType.VARCHAR),
@Result(column="attach", property="attach", jdbcType=JdbcType.VARCHAR),
@Result(column="special_field", property="specialField", jdbcType=JdbcType.VARCHAR),
@Result(column="refund_type", property="refundType", jdbcType=JdbcType.INTEGER),
@Result(column="refund_price", property="refundPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="create_type", property="createType", jdbcType=JdbcType.INTEGER),
@Result(column="trans_type", property="transType", jdbcType=JdbcType.VARCHAR),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="cancel_time", property="cancelTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="request_ip", property="requestIp", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR)
})
List<BsTradeOrder> selectByExample(BsTradeOrderExample example);
@Select({
"select",
"id, company_id, agent_id, salesman_id, salesman_name, mer_id, mer_name, mer_abbreviate, ",
"mer_no, store_id, store_name, device_id, device_sn, qr_code_id, qr_code_sn, ",
"platform_type, platform_mer_no, platform_trade_no, platform_log_no, platform_appid, ",
"platform_rate, platform_commission, pay_appid, pay_user_id, pay_mode, out_trade_no, ",
"trade_amount, store_discount_satisfy, store_discount_id, store_discount_name, ",
"store_discount_type, store_discount_condition, store_discount_price, store_discount_final_cost_price, ",
"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, rebate_activity_part, rebate_activity_id, rebate_activity_no, ",
"rebate_activity_type, rebate_activity_preferential_type, rebate_activity_price, ",
"rebate_activity_actual_price, trade_actual_amount, income_amount, 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, ",
"period_status, period_bank_code, period_bank_name, period_num, pay_time, timeout_express, ",
"subject, pay_notify_url, attach, special_field, refund_type, refund_price, create_type, ",
"trans_type, create_time, cancel_time, update_time, request_ip, ext_1, ext_2, ",
"ext_3",
"from bs_trade_order",
"where id = #{id,jdbcType=BIGINT}"
})
@Results({
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT),
@Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT),
@Result(column="salesman_id", property="salesmanId", jdbcType=JdbcType.BIGINT),
@Result(column="salesman_name", property="salesmanName", jdbcType=JdbcType.VARCHAR),
@Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT),
@Result(column="mer_name", property="merName", jdbcType=JdbcType.VARCHAR),
@Result(column="mer_abbreviate", property="merAbbreviate", jdbcType=JdbcType.VARCHAR),
@Result(column="mer_no", property="merNo", jdbcType=JdbcType.VARCHAR),
@Result(column="store_id", property="storeId", jdbcType=JdbcType.BIGINT),
@Result(column="store_name", property="storeName", jdbcType=JdbcType.VARCHAR),
@Result(column="device_id", property="deviceId", jdbcType=JdbcType.BIGINT),
@Result(column="device_sn", property="deviceSn", jdbcType=JdbcType.VARCHAR),
@Result(column="qr_code_id", property="qrCodeId", jdbcType=JdbcType.BIGINT),
@Result(column="qr_code_sn", property="qrCodeSn", jdbcType=JdbcType.VARCHAR),
@Result(column="platform_type", property="platformType", jdbcType=JdbcType.INTEGER),
@Result(column="platform_mer_no", property="platformMerNo", jdbcType=JdbcType.VARCHAR),
@Result(column="platform_trade_no", property="platformTradeNo", jdbcType=JdbcType.VARCHAR),
@Result(column="platform_log_no", property="platformLogNo", jdbcType=JdbcType.VARCHAR),
@Result(column="platform_appid", property="platformAppid", jdbcType=JdbcType.VARCHAR),
@Result(column="platform_rate", property="platformRate", jdbcType=JdbcType.DECIMAL),
@Result(column="platform_commission", property="platformCommission", jdbcType=JdbcType.DECIMAL),
@Result(column="pay_appid", property="payAppid", jdbcType=JdbcType.VARCHAR),
@Result(column="pay_user_id", property="payUserId", jdbcType=JdbcType.VARCHAR),
@Result(column="pay_mode", property="payMode", jdbcType=JdbcType.VARCHAR),
@Result(column="out_trade_no", property="outTradeNo", jdbcType=JdbcType.VARCHAR),
@Result(column="trade_amount", property="tradeAmount", jdbcType=JdbcType.DECIMAL),
@Result(column="store_discount_satisfy", property="storeDiscountSatisfy", jdbcType=JdbcType.BIT),
@Result(column="store_discount_id", property="storeDiscountId", jdbcType=JdbcType.BIGINT),
@Result(column="store_discount_name", property="storeDiscountName", jdbcType=JdbcType.VARCHAR),
@Result(column="store_discount_type", property="storeDiscountType", jdbcType=JdbcType.INTEGER),
@Result(column="store_discount_condition", property="storeDiscountCondition", jdbcType=JdbcType.DECIMAL),
@Result(column="store_discount_price", property="storeDiscountPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="store_discount_final_cost_price", property="storeDiscountFinalCostPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="store_discount_actual_price", property="storeDiscountActualPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="store_discount_profit_price", property="storeDiscountProfitPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="user_id", property="userId", jdbcType=JdbcType.INTEGER),
@Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR),
@Result(column="user_discount_id", property="userDiscountId", jdbcType=JdbcType.BIGINT),
@Result(column="user_discount_name", property="userDiscountName", jdbcType=JdbcType.VARCHAR),
@Result(column="user_discount_type", property="userDiscountType", jdbcType=JdbcType.INTEGER),
@Result(column="user_discount_price", property="userDiscountPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="user_discount_actual_price", property="userDiscountActualPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="rebate_activity_part", property="rebateActivityPart", jdbcType=JdbcType.BIT),
@Result(column="rebate_activity_id", property="rebateActivityId", jdbcType=JdbcType.BIGINT),
@Result(column="rebate_activity_no", property="rebateActivityNo", jdbcType=JdbcType.VARCHAR),
@Result(column="rebate_activity_type", property="rebateActivityType", jdbcType=JdbcType.INTEGER),
@Result(column="rebate_activity_preferential_type", property="rebateActivityPreferentialType", jdbcType=JdbcType.INTEGER),
@Result(column="rebate_activity_price", property="rebateActivityPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="rebate_activity_actual_price", property="rebateActivityActualPrice", jdbcType=JdbcType.DECIMAL),
@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),
@Result(column="fee_rate", property="feeRate", jdbcType=JdbcType.DECIMAL),
@Result(column="settle_amount", property="settleAmount", jdbcType=JdbcType.DECIMAL),
@Result(column="settle_date", property="settleDate", jdbcType=JdbcType.DATE),
@Result(column="acc_payment_code", property="accPaymentCode", jdbcType=JdbcType.VARCHAR),
@Result(column="card_type", property="cardType", jdbcType=JdbcType.VARCHAR),
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
@Result(column="profit_sharing_status", property="profitSharingStatus", jdbcType=JdbcType.BIT),
@Result(column="period_status", property="periodStatus", jdbcType=JdbcType.BIT),
@Result(column="period_bank_code", property="periodBankCode", jdbcType=JdbcType.VARCHAR),
@Result(column="period_bank_name", property="periodBankName", jdbcType=JdbcType.VARCHAR),
@Result(column="period_num", property="periodNum", jdbcType=JdbcType.INTEGER),
@Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="timeout_express", property="timeoutExpress", jdbcType=JdbcType.INTEGER),
@Result(column="subject", property="subject", jdbcType=JdbcType.VARCHAR),
@Result(column="pay_notify_url", property="payNotifyUrl", jdbcType=JdbcType.VARCHAR),
@Result(column="attach", property="attach", jdbcType=JdbcType.VARCHAR),
@Result(column="special_field", property="specialField", jdbcType=JdbcType.VARCHAR),
@Result(column="refund_type", property="refundType", jdbcType=JdbcType.INTEGER),
@Result(column="refund_price", property="refundPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="create_type", property="createType", jdbcType=JdbcType.INTEGER),
@Result(column="trans_type", property="transType", jdbcType=JdbcType.VARCHAR),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="cancel_time", property="cancelTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="request_ip", property="requestIp", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR)
})
BsTradeOrder selectByPrimaryKey(Long id);
@UpdateProvider(type=BsTradeOrderSqlProvider.class, method="updateByExampleSelective")
int updateByExampleSelective(@Param("record") BsTradeOrder record, @Param("example") BsTradeOrderExample example);
@UpdateProvider(type=BsTradeOrderSqlProvider.class, method="updateByExample")
int updateByExample(@Param("record") BsTradeOrder record, @Param("example") BsTradeOrderExample example);
@UpdateProvider(type=BsTradeOrderSqlProvider.class, method="updateByPrimaryKeySelective")
int updateByPrimaryKeySelective(BsTradeOrder record);
@Update({
"update bs_trade_order",
"set company_id = #{companyId,jdbcType=BIGINT},",
"agent_id = #{agentId,jdbcType=BIGINT},",
"salesman_id = #{salesmanId,jdbcType=BIGINT},",
"salesman_name = #{salesmanName,jdbcType=VARCHAR},",
"mer_id = #{merId,jdbcType=BIGINT},",
"mer_name = #{merName,jdbcType=VARCHAR},",
"mer_abbreviate = #{merAbbreviate,jdbcType=VARCHAR},",
"mer_no = #{merNo,jdbcType=VARCHAR},",
"store_id = #{storeId,jdbcType=BIGINT},",
"store_name = #{storeName,jdbcType=VARCHAR},",
"device_id = #{deviceId,jdbcType=BIGINT},",
"device_sn = #{deviceSn,jdbcType=VARCHAR},",
"qr_code_id = #{qrCodeId,jdbcType=BIGINT},",
"qr_code_sn = #{qrCodeSn,jdbcType=VARCHAR},",
"platform_type = #{platformType,jdbcType=INTEGER},",
"platform_mer_no = #{platformMerNo,jdbcType=VARCHAR},",
"platform_trade_no = #{platformTradeNo,jdbcType=VARCHAR},",
"platform_log_no = #{platformLogNo,jdbcType=VARCHAR},",
"platform_appid = #{platformAppid,jdbcType=VARCHAR},",
"platform_rate = #{platformRate,jdbcType=DECIMAL},",
"platform_commission = #{platformCommission,jdbcType=DECIMAL},",
"pay_appid = #{payAppid,jdbcType=VARCHAR},",
"pay_user_id = #{payUserId,jdbcType=VARCHAR},",
"pay_mode = #{payMode,jdbcType=VARCHAR},",
"out_trade_no = #{outTradeNo,jdbcType=VARCHAR},",
"trade_amount = #{tradeAmount,jdbcType=DECIMAL},",
"store_discount_satisfy = #{storeDiscountSatisfy,jdbcType=BIT},",
"store_discount_id = #{storeDiscountId,jdbcType=BIGINT},",
"store_discount_name = #{storeDiscountName,jdbcType=VARCHAR},",
"store_discount_type = #{storeDiscountType,jdbcType=INTEGER},",
"store_discount_condition = #{storeDiscountCondition,jdbcType=DECIMAL},",
"store_discount_price = #{storeDiscountPrice,jdbcType=DECIMAL},",
"store_discount_final_cost_price = #{storeDiscountFinalCostPrice,jdbcType=DECIMAL},",
"store_discount_actual_price = #{storeDiscountActualPrice,jdbcType=DECIMAL},",
"store_discount_profit_price = #{storeDiscountProfitPrice,jdbcType=DECIMAL},",
"user_id = #{userId,jdbcType=INTEGER},",
"user_phone = #{userPhone,jdbcType=VARCHAR},",
"user_discount_id = #{userDiscountId,jdbcType=BIGINT},",
"user_discount_name = #{userDiscountName,jdbcType=VARCHAR},",
"user_discount_type = #{userDiscountType,jdbcType=INTEGER},",
"user_discount_price = #{userDiscountPrice,jdbcType=DECIMAL},",
"user_discount_actual_price = #{userDiscountActualPrice,jdbcType=DECIMAL},",
"rebate_activity_part = #{rebateActivityPart,jdbcType=BIT},",
"rebate_activity_id = #{rebateActivityId,jdbcType=BIGINT},",
"rebate_activity_no = #{rebateActivityNo,jdbcType=VARCHAR},",
"rebate_activity_type = #{rebateActivityType,jdbcType=INTEGER},",
"rebate_activity_preferential_type = #{rebateActivityPreferentialType,jdbcType=INTEGER},",
"rebate_activity_price = #{rebateActivityPrice,jdbcType=DECIMAL},",
"rebate_activity_actual_price = #{rebateActivityActualPrice,jdbcType=DECIMAL},",
"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},",
"fee_rate = #{feeRate,jdbcType=DECIMAL},",
"settle_amount = #{settleAmount,jdbcType=DECIMAL},",
"settle_date = #{settleDate,jdbcType=DATE},",
"acc_payment_code = #{accPaymentCode,jdbcType=VARCHAR},",
"card_type = #{cardType,jdbcType=VARCHAR},",
"`status` = #{status,jdbcType=INTEGER},",
"profit_sharing_status = #{profitSharingStatus,jdbcType=BIT},",
"period_status = #{periodStatus,jdbcType=BIT},",
"period_bank_code = #{periodBankCode,jdbcType=VARCHAR},",
"period_bank_name = #{periodBankName,jdbcType=VARCHAR},",
"period_num = #{periodNum,jdbcType=INTEGER},",
"pay_time = #{payTime,jdbcType=TIMESTAMP},",
"timeout_express = #{timeoutExpress,jdbcType=INTEGER},",
"subject = #{subject,jdbcType=VARCHAR},",
"pay_notify_url = #{payNotifyUrl,jdbcType=VARCHAR},",
"attach = #{attach,jdbcType=VARCHAR},",
"special_field = #{specialField,jdbcType=VARCHAR},",
"refund_type = #{refundType,jdbcType=INTEGER},",
"refund_price = #{refundPrice,jdbcType=DECIMAL},",
"create_type = #{createType,jdbcType=INTEGER},",
"trans_type = #{transType,jdbcType=VARCHAR},",
"create_time = #{createTime,jdbcType=TIMESTAMP},",
"cancel_time = #{cancelTime,jdbcType=TIMESTAMP},",
"update_time = #{updateTime,jdbcType=TIMESTAMP},",
"request_ip = #{requestIp,jdbcType=VARCHAR},",
"ext_1 = #{ext1,jdbcType=VARCHAR},",
"ext_2 = #{ext2,jdbcType=VARCHAR},",
"ext_3 = #{ext3,jdbcType=VARCHAR}",
"where id = #{id,jdbcType=BIGINT}"
})
int updateByPrimaryKey(BsTradeOrder record);
}