|
|
|
@ -40,23 +40,25 @@ public interface HighOrderMapper extends HighOrderMapperExt { |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into high_order (order_no, mem_id, ", |
|
|
|
|
"mem_name, pay_model, ", |
|
|
|
|
"pay_type, pay_gold, ", |
|
|
|
|
"pay_price, pay_real_price, ", |
|
|
|
|
"pay_serial_no, order_status, ", |
|
|
|
|
"total_price, create_time, ", |
|
|
|
|
"pay_time, cancel_time, ", |
|
|
|
|
"finish_time, remarks, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"mem_name, mem_phone, ", |
|
|
|
|
"pay_model, pay_type, ", |
|
|
|
|
"pay_gold, pay_price, ", |
|
|
|
|
"pay_real_price, pay_serial_no, ", |
|
|
|
|
"order_status, total_price, ", |
|
|
|
|
"create_time, pay_time, ", |
|
|
|
|
"cancel_time, finish_time, ", |
|
|
|
|
"remarks, ext_1, ext_2, ", |
|
|
|
|
"ext_3)", |
|
|
|
|
"values (#{orderNo,jdbcType=VARCHAR}, #{memId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{memName,jdbcType=VARCHAR}, #{payModel,jdbcType=INTEGER}, ", |
|
|
|
|
"#{payType,jdbcType=INTEGER}, #{payGold,jdbcType=INTEGER}, ", |
|
|
|
|
"#{payPrice,jdbcType=DECIMAL}, #{payRealPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{paySerialNo,jdbcType=VARCHAR}, #{orderStatus,jdbcType=INTEGER}, ", |
|
|
|
|
"#{totalPrice,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{payTime,jdbcType=TIMESTAMP}, #{cancelTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{finishTime,jdbcType=TIMESTAMP}, #{remarks,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"#{memName,jdbcType=VARCHAR}, #{memPhone,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{payModel,jdbcType=INTEGER}, #{payType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{payGold,jdbcType=INTEGER}, #{payPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{payRealPrice,jdbcType=DECIMAL}, #{paySerialNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{orderStatus,jdbcType=INTEGER}, #{totalPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{payTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{cancelTime,jdbcType=TIMESTAMP}, #{finishTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{remarks,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(HighOrder record); |
|
|
|
@ -71,6 +73,7 @@ public interface HighOrderMapper extends HighOrderMapperExt { |
|
|
|
|
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="mem_id", property="memId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="mem_name", property="memName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="mem_phone", property="memPhone", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="pay_model", property="payModel", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="pay_type", property="payType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="pay_gold", property="payGold", jdbcType=JdbcType.INTEGER), |
|
|
|
@ -92,9 +95,9 @@ public interface HighOrderMapper extends HighOrderMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, order_no, mem_id, mem_name, pay_model, pay_type, pay_gold, pay_price, pay_real_price, ", |
|
|
|
|
"pay_serial_no, order_status, total_price, create_time, pay_time, cancel_time, ", |
|
|
|
|
"finish_time, remarks, ext_1, ext_2, ext_3", |
|
|
|
|
"id, order_no, mem_id, mem_name, mem_phone, pay_model, pay_type, pay_gold, pay_price, ", |
|
|
|
|
"pay_real_price, pay_serial_no, order_status, total_price, create_time, pay_time, ", |
|
|
|
|
"cancel_time, finish_time, remarks, ext_1, ext_2, ext_3", |
|
|
|
|
"from high_order", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -103,6 +106,7 @@ public interface HighOrderMapper extends HighOrderMapperExt { |
|
|
|
|
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="mem_id", property="memId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="mem_name", property="memName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="mem_phone", property="memPhone", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="pay_model", property="payModel", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="pay_type", property="payType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="pay_gold", property="payGold", jdbcType=JdbcType.INTEGER), |
|
|
|
@ -136,6 +140,7 @@ public interface HighOrderMapper extends HighOrderMapperExt { |
|
|
|
|
"set order_no = #{orderNo,jdbcType=VARCHAR},", |
|
|
|
|
"mem_id = #{memId,jdbcType=BIGINT},", |
|
|
|
|
"mem_name = #{memName,jdbcType=VARCHAR},", |
|
|
|
|
"mem_phone = #{memPhone,jdbcType=VARCHAR},", |
|
|
|
|
"pay_model = #{payModel,jdbcType=INTEGER},", |
|
|
|
|
"pay_type = #{payType,jdbcType=INTEGER},", |
|
|
|
|
"pay_gold = #{payGold,jdbcType=INTEGER},", |
|
|
|
|