|
|
@ -39,40 +39,42 @@ public interface OutRechargeOrderMapper extends OutRechargeOrderMapperExt { |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into out_recharge_order (`type`, operator_name, ", |
|
|
|
"insert into out_recharge_order (recharge_price, `type`, ", |
|
|
|
"operator_type, order_no, ", |
|
|
|
"operator_name, operator_type, ", |
|
|
|
"recharge_type, mem_discount_id, ", |
|
|
|
"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, create_timed, ", |
|
|
|
"pay_real_price, pay_serial_no, ", |
|
|
|
"pay_time, cancel_time, ", |
|
|
|
"create_timed, pay_time, ", |
|
|
|
"finish_time, out_refund_no, ", |
|
|
|
"cancel_time, finish_time, ", |
|
|
|
"order_price, refund_time, ", |
|
|
|
"out_refund_no, order_price, ", |
|
|
|
"tp_refund_order_no, refund_id, ", |
|
|
|
"refund_time, tp_refund_order_no, ", |
|
|
|
"refund_fee, company_id, ", |
|
|
|
"refund_id, refund_fee, ", |
|
|
|
"pay_status, recharge_status, ", |
|
|
|
"company_id, pay_status, ", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"recharge_status, ext_1, ", |
|
|
|
"values (#{type,jdbcType=INTEGER}, #{operatorName,jdbcType=VARCHAR}, ", |
|
|
|
"ext_2, ext_3)", |
|
|
|
"#{operatorType,jdbcType=INTEGER}, #{orderNo,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{rechargePrice,jdbcType=DECIMAL}, #{type,jdbcType=INTEGER}, ", |
|
|
|
"#{rechargeType,jdbcType=INTEGER}, #{memDiscountId,jdbcType=BIGINT}, ", |
|
|
|
"#{operatorName,jdbcType=VARCHAR}, #{operatorType,jdbcType=INTEGER}, ", |
|
|
|
"#{memDiscountName,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, ", |
|
|
|
"#{orderNo,jdbcType=VARCHAR}, #{rechargeType,jdbcType=INTEGER}, ", |
|
|
|
"#{userName,jdbcType=VARCHAR}, #{userPhone,jdbcType=VARCHAR}, ", |
|
|
|
"#{memDiscountId,jdbcType=BIGINT}, #{memDiscountName,jdbcType=VARCHAR}, ", |
|
|
|
"#{goodsId,jdbcType=BIGINT}, #{rechargeContent,jdbcType=VARCHAR}, ", |
|
|
|
"#{userId,jdbcType=BIGINT}, #{userName,jdbcType=VARCHAR}, ", |
|
|
|
"#{payType,jdbcType=INTEGER}, #{laborUnionCard,jdbcType=VARCHAR}, ", |
|
|
|
"#{userPhone,jdbcType=VARCHAR}, #{goodsId,jdbcType=BIGINT}, ", |
|
|
|
"#{integralNum,jdbcType=DECIMAL}, #{discountDeductionPrice,jdbcType=DECIMAL}, ", |
|
|
|
"#{rechargeContent,jdbcType=VARCHAR}, #{payType,jdbcType=INTEGER}, ", |
|
|
|
"#{integralDeductionPrice,jdbcType=DECIMAL}, #{payRealPrice,jdbcType=DECIMAL}, ", |
|
|
|
"#{laborUnionCard,jdbcType=VARCHAR}, #{integralNum,jdbcType=DECIMAL}, ", |
|
|
|
"#{paySerialNo,jdbcType=VARCHAR}, #{createTimed,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{discountDeductionPrice,jdbcType=DECIMAL}, #{integralDeductionPrice,jdbcType=DECIMAL}, ", |
|
|
|
"#{payTime,jdbcType=TIMESTAMP}, #{cancelTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{payRealPrice,jdbcType=DECIMAL}, #{paySerialNo,jdbcType=VARCHAR}, ", |
|
|
|
"#{finishTime,jdbcType=TIMESTAMP}, #{outRefundNo,jdbcType=VARCHAR}, ", |
|
|
|
"#{createTimed,jdbcType=TIMESTAMP}, #{payTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{orderPrice,jdbcType=DECIMAL}, #{refundTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{cancelTime,jdbcType=TIMESTAMP}, #{finishTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{tpRefundOrderNo,jdbcType=VARCHAR}, #{refundId,jdbcType=VARCHAR}, ", |
|
|
|
"#{outRefundNo,jdbcType=VARCHAR}, #{orderPrice,jdbcType=DECIMAL}, ", |
|
|
|
"#{refundFee,jdbcType=DECIMAL}, #{companyId,jdbcType=BIGINT}, ", |
|
|
|
"#{refundTime,jdbcType=TIMESTAMP}, #{tpRefundOrderNo,jdbcType=VARCHAR}, ", |
|
|
|
"#{payStatus,jdbcType=INTEGER}, #{rechargeStatus,jdbcType=INTEGER}, ", |
|
|
|
"#{refundId,jdbcType=VARCHAR}, #{refundFee,jdbcType=DECIMAL}, ", |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{companyId,jdbcType=BIGINT}, #{payStatus,jdbcType=INTEGER}, ", |
|
|
|
|
|
|
|
"#{rechargeStatus,jdbcType=INTEGER}, #{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); |
|
|
@ -84,6 +86,7 @@ public interface OutRechargeOrderMapper extends OutRechargeOrderMapperExt { |
|
|
|
@SelectProvider(type=OutRechargeOrderSqlProvider.class, method="selectByExample") |
|
|
|
@SelectProvider(type=OutRechargeOrderSqlProvider.class, method="selectByExample") |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
|
|
|
@Result(column="recharge_price", property="rechargePrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="operator_name", property="operatorName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="operator_name", property="operatorName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="operator_type", property="operatorType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="operator_type", property="operatorType", jdbcType=JdbcType.INTEGER), |
|
|
@ -124,17 +127,19 @@ public interface OutRechargeOrderMapper extends OutRechargeOrderMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, `type`, operator_name, operator_type, order_no, recharge_type, mem_discount_id, ", |
|
|
|
"id, recharge_price, `type`, operator_name, operator_type, order_no, recharge_type, ", |
|
|
|
"mem_discount_name, user_id, user_name, user_phone, goods_id, recharge_content, ", |
|
|
|
"mem_discount_id, mem_discount_name, user_id, user_name, user_phone, goods_id, ", |
|
|
|
"pay_type, labor_union_card, integral_num, discount_deduction_price, integral_deduction_price, ", |
|
|
|
"recharge_content, pay_type, labor_union_card, integral_num, discount_deduction_price, ", |
|
|
|
"pay_real_price, pay_serial_no, create_timed, pay_time, cancel_time, finish_time, ", |
|
|
|
"integral_deduction_price, pay_real_price, pay_serial_no, create_timed, pay_time, ", |
|
|
|
"out_refund_no, order_price, refund_time, tp_refund_order_no, refund_id, refund_fee, ", |
|
|
|
"cancel_time, finish_time, out_refund_no, order_price, refund_time, tp_refund_order_no, ", |
|
|
|
"company_id, pay_status, recharge_status, ext_1, ext_2, ext_3", |
|
|
|
"refund_id, refund_fee, company_id, pay_status, recharge_status, 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="recharge_price", property="rechargePrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="operator_name", property="operatorName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="operator_name", property="operatorName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="operator_type", property="operatorType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="operator_type", property="operatorType", jdbcType=JdbcType.INTEGER), |
|
|
@ -184,7 +189,8 @@ public interface OutRechargeOrderMapper extends OutRechargeOrderMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Update({ |
|
|
|
@Update({ |
|
|
|
"update out_recharge_order", |
|
|
|
"update out_recharge_order", |
|
|
|
"set `type` = #{type,jdbcType=INTEGER},", |
|
|
|
"set recharge_price = #{rechargePrice,jdbcType=DECIMAL},", |
|
|
|
|
|
|
|
"`type` = #{type,jdbcType=INTEGER},", |
|
|
|
"operator_name = #{operatorName,jdbcType=VARCHAR},", |
|
|
|
"operator_name = #{operatorName,jdbcType=VARCHAR},", |
|
|
|
"operator_type = #{operatorType,jdbcType=INTEGER},", |
|
|
|
"operator_type = #{operatorType,jdbcType=INTEGER},", |
|
|
|
"order_no = #{orderNo,jdbcType=VARCHAR},", |
|
|
|
"order_no = #{orderNo,jdbcType=VARCHAR},", |
|
|
|