|
|
|
@ -39,23 +39,27 @@ public interface BsOrderMapper extends BsOrderMapperExt { |
|
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into bs_order (order_no, user_id, ", |
|
|
|
|
"user_phone, img, ", |
|
|
|
|
"goods_name, customParameters, ", |
|
|
|
|
"goods_count, total_price, ", |
|
|
|
|
"promotionAmount, `status`, ", |
|
|
|
|
"create_time, pay_time, ", |
|
|
|
|
"insert into bs_order (user_id, user_name, ", |
|
|
|
|
"user_phone, order_no, ", |
|
|
|
|
"pay_channel, pay_channel_order_no, ", |
|
|
|
|
"pay_serial_no, pay_type, ", |
|
|
|
|
"total_price, pay_real_price, ", |
|
|
|
|
"payment, product_total_price, ", |
|
|
|
|
"create_time, update_time, ", |
|
|
|
|
"pay_time, finish_time, ", |
|
|
|
|
"cancel_time, refund_time, ", |
|
|
|
|
"finish_time, update_time, ", |
|
|
|
|
"order_status, remarks, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"values (#{orderNo,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{userPhone,jdbcType=VARCHAR}, #{img,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{goodsName,jdbcType=VARCHAR}, #{customparameters,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{goodsCount,jdbcType=INTEGER}, #{totalPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{promotionamount,jdbcType=DECIMAL}, #{status,jdbcType=INTEGER}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{payTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"values (#{userId,jdbcType=BIGINT}, #{userName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{userPhone,jdbcType=VARCHAR}, #{orderNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{payChannel,jdbcType=INTEGER}, #{payChannelOrderNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{paySerialNo,jdbcType=VARCHAR}, #{payType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{totalPrice,jdbcType=DECIMAL}, #{payRealPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{payment,jdbcType=DECIMAL}, #{productTotalPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{payTime,jdbcType=TIMESTAMP}, #{finishTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{cancelTime,jdbcType=TIMESTAMP}, #{refundTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{finishTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{orderStatus,jdbcType=INTEGER}, #{remarks,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@ -68,22 +72,26 @@ public interface BsOrderMapper extends BsOrderMapperExt { |
|
|
|
|
@SelectProvider(type=BsOrderSqlProvider.class, method="selectByExample") |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="user_name", property="userName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="img", property="img", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="goods_name", property="goodsName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="customParameters", property="customparameters", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="goods_count", property="goodsCount", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="pay_channel", property="payChannel", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="pay_channel_order_no", property="payChannelOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="pay_serial_no", property="paySerialNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="pay_type", property="payType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="total_price", property="totalPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="promotionAmount", property="promotionamount", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="pay_real_price", property="payRealPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="payment", property="payment", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="product_total_price", property="productTotalPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="finish_time", property="finishTime", 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="order_status", property="orderStatus", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="remarks", property="remarks", 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) |
|
|
|
@ -92,30 +100,35 @@ public interface BsOrderMapper extends BsOrderMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, order_no, user_id, user_phone, img, goods_name, customParameters, goods_count, ", |
|
|
|
|
"total_price, promotionAmount, `status`, create_time, pay_time, cancel_time, ", |
|
|
|
|
"refund_time, finish_time, update_time, ext_1, ext_2, ext_3", |
|
|
|
|
"id, user_id, user_name, user_phone, order_no, pay_channel, pay_channel_order_no, ", |
|
|
|
|
"pay_serial_no, pay_type, total_price, pay_real_price, payment, product_total_price, ", |
|
|
|
|
"create_time, update_time, pay_time, finish_time, cancel_time, refund_time, order_status, ", |
|
|
|
|
"remarks, ext_1, ext_2, ext_3", |
|
|
|
|
"from bs_order", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="user_name", property="userName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="img", property="img", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="goods_name", property="goodsName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="customParameters", property="customparameters", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="goods_count", property="goodsCount", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="pay_channel", property="payChannel", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="pay_channel_order_no", property="payChannelOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="pay_serial_no", property="paySerialNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="pay_type", property="payType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="total_price", property="totalPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="promotionAmount", property="promotionamount", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="pay_real_price", property="payRealPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="payment", property="payment", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="product_total_price", property="productTotalPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="finish_time", property="finishTime", 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="order_status", property="orderStatus", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="remarks", property="remarks", 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,22 +146,26 @@ public interface BsOrderMapper extends BsOrderMapperExt { |
|
|
|
|
|
|
|
|
|
@Update({ |
|
|
|
|
"update bs_order", |
|
|
|
|
"set order_no = #{orderNo,jdbcType=VARCHAR},", |
|
|
|
|
"user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
|
"set user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
|
"user_name = #{userName,jdbcType=VARCHAR},", |
|
|
|
|
"user_phone = #{userPhone,jdbcType=VARCHAR},", |
|
|
|
|
"img = #{img,jdbcType=VARCHAR},", |
|
|
|
|
"goods_name = #{goodsName,jdbcType=VARCHAR},", |
|
|
|
|
"customParameters = #{customparameters,jdbcType=VARCHAR},", |
|
|
|
|
"goods_count = #{goodsCount,jdbcType=INTEGER},", |
|
|
|
|
"order_no = #{orderNo,jdbcType=VARCHAR},", |
|
|
|
|
"pay_channel = #{payChannel,jdbcType=INTEGER},", |
|
|
|
|
"pay_channel_order_no = #{payChannelOrderNo,jdbcType=VARCHAR},", |
|
|
|
|
"pay_serial_no = #{paySerialNo,jdbcType=VARCHAR},", |
|
|
|
|
"pay_type = #{payType,jdbcType=INTEGER},", |
|
|
|
|
"total_price = #{totalPrice,jdbcType=DECIMAL},", |
|
|
|
|
"promotionAmount = #{promotionamount,jdbcType=DECIMAL},", |
|
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
|
"pay_real_price = #{payRealPrice,jdbcType=DECIMAL},", |
|
|
|
|
"payment = #{payment,jdbcType=DECIMAL},", |
|
|
|
|
"product_total_price = #{productTotalPrice,jdbcType=DECIMAL},", |
|
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"pay_time = #{payTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"finish_time = #{finishTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"cancel_time = #{cancelTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"refund_time = #{refundTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"finish_time = #{finishTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"order_status = #{orderStatus,jdbcType=INTEGER},", |
|
|
|
|
"remarks = #{remarks,jdbcType=VARCHAR},", |
|
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
|
"ext_2 = #{ext2,jdbcType=VARCHAR},", |
|
|
|
|
"ext_3 = #{ext3,jdbcType=VARCHAR}", |
|
|
|
|