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