|
|
|
@ -49,7 +49,8 @@ public interface BsOrderMapper extends BsOrderMapperExt { |
|
|
|
|
"pay_time, finish_time, ", |
|
|
|
|
"cancel_time, refund_time, ", |
|
|
|
|
"order_status, remarks, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"ext_1, ext_2, ext_3, ", |
|
|
|
|
"freight_price)", |
|
|
|
|
"values (#{userId,jdbcType=BIGINT}, #{userName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{userPhone,jdbcType=VARCHAR}, #{orderNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{payChannel,jdbcType=INTEGER}, #{payChannelOrderNo,jdbcType=VARCHAR}, ", |
|
|
|
@ -60,7 +61,8 @@ public interface BsOrderMapper extends BsOrderMapperExt { |
|
|
|
|
"#{payTime,jdbcType=TIMESTAMP}, #{finishTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{cancelTime,jdbcType=TIMESTAMP}, #{refundTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{orderStatus,jdbcType=INTEGER}, #{remarks,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{freightPrice,jdbcType=DECIMAL})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(BsOrder record); |
|
|
|
@ -94,7 +96,8 @@ public interface BsOrderMapper extends BsOrderMapperExt { |
|
|
|
|
@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) |
|
|
|
|
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="freight_price", property="freightPrice", jdbcType=JdbcType.DECIMAL) |
|
|
|
|
}) |
|
|
|
|
List<BsOrder> selectByExample(BsOrderExample example); |
|
|
|
|
|
|
|
|
@ -103,7 +106,7 @@ public interface BsOrderMapper extends BsOrderMapperExt { |
|
|
|
|
"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", |
|
|
|
|
"remarks, ext_1, ext_2, ext_3, freight_price", |
|
|
|
|
"from bs_order", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -131,7 +134,8 @@ public interface BsOrderMapper extends BsOrderMapperExt { |
|
|
|
|
@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) |
|
|
|
|
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="freight_price", property="freightPrice", jdbcType=JdbcType.DECIMAL) |
|
|
|
|
}) |
|
|
|
|
BsOrder selectByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
@ -168,7 +172,8 @@ public interface BsOrderMapper extends BsOrderMapperExt { |
|
|
|
|
"remarks = #{remarks,jdbcType=VARCHAR},", |
|
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
|
"ext_2 = #{ext2,jdbcType=VARCHAR},", |
|
|
|
|
"ext_3 = #{ext3,jdbcType=VARCHAR}", |
|
|
|
|
"ext_3 = #{ext3,jdbcType=VARCHAR},", |
|
|
|
|
"freight_price = #{freightPrice,jdbcType=DECIMAL}", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
|
int updateByPrimaryKey(BsOrder record); |
|
|
|
|