|
|
|
@ -39,32 +39,36 @@ public interface OutRechargeOrderMapper extends OutRechargeOrderMapperExt { |
|
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into out_recharge_order (order_no, user_id, ", |
|
|
|
|
"insert into out_recharge_order (order_no, mem_discount_id, ", |
|
|
|
|
"mem_discount_name, user_id, ", |
|
|
|
|
"user_name, user_phone, ", |
|
|
|
|
"recharge_model, pay_type, ", |
|
|
|
|
"pay_price, order_price, ", |
|
|
|
|
"pay_real_price, pay_serial_no, ", |
|
|
|
|
"`status`, recharge_content, ", |
|
|
|
|
"recharge_name, id_card, ", |
|
|
|
|
"create_timed, pay_time, ", |
|
|
|
|
"cancel_time, finish_time, ", |
|
|
|
|
"remarks, out_refund_no, ", |
|
|
|
|
"refund_time, refund_id, ", |
|
|
|
|
"refund_fee, agent_key, ", |
|
|
|
|
"object_id, Identification_code)", |
|
|
|
|
"values (#{orderNo,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, ", |
|
|
|
|
"deduction_price, `status`, ", |
|
|
|
|
"recharge_content, recharge_name, ", |
|
|
|
|
"id_card, create_timed, ", |
|
|
|
|
"pay_time, cancel_time, ", |
|
|
|
|
"finish_time, remarks, ", |
|
|
|
|
"out_refund_no, refund_time, ", |
|
|
|
|
"refund_id, refund_fee, ", |
|
|
|
|
"agent_key, object_id, ", |
|
|
|
|
"Identification_code)", |
|
|
|
|
"values (#{orderNo,jdbcType=VARCHAR}, #{memDiscountId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{memDiscountName,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{userName,jdbcType=VARCHAR}, #{userPhone,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{rechargeModel,jdbcType=INTEGER}, #{payType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{payPrice,jdbcType=DECIMAL}, #{orderPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{payRealPrice,jdbcType=DECIMAL}, #{paySerialNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{rechargeContent,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{rechargeName,jdbcType=VARCHAR}, #{idCard,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{createTimed,jdbcType=TIMESTAMP}, #{payTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{cancelTime,jdbcType=TIMESTAMP}, #{finishTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{remarks,jdbcType=VARCHAR}, #{outRefundNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{refundTime,jdbcType=TIMESTAMP}, #{refundId,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{refundFee,jdbcType=DECIMAL}, #{agentKey,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{objectId,jdbcType=INTEGER}, #{identificationCode,jdbcType=BIGINT})" |
|
|
|
|
"#{deductionPrice,jdbcType=DECIMAL}, #{status,jdbcType=INTEGER}, ", |
|
|
|
|
"#{rechargeContent,jdbcType=VARCHAR}, #{rechargeName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{idCard,jdbcType=VARCHAR}, #{createTimed,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{payTime,jdbcType=TIMESTAMP}, #{cancelTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{finishTime,jdbcType=TIMESTAMP}, #{remarks,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{outRefundNo,jdbcType=VARCHAR}, #{refundTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{refundId,jdbcType=VARCHAR}, #{refundFee,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{agentKey,jdbcType=VARCHAR}, #{objectId,jdbcType=INTEGER}, ", |
|
|
|
|
"#{identificationCode,jdbcType=BIGINT})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(OutRechargeOrder record); |
|
|
|
@ -77,6 +81,8 @@ public interface OutRechargeOrderMapper extends OutRechargeOrderMapperExt { |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@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="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="user_name", property="userName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -86,6 +92,7 @@ public interface OutRechargeOrderMapper extends OutRechargeOrderMapperExt { |
|
|
|
|
@Result(column="order_price", property="orderPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="pay_real_price", property="payRealPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="pay_serial_no", property="paySerialNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="deduction_price", property="deductionPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="recharge_content", property="rechargeContent", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="recharge_name", property="rechargeName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -107,16 +114,19 @@ public interface OutRechargeOrderMapper extends OutRechargeOrderMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, order_no, user_id, user_name, user_phone, recharge_model, pay_type, pay_price, ", |
|
|
|
|
"order_price, pay_real_price, pay_serial_no, `status`, recharge_content, recharge_name, ", |
|
|
|
|
"id_card, create_timed, pay_time, cancel_time, finish_time, remarks, out_refund_no, ", |
|
|
|
|
"refund_time, refund_id, refund_fee, agent_key, object_id, Identification_code", |
|
|
|
|
"id, order_no, mem_discount_id, mem_discount_name, user_id, user_name, user_phone, ", |
|
|
|
|
"recharge_model, pay_type, pay_price, order_price, pay_real_price, pay_serial_no, ", |
|
|
|
|
"deduction_price, `status`, recharge_content, recharge_name, id_card, create_timed, ", |
|
|
|
|
"pay_time, cancel_time, finish_time, remarks, out_refund_no, refund_time, refund_id, ", |
|
|
|
|
"refund_fee, agent_key, object_id, Identification_code", |
|
|
|
|
"from out_recharge_order", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@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="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="user_name", property="userName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -126,6 +136,7 @@ public interface OutRechargeOrderMapper extends OutRechargeOrderMapperExt { |
|
|
|
|
@Result(column="order_price", property="orderPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="pay_real_price", property="payRealPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="pay_serial_no", property="paySerialNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="deduction_price", property="deductionPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="recharge_content", property="rechargeContent", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="recharge_name", property="rechargeName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -157,6 +168,8 @@ public interface OutRechargeOrderMapper extends OutRechargeOrderMapperExt { |
|
|
|
|
@Update({ |
|
|
|
|
"update out_recharge_order", |
|
|
|
|
"set order_no = #{orderNo,jdbcType=VARCHAR},", |
|
|
|
|
"mem_discount_id = #{memDiscountId,jdbcType=BIGINT},", |
|
|
|
|
"mem_discount_name = #{memDiscountName,jdbcType=VARCHAR},", |
|
|
|
|
"user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
|
"user_name = #{userName,jdbcType=VARCHAR},", |
|
|
|
|
"user_phone = #{userPhone,jdbcType=VARCHAR},", |
|
|
|
@ -166,6 +179,7 @@ public interface OutRechargeOrderMapper extends OutRechargeOrderMapperExt { |
|
|
|
|
"order_price = #{orderPrice,jdbcType=DECIMAL},", |
|
|
|
|
"pay_real_price = #{payRealPrice,jdbcType=DECIMAL},", |
|
|
|
|
"pay_serial_no = #{paySerialNo,jdbcType=VARCHAR},", |
|
|
|
|
"deduction_price = #{deductionPrice,jdbcType=DECIMAL},", |
|
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
|
"recharge_content = #{rechargeContent,jdbcType=VARCHAR},", |
|
|
|
|
"recharge_name = #{rechargeName,jdbcType=VARCHAR},", |
|
|
|
|