|
|
|
@ -44,38 +44,22 @@ public interface BsOrderStarbucksMapper extends BsOrderStarbucksMapperExt { |
|
|
|
|
"temperature, cream, ", |
|
|
|
|
"espresso, milk, ", |
|
|
|
|
"milk_bubble, num, ", |
|
|
|
|
"img, goods_name, ", |
|
|
|
|
"goods_specs_name, order_no, ", |
|
|
|
|
"child_order_no, channel_order_no, ", |
|
|
|
|
"mer_id, user_id, user_phone, ", |
|
|
|
|
"total_price, total_deduction_price, ", |
|
|
|
|
"coupon_discount_price, integral_discount_price, ", |
|
|
|
|
"pay_real_price, pay_channel, ", |
|
|
|
|
"pay_serial_no, pay_type, ", |
|
|
|
|
"`status`, create_time, ", |
|
|
|
|
"pay_time, cancel_time, ", |
|
|
|
|
"refund_time, finish_time, ", |
|
|
|
|
"update_time, exception_status, ", |
|
|
|
|
"exception_msg, ext_1, ", |
|
|
|
|
"img, `name`, order_no, ", |
|
|
|
|
"child_order_no, mer_id, ", |
|
|
|
|
"user_id, user_phone, ", |
|
|
|
|
"price, `status`, create_time, ", |
|
|
|
|
"update_time, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"values (#{storeCode,jdbcType=VARCHAR}, #{platformUniqueId,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{productId,jdbcType=INTEGER}, #{cupSize,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{temperature,jdbcType=VARCHAR}, #{cream,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{espresso,jdbcType=VARCHAR}, #{milk,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{milkBubble,jdbcType=VARCHAR}, #{num,jdbcType=INTEGER}, ", |
|
|
|
|
"#{img,jdbcType=VARCHAR}, #{goodsName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{goodsSpecsName,jdbcType=VARCHAR}, #{orderNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{childOrderNo,jdbcType=VARCHAR}, #{channelOrderNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{merId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{userPhone,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{totalPrice,jdbcType=DECIMAL}, #{totalDeductionPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{couponDiscountPrice,jdbcType=DECIMAL}, #{integralDiscountPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{payRealPrice,jdbcType=DECIMAL}, #{payChannel,jdbcType=INTEGER}, ", |
|
|
|
|
"#{paySerialNo,jdbcType=VARCHAR}, #{payType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{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}, ", |
|
|
|
|
"#{img,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{orderNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{childOrderNo,jdbcType=VARCHAR}, #{merId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{userId,jdbcType=BIGINT}, #{userPhone,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{price,jdbcType=DECIMAL}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@ -99,31 +83,16 @@ public interface BsOrderStarbucksMapper extends BsOrderStarbucksMapperExt { |
|
|
|
|
@Result(column="milk_bubble", property="milkBubble", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="num", property="num", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="img", property="img", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="goods_name", property="goodsName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="goods_specs_name", property="goodsSpecsName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="child_order_no", property="childOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="channel_order_no", property="channelOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="total_price", property="totalPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="total_deduction_price", property="totalDeductionPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="coupon_discount_price", property="couponDiscountPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="integral_discount_price", property="integralDiscountPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="pay_real_price", property="payRealPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="pay_channel", property="payChannel", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="pay_serial_no", property="paySerialNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="pay_type", property="payType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="price", property="price", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="cancel_time", property="cancelTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="refund_time", property="refundTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="finish_time", property="finishTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="exception_status", property="exceptionStatus", jdbcType=JdbcType.BIT), |
|
|
|
|
@Result(column="exception_msg", property="exceptionMsg", 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) |
|
|
|
@ -133,12 +102,9 @@ public interface BsOrderStarbucksMapper extends BsOrderStarbucksMapperExt { |
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, store_code, platform_unique_id, product_id, cup_size, temperature, cream, ", |
|
|
|
|
"espresso, milk, milk_bubble, num, img, goods_name, goods_specs_name, order_no, ", |
|
|
|
|
"child_order_no, channel_order_no, mer_id, user_id, user_phone, total_price, ", |
|
|
|
|
"total_deduction_price, coupon_discount_price, integral_discount_price, pay_real_price, ", |
|
|
|
|
"pay_channel, pay_serial_no, pay_type, `status`, create_time, pay_time, cancel_time, ", |
|
|
|
|
"refund_time, finish_time, update_time, exception_status, exception_msg, ext_1, ", |
|
|
|
|
"ext_2, ext_3", |
|
|
|
|
"espresso, milk, milk_bubble, num, img, `name`, order_no, child_order_no, mer_id, ", |
|
|
|
|
"user_id, user_phone, price, `status`, create_time, update_time, ext_1, ext_2, ", |
|
|
|
|
"ext_3", |
|
|
|
|
"from bs_order_starbucks", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -155,31 +121,16 @@ public interface BsOrderStarbucksMapper extends BsOrderStarbucksMapperExt { |
|
|
|
|
@Result(column="milk_bubble", property="milkBubble", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="num", property="num", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="img", property="img", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="goods_name", property="goodsName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="goods_specs_name", property="goodsSpecsName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="child_order_no", property="childOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="channel_order_no", property="channelOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="total_price", property="totalPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="total_deduction_price", property="totalDeductionPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="coupon_discount_price", property="couponDiscountPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="integral_discount_price", property="integralDiscountPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="pay_real_price", property="payRealPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="pay_channel", property="payChannel", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="pay_serial_no", property="paySerialNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="pay_type", property="payType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="price", property="price", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="cancel_time", property="cancelTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="refund_time", property="refundTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="finish_time", property="finishTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="exception_status", property="exceptionStatus", jdbcType=JdbcType.BIT), |
|
|
|
|
@Result(column="exception_msg", property="exceptionMsg", 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) |
|
|
|
@ -208,31 +159,16 @@ public interface BsOrderStarbucksMapper extends BsOrderStarbucksMapperExt { |
|
|
|
|
"milk_bubble = #{milkBubble,jdbcType=VARCHAR},", |
|
|
|
|
"num = #{num,jdbcType=INTEGER},", |
|
|
|
|
"img = #{img,jdbcType=VARCHAR},", |
|
|
|
|
"goods_name = #{goodsName,jdbcType=VARCHAR},", |
|
|
|
|
"goods_specs_name = #{goodsSpecsName,jdbcType=VARCHAR},", |
|
|
|
|
"`name` = #{name,jdbcType=VARCHAR},", |
|
|
|
|
"order_no = #{orderNo,jdbcType=VARCHAR},", |
|
|
|
|
"child_order_no = #{childOrderNo,jdbcType=VARCHAR},", |
|
|
|
|
"channel_order_no = #{channelOrderNo,jdbcType=VARCHAR},", |
|
|
|
|
"mer_id = #{merId,jdbcType=BIGINT},", |
|
|
|
|
"user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
|
"user_phone = #{userPhone,jdbcType=VARCHAR},", |
|
|
|
|
"total_price = #{totalPrice,jdbcType=DECIMAL},", |
|
|
|
|
"total_deduction_price = #{totalDeductionPrice,jdbcType=DECIMAL},", |
|
|
|
|
"coupon_discount_price = #{couponDiscountPrice,jdbcType=DECIMAL},", |
|
|
|
|
"integral_discount_price = #{integralDiscountPrice,jdbcType=DECIMAL},", |
|
|
|
|
"pay_real_price = #{payRealPrice,jdbcType=DECIMAL},", |
|
|
|
|
"pay_channel = #{payChannel,jdbcType=INTEGER},", |
|
|
|
|
"pay_serial_no = #{paySerialNo,jdbcType=VARCHAR},", |
|
|
|
|
"pay_type = #{payType,jdbcType=INTEGER},", |
|
|
|
|
"price = #{price,jdbcType=DECIMAL},", |
|
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"pay_time = #{payTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"cancel_time = #{cancelTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"refund_time = #{refundTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"finish_time = #{finishTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"exception_status = #{exceptionStatus,jdbcType=BIT},", |
|
|
|
|
"exception_msg = #{exceptionMsg,jdbcType=VARCHAR},", |
|
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
|
"ext_2 = #{ext2,jdbcType=VARCHAR},", |
|
|
|
|
"ext_3 = #{ext3,jdbcType=VARCHAR}", |
|
|
|
|