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