|
|
|
@ -7,6 +7,7 @@ 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; |
|
|
|
@ -38,10 +39,9 @@ public interface BsOrderMeituanMapper extends BsOrderMeituanMapperExt { |
|
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into bs_order_meituan (id, order_no, ", |
|
|
|
|
"child_order_no, trade_no, ", |
|
|
|
|
"sqt_biz_order_id, mer_id, ", |
|
|
|
|
"mer_name, user_id, ", |
|
|
|
|
"insert into bs_order_meituan (order_no, child_order_no, ", |
|
|
|
|
"trade_no, sqt_biz_order_id, ", |
|
|
|
|
"mer_id, mer_name, user_id, ", |
|
|
|
|
"user_phone, first_business_type, ", |
|
|
|
|
"second_business_type, ent_id, ", |
|
|
|
|
"img, goods_name, ", |
|
|
|
@ -50,21 +50,21 @@ public interface BsOrderMeituanMapper extends BsOrderMeituanMapperExt { |
|
|
|
|
"coupon_discount_price, integral_discount_price, ", |
|
|
|
|
"platform_code, notify_url, ", |
|
|
|
|
"return_url, pay_real_price, ", |
|
|
|
|
"ent_pay_amount, business_discount_pay_amount, ", |
|
|
|
|
"service_fee_amount, service_price, ", |
|
|
|
|
"pay_channel, pay_serial_no, ", |
|
|
|
|
"pay_type, `status`, ", |
|
|
|
|
"meituan_status, staff_info, ", |
|
|
|
|
"business_info, trade_expiring_time, ", |
|
|
|
|
"create_time, pay_time, ", |
|
|
|
|
"cancel_time, refund_time, ", |
|
|
|
|
"finish_time, update_time, ", |
|
|
|
|
"exception_status, exception_msg, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"values (#{id,jdbcType=BIGINT}, #{orderNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{childOrderNo,jdbcType=VARCHAR}, #{tradeNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{sqtBizOrderId,jdbcType=VARCHAR}, #{merId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{merName,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, ", |
|
|
|
|
"ent_pay_amount, trade_amount, ", |
|
|
|
|
"business_discount_pay_amount, service_fee_amount, ", |
|
|
|
|
"service_price, pay_channel, ", |
|
|
|
|
"pay_serial_no, pay_type, ", |
|
|
|
|
"`status`, meituan_status, ", |
|
|
|
|
"staff_info, business_info, ", |
|
|
|
|
"trade_expiring_time, create_time, ", |
|
|
|
|
"pay_time, cancel_time, ", |
|
|
|
|
"refund_time, finish_time, ", |
|
|
|
|
"update_time, exception_status, ", |
|
|
|
|
"exception_msg, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"values (#{orderNo,jdbcType=VARCHAR}, #{childOrderNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{tradeNo,jdbcType=VARCHAR}, #{sqtBizOrderId,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{merId,jdbcType=BIGINT}, #{merName,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{userPhone,jdbcType=VARCHAR}, #{firstBusinessType,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{secondBusinessType,jdbcType=VARCHAR}, #{entId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{img,jdbcType=VARCHAR}, #{goodsName,jdbcType=VARCHAR}, ", |
|
|
|
@ -73,21 +73,24 @@ public interface BsOrderMeituanMapper extends BsOrderMeituanMapperExt { |
|
|
|
|
"#{couponDiscountPrice,jdbcType=DECIMAL}, #{integralDiscountPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{platformCode,jdbcType=VARCHAR}, #{notifyUrl,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{returnUrl,jdbcType=VARCHAR}, #{payRealPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{entPayAmount,jdbcType=DECIMAL}, #{businessDiscountPayAmount,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{serviceFeeAmount,jdbcType=DECIMAL}, #{servicePrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{payChannel,jdbcType=INTEGER}, #{paySerialNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{payType,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, ", |
|
|
|
|
"#{meituanStatus,jdbcType=INTEGER}, #{staffInfo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{businessInfo,jdbcType=VARCHAR}, #{tradeExpiringTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{payTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{cancelTime,jdbcType=TIMESTAMP}, #{refundTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{finishTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{exceptionStatus,jdbcType=BIT}, #{exceptionMsg,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"#{entPayAmount,jdbcType=DECIMAL}, #{tradeAmount,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{businessDiscountPayAmount,jdbcType=DECIMAL}, #{serviceFeeAmount,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{servicePrice,jdbcType=DECIMAL}, #{payChannel,jdbcType=INTEGER}, ", |
|
|
|
|
"#{paySerialNo,jdbcType=VARCHAR}, #{payType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{meituanStatus,jdbcType=INTEGER}, ", |
|
|
|
|
"#{staffInfo,jdbcType=VARCHAR}, #{businessInfo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{tradeExpiringTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{payTime,jdbcType=TIMESTAMP}, #{cancelTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{refundTime,jdbcType=TIMESTAMP}, #{finishTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{exceptionStatus,jdbcType=BIT}, ", |
|
|
|
|
"#{exceptionMsg,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(BsOrderMeituan record); |
|
|
|
|
|
|
|
|
|
@InsertProvider(type=BsOrderMeituanSqlProvider.class, method="insertSelective") |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insertSelective(BsOrderMeituan record); |
|
|
|
|
|
|
|
|
|
@SelectProvider(type=BsOrderMeituanSqlProvider.class, method="selectByExample") |
|
|
|
@ -117,6 +120,7 @@ public interface BsOrderMeituanMapper extends BsOrderMeituanMapperExt { |
|
|
|
|
@Result(column="return_url", property="returnUrl", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="pay_real_price", property="payRealPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="ent_pay_amount", property="entPayAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="trade_amount", property="tradeAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="business_discount_pay_amount", property="businessDiscountPayAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="service_fee_amount", property="serviceFeeAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="service_price", property="servicePrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@ -148,10 +152,11 @@ public interface BsOrderMeituanMapper extends BsOrderMeituanMapperExt { |
|
|
|
|
"user_id, user_phone, first_business_type, second_business_type, ent_id, img, ", |
|
|
|
|
"goods_name, trace_id, goods_count, total_price, total_deduction_price, coupon_discount_price, ", |
|
|
|
|
"integral_discount_price, platform_code, notify_url, return_url, pay_real_price, ", |
|
|
|
|
"ent_pay_amount, business_discount_pay_amount, service_fee_amount, service_price, ", |
|
|
|
|
"pay_channel, pay_serial_no, pay_type, `status`, meituan_status, staff_info, ", |
|
|
|
|
"business_info, trade_expiring_time, create_time, pay_time, cancel_time, refund_time, ", |
|
|
|
|
"finish_time, update_time, exception_status, exception_msg, ext_1, ext_2, ext_3", |
|
|
|
|
"ent_pay_amount, trade_amount, business_discount_pay_amount, service_fee_amount, ", |
|
|
|
|
"service_price, pay_channel, pay_serial_no, pay_type, `status`, meituan_status, ", |
|
|
|
|
"staff_info, business_info, trade_expiring_time, create_time, pay_time, cancel_time, ", |
|
|
|
|
"refund_time, finish_time, update_time, exception_status, exception_msg, ext_1, ", |
|
|
|
|
"ext_2, ext_3", |
|
|
|
|
"from bs_order_meituan", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -181,6 +186,7 @@ public interface BsOrderMeituanMapper extends BsOrderMeituanMapperExt { |
|
|
|
|
@Result(column="return_url", property="returnUrl", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="pay_real_price", property="payRealPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="ent_pay_amount", property="entPayAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="trade_amount", property="tradeAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="business_discount_pay_amount", property="businessDiscountPayAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="service_fee_amount", property="serviceFeeAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="service_price", property="servicePrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@ -241,6 +247,7 @@ public interface BsOrderMeituanMapper extends BsOrderMeituanMapperExt { |
|
|
|
|
"return_url = #{returnUrl,jdbcType=VARCHAR},", |
|
|
|
|
"pay_real_price = #{payRealPrice,jdbcType=DECIMAL},", |
|
|
|
|
"ent_pay_amount = #{entPayAmount,jdbcType=DECIMAL},", |
|
|
|
|
"trade_amount = #{tradeAmount,jdbcType=DECIMAL},", |
|
|
|
|
"business_discount_pay_amount = #{businessDiscountPayAmount,jdbcType=DECIMAL},", |
|
|
|
|
"service_fee_amount = #{serviceFeeAmount,jdbcType=DECIMAL},", |
|
|
|
|
"service_price = #{servicePrice,jdbcType=DECIMAL},", |
|
|
|
|