|
|
|
@ -42,21 +42,23 @@ public interface BsOrderMapper extends BsOrderMapperExt { |
|
|
|
|
"insert into bs_order (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)", |
|
|
|
|
"goods_count, `type`, ", |
|
|
|
|
"total_price, promotionAmount, ", |
|
|
|
|
"`status`, create_time, ", |
|
|
|
|
"pay_time, cancel_time, ", |
|
|
|
|
"refund_time, finish_time, ", |
|
|
|
|
"update_time, 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}, ", |
|
|
|
|
"#{cancelTime,jdbcType=TIMESTAMP}, #{refundTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{finishTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"#{goodsCount,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, ", |
|
|
|
|
"#{totalPrice,jdbcType=DECIMAL}, #{promotionamount,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{payTime,jdbcType=TIMESTAMP}, #{cancelTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{refundTime,jdbcType=TIMESTAMP}, #{finishTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(BsOrder record); |
|
|
|
@ -75,6 +77,7 @@ public interface BsOrderMapper extends BsOrderMapperExt { |
|
|
|
|
@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="type", property="type", 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), |
|
|
|
@ -93,7 +96,7 @@ 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, ", |
|
|
|
|
"`type`, total_price, promotionAmount, `status`, create_time, pay_time, cancel_time, ", |
|
|
|
|
"refund_time, finish_time, update_time, ext_1, ext_2, ext_3", |
|
|
|
|
"from bs_order", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
@ -107,6 +110,7 @@ public interface BsOrderMapper extends BsOrderMapperExt { |
|
|
|
|
@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="type", property="type", 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), |
|
|
|
@ -140,6 +144,7 @@ public interface BsOrderMapper extends BsOrderMapperExt { |
|
|
|
|
"goods_name = #{goodsName,jdbcType=VARCHAR},", |
|
|
|
|
"customParameters = #{customparameters,jdbcType=VARCHAR},", |
|
|
|
|
"goods_count = #{goodsCount,jdbcType=INTEGER},", |
|
|
|
|
"`type` = #{type,jdbcType=INTEGER},", |
|
|
|
|
"total_price = #{totalPrice,jdbcType=DECIMAL},", |
|
|
|
|
"promotionAmount = #{promotionamount,jdbcType=DECIMAL},", |
|
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
|