|
|
|
@ -39,34 +39,34 @@ public interface OutRechargeOrderMapper extends OutRechargeOrderMapperExt { |
|
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into out_recharge_order (order_no, mem_discount_id, ", |
|
|
|
|
"mem_discount_name, user_id, ", |
|
|
|
|
"user_name, user_phone, ", |
|
|
|
|
"goods_id, recharge_content, ", |
|
|
|
|
"pay_type, labor_union_card, ", |
|
|
|
|
"integral_num, discount_deduction_price, ", |
|
|
|
|
"integral_deduction_price, pay_real_price, ", |
|
|
|
|
"pay_serial_no, pay_status, ", |
|
|
|
|
"recharge_status, create_timed, ", |
|
|
|
|
"pay_time, cancel_time, ", |
|
|
|
|
"finish_time, out_refund_no, ", |
|
|
|
|
"refund_time, tp_refund_order_no, ", |
|
|
|
|
"refund_fee, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"values (#{orderNo,jdbcType=VARCHAR}, #{memDiscountId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{memDiscountName,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{userName,jdbcType=VARCHAR}, #{userPhone,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{goodsId,jdbcType=BIGINT}, #{rechargeContent,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{payType,jdbcType=INTEGER}, #{laborUnionCard,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{integralNum,jdbcType=BIGINT}, #{discountDeductionPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{integralDeductionPrice,jdbcType=DECIMAL}, #{payRealPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{paySerialNo,jdbcType=VARCHAR}, #{payStatus,jdbcType=INTEGER}, ", |
|
|
|
|
"#{rechargeStatus,jdbcType=INTEGER}, #{createTimed,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{payTime,jdbcType=TIMESTAMP}, #{cancelTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{finishTime,jdbcType=TIMESTAMP}, #{outRefundNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{refundTime,jdbcType=TIMESTAMP}, #{tpRefundOrderNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{refundFee,jdbcType=DECIMAL}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"insert into out_recharge_order (order_no, recharge_type, ", |
|
|
|
|
"mem_discount_id, mem_discount_name, ", |
|
|
|
|
"user_id, user_name, ", |
|
|
|
|
"user_phone, goods_id, ", |
|
|
|
|
"recharge_content, pay_type, ", |
|
|
|
|
"labor_union_card, integral_num, ", |
|
|
|
|
"discount_deduction_price, integral_deduction_price, ", |
|
|
|
|
"pay_real_price, pay_serial_no, ", |
|
|
|
|
"pay_status, recharge_status, ", |
|
|
|
|
"create_timed, pay_time, ", |
|
|
|
|
"cancel_time, finish_time, ", |
|
|
|
|
"out_refund_no, refund_time, ", |
|
|
|
|
"tp_refund_order_no, refund_fee, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"values (#{orderNo,jdbcType=VARCHAR}, #{rechargeType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{memDiscountId,jdbcType=BIGINT}, #{memDiscountName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{userId,jdbcType=BIGINT}, #{userName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{userPhone,jdbcType=VARCHAR}, #{goodsId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{rechargeContent,jdbcType=VARCHAR}, #{payType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{laborUnionCard,jdbcType=VARCHAR}, #{integralNum,jdbcType=BIGINT}, ", |
|
|
|
|
"#{discountDeductionPrice,jdbcType=DECIMAL}, #{integralDeductionPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{payRealPrice,jdbcType=DECIMAL}, #{paySerialNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{payStatus,jdbcType=INTEGER}, #{rechargeStatus,jdbcType=INTEGER}, ", |
|
|
|
|
"#{createTimed,jdbcType=TIMESTAMP}, #{payTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{cancelTime,jdbcType=TIMESTAMP}, #{finishTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{outRefundNo,jdbcType=VARCHAR}, #{refundTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{tpRefundOrderNo,jdbcType=VARCHAR}, #{refundFee,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(OutRechargeOrder record); |
|
|
|
@ -79,6 +79,7 @@ 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="recharge_type", property="rechargeType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@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), |
|
|
|
@ -111,17 +112,18 @@ public interface OutRechargeOrderMapper extends OutRechargeOrderMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, order_no, mem_discount_id, mem_discount_name, user_id, user_name, user_phone, ", |
|
|
|
|
"goods_id, recharge_content, pay_type, labor_union_card, integral_num, discount_deduction_price, ", |
|
|
|
|
"integral_deduction_price, pay_real_price, pay_serial_no, pay_status, recharge_status, ", |
|
|
|
|
"create_timed, pay_time, cancel_time, finish_time, out_refund_no, refund_time, ", |
|
|
|
|
"tp_refund_order_no, refund_fee, ext_1, ext_2, ext_3", |
|
|
|
|
"id, order_no, recharge_type, mem_discount_id, mem_discount_name, user_id, user_name, ", |
|
|
|
|
"user_phone, goods_id, recharge_content, pay_type, labor_union_card, integral_num, ", |
|
|
|
|
"discount_deduction_price, integral_deduction_price, pay_real_price, pay_serial_no, ", |
|
|
|
|
"pay_status, recharge_status, create_timed, pay_time, cancel_time, finish_time, ", |
|
|
|
|
"out_refund_no, refund_time, tp_refund_order_no, refund_fee, ext_1, ext_2, ext_3", |
|
|
|
|
"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="recharge_type", property="rechargeType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@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), |
|
|
|
@ -164,6 +166,7 @@ public interface OutRechargeOrderMapper extends OutRechargeOrderMapperExt { |
|
|
|
|
@Update({ |
|
|
|
|
"update out_recharge_order", |
|
|
|
|
"set order_no = #{orderNo,jdbcType=VARCHAR},", |
|
|
|
|
"recharge_type = #{rechargeType,jdbcType=INTEGER},", |
|
|
|
|
"mem_discount_id = #{memDiscountId,jdbcType=BIGINT},", |
|
|
|
|
"mem_discount_name = #{memDiscountName,jdbcType=VARCHAR},", |
|
|
|
|
"user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
|