|
|
|
@ -39,7 +39,8 @@ public interface OutRechargeOrderMapper extends OutRechargeOrderMapperExt { |
|
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into out_recharge_order (order_no, recharge_type, ", |
|
|
|
|
"insert into out_recharge_order (`type`, operator_name, ", |
|
|
|
|
"order_no, recharge_type, ", |
|
|
|
|
"mem_discount_id, mem_discount_name, ", |
|
|
|
|
"user_id, user_name, ", |
|
|
|
|
"user_phone, goods_id, ", |
|
|
|
@ -55,7 +56,8 @@ public interface OutRechargeOrderMapper extends OutRechargeOrderMapperExt { |
|
|
|
|
"region_id, pay_status, ", |
|
|
|
|
"recharge_status, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"values (#{orderNo,jdbcType=VARCHAR}, #{rechargeType,jdbcType=INTEGER}, ", |
|
|
|
|
"values (#{type,jdbcType=INTEGER}, #{operatorName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{orderNo,jdbcType=VARCHAR}, #{rechargeType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{memDiscountId,jdbcType=BIGINT}, #{memDiscountName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{userId,jdbcType=BIGINT}, #{userName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{userPhone,jdbcType=VARCHAR}, #{goodsId,jdbcType=BIGINT}, ", |
|
|
|
@ -82,6 +84,8 @@ public interface OutRechargeOrderMapper extends OutRechargeOrderMapperExt { |
|
|
|
|
@SelectProvider(type=OutRechargeOrderSqlProvider.class, method="selectByExample") |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="operator_name", property="operatorName", 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), |
|
|
|
@ -119,17 +123,19 @@ public interface OutRechargeOrderMapper extends OutRechargeOrderMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"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, ", |
|
|
|
|
"create_timed, pay_time, cancel_time, finish_time, out_refund_no, order_price, ", |
|
|
|
|
"refund_time, tp_refund_order_no, refund_id, refund_fee, region_id, pay_status, ", |
|
|
|
|
"recharge_status, ext_1, ext_2, ext_3", |
|
|
|
|
"id, `type`, operator_name, 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, create_timed, pay_time, cancel_time, finish_time, out_refund_no, ", |
|
|
|
|
"order_price, refund_time, tp_refund_order_no, refund_id, refund_fee, region_id, ", |
|
|
|
|
"pay_status, recharge_status, 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="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="operator_name", property="operatorName", 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), |
|
|
|
@ -176,7 +182,9 @@ public interface OutRechargeOrderMapper extends OutRechargeOrderMapperExt { |
|
|
|
|
|
|
|
|
|
@Update({ |
|
|
|
|
"update out_recharge_order", |
|
|
|
|
"set order_no = #{orderNo,jdbcType=VARCHAR},", |
|
|
|
|
"set `type` = #{type,jdbcType=INTEGER},", |
|
|
|
|
"operator_name = #{operatorName,jdbcType=VARCHAR},", |
|
|
|
|
"order_no = #{orderNo,jdbcType=VARCHAR},", |
|
|
|
|
"recharge_type = #{rechargeType,jdbcType=INTEGER},", |
|
|
|
|
"mem_discount_id = #{memDiscountId,jdbcType=BIGINT},", |
|
|
|
|
"mem_discount_name = #{memDiscountName,jdbcType=VARCHAR},", |
|
|
|
|