|
|
@ -39,7 +39,8 @@ public interface HighOrderMapper extends HighOrderMapperExt { |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into high_order (order_no, mem_id, ", |
|
|
|
"insert into high_order (order_no, mem_discount_id, ", |
|
|
|
|
|
|
|
"mem_discount_name, mem_id, ", |
|
|
|
"mem_name, mem_phone, ", |
|
|
|
"mem_name, mem_phone, ", |
|
|
|
"pay_model, pay_type, ", |
|
|
|
"pay_model, pay_type, ", |
|
|
|
"pay_gold, pay_price, ", |
|
|
|
"pay_gold, pay_price, ", |
|
|
@ -49,7 +50,8 @@ public interface HighOrderMapper extends HighOrderMapperExt { |
|
|
|
"cancel_time, finish_time, ", |
|
|
|
"cancel_time, finish_time, ", |
|
|
|
"remarks, ext_1, ext_2, ", |
|
|
|
"remarks, ext_1, ext_2, ", |
|
|
|
"ext_3)", |
|
|
|
"ext_3)", |
|
|
|
"values (#{orderNo,jdbcType=VARCHAR}, #{memId,jdbcType=BIGINT}, ", |
|
|
|
"values (#{orderNo,jdbcType=VARCHAR}, #{memDiscountId,jdbcType=BIGINT}, ", |
|
|
|
|
|
|
|
"#{memDiscountName,jdbcType=VARCHAR}, #{memId,jdbcType=BIGINT}, ", |
|
|
|
"#{memName,jdbcType=VARCHAR}, #{memPhone,jdbcType=VARCHAR}, ", |
|
|
|
"#{memName,jdbcType=VARCHAR}, #{memPhone,jdbcType=VARCHAR}, ", |
|
|
|
"#{payModel,jdbcType=INTEGER}, #{payType,jdbcType=INTEGER}, ", |
|
|
|
"#{payModel,jdbcType=INTEGER}, #{payType,jdbcType=INTEGER}, ", |
|
|
|
"#{payGold,jdbcType=INTEGER}, #{payPrice,jdbcType=DECIMAL}, ", |
|
|
|
"#{payGold,jdbcType=INTEGER}, #{payPrice,jdbcType=DECIMAL}, ", |
|
|
@ -71,6 +73,8 @@ public interface HighOrderMapper extends HighOrderMapperExt { |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="mem_discount_id", property="memDiscountId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="mem_discount_name", property="memDiscountName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="mem_id", property="memId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="mem_id", property="memId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="mem_name", property="memName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="mem_name", property="memName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="mem_phone", property="memPhone", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="mem_phone", property="memPhone", jdbcType=JdbcType.VARCHAR), |
|
|
@ -95,15 +99,18 @@ public interface HighOrderMapper extends HighOrderMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, order_no, mem_id, mem_name, mem_phone, pay_model, pay_type, pay_gold, pay_price, ", |
|
|
|
"id, order_no, mem_discount_id, mem_discount_name, mem_id, mem_name, mem_phone, ", |
|
|
|
"pay_real_price, pay_serial_no, order_status, total_price, create_time, pay_time, ", |
|
|
|
"pay_model, pay_type, pay_gold, pay_price, pay_real_price, pay_serial_no, order_status, ", |
|
|
|
"cancel_time, finish_time, remarks, ext_1, ext_2, ext_3", |
|
|
|
"total_price, create_time, pay_time, cancel_time, finish_time, remarks, ext_1, ", |
|
|
|
|
|
|
|
"ext_2, ext_3", |
|
|
|
"from high_order", |
|
|
|
"from high_order", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="mem_discount_id", property="memDiscountId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="mem_discount_name", property="memDiscountName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="mem_id", property="memId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="mem_id", property="memId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="mem_name", property="memName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="mem_name", property="memName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="mem_phone", property="memPhone", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="mem_phone", property="memPhone", jdbcType=JdbcType.VARCHAR), |
|
|
@ -138,6 +145,8 @@ public interface HighOrderMapper extends HighOrderMapperExt { |
|
|
|
@Update({ |
|
|
|
@Update({ |
|
|
|
"update high_order", |
|
|
|
"update high_order", |
|
|
|
"set order_no = #{orderNo,jdbcType=VARCHAR},", |
|
|
|
"set order_no = #{orderNo,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"mem_discount_id = #{memDiscountId,jdbcType=BIGINT},", |
|
|
|
|
|
|
|
"mem_discount_name = #{memDiscountName,jdbcType=VARCHAR},", |
|
|
|
"mem_id = #{memId,jdbcType=BIGINT},", |
|
|
|
"mem_id = #{memId,jdbcType=BIGINT},", |
|
|
|
"mem_name = #{memName,jdbcType=VARCHAR},", |
|
|
|
"mem_name = #{memName,jdbcType=VARCHAR},", |
|
|
|
"mem_phone = #{memPhone,jdbcType=VARCHAR},", |
|
|
|
"mem_phone = #{memPhone,jdbcType=VARCHAR},", |
|
|
|