|
|
|
@ -7,7 +7,6 @@ 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; |
|
|
|
@ -39,16 +38,18 @@ public interface BsOrderMeituanMapper extends BsOrderMeituanMapperExt { |
|
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into bs_order_meituan (order_no, child_order_no, ", |
|
|
|
|
"trade_no, sqt_biz_order_id, ", |
|
|
|
|
"mer_id, mer_name, user_id, ", |
|
|
|
|
"insert into bs_order_meituan (id, 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, ", |
|
|
|
|
"trace_id, goods_count, ", |
|
|
|
|
"total_price, total_deduction_price, ", |
|
|
|
|
"coupon_discount_price, integral_discount_price, ", |
|
|
|
|
"platform_code, pay_real_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, ", |
|
|
|
@ -60,16 +61,18 @@ public interface BsOrderMeituanMapper extends BsOrderMeituanMapperExt { |
|
|
|
|
"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}, ", |
|
|
|
|
"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}, ", |
|
|
|
|
"#{userPhone,jdbcType=VARCHAR}, #{firstBusinessType,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{secondBusinessType,jdbcType=VARCHAR}, #{entId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{img,jdbcType=VARCHAR}, #{goodsName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{traceId,jdbcType=VARCHAR}, #{goodsCount,jdbcType=INTEGER}, ", |
|
|
|
|
"#{totalPrice,jdbcType=DECIMAL}, #{totalDeductionPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{couponDiscountPrice,jdbcType=DECIMAL}, #{integralDiscountPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{platformCode,jdbcType=VARCHAR}, #{payRealPrice,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}, ", |
|
|
|
@ -82,11 +85,9 @@ public interface BsOrderMeituanMapper extends BsOrderMeituanMapperExt { |
|
|
|
|
"#{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") |
|
|
|
@ -112,6 +113,8 @@ public interface BsOrderMeituanMapper extends BsOrderMeituanMapperExt { |
|
|
|
|
@Result(column="coupon_discount_price", property="couponDiscountPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="integral_discount_price", property="integralDiscountPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="platform_code", property="platformCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="notify_url", property="notifyUrl", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@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="business_discount_pay_amount", property="businessDiscountPayAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
@ -144,11 +147,11 @@ public interface BsOrderMeituanMapper extends BsOrderMeituanMapperExt { |
|
|
|
|
"id, 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, trace_id, goods_count, total_price, total_deduction_price, coupon_discount_price, ", |
|
|
|
|
"integral_discount_price, platform_code, 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", |
|
|
|
|
"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", |
|
|
|
|
"from bs_order_meituan", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -174,6 +177,8 @@ public interface BsOrderMeituanMapper extends BsOrderMeituanMapperExt { |
|
|
|
|
@Result(column="coupon_discount_price", property="couponDiscountPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="integral_discount_price", property="integralDiscountPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="platform_code", property="platformCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="notify_url", property="notifyUrl", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@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="business_discount_pay_amount", property="businessDiscountPayAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
@ -232,6 +237,8 @@ public interface BsOrderMeituanMapper extends BsOrderMeituanMapperExt { |
|
|
|
|
"coupon_discount_price = #{couponDiscountPrice,jdbcType=DECIMAL},", |
|
|
|
|
"integral_discount_price = #{integralDiscountPrice,jdbcType=DECIMAL},", |
|
|
|
|
"platform_code = #{platformCode,jdbcType=VARCHAR},", |
|
|
|
|
"notify_url = #{notifyUrl,jdbcType=VARCHAR},", |
|
|
|
|
"return_url = #{returnUrl,jdbcType=VARCHAR},", |
|
|
|
|
"pay_real_price = #{payRealPrice,jdbcType=DECIMAL},", |
|
|
|
|
"ent_pay_amount = #{entPayAmount,jdbcType=DECIMAL},", |
|
|
|
|
"business_discount_pay_amount = #{businessDiscountPayAmount,jdbcType=DECIMAL},", |
|
|
|
|