|
|
@ -40,39 +40,39 @@ public interface OutRechargeOrderMapper extends OutRechargeOrderMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into out_recharge_order (`type`, operator_name, ", |
|
|
|
"insert into out_recharge_order (`type`, operator_name, ", |
|
|
|
"order_no, recharge_type, ", |
|
|
|
"operator_type, order_no, ", |
|
|
|
"mem_discount_id, mem_discount_name, ", |
|
|
|
"recharge_type, mem_discount_id, ", |
|
|
|
"user_id, user_name, ", |
|
|
|
"mem_discount_name, user_id, ", |
|
|
|
"user_phone, goods_id, ", |
|
|
|
"user_name, user_phone, ", |
|
|
|
"recharge_content, pay_type, ", |
|
|
|
"goods_id, recharge_content, ", |
|
|
|
"labor_union_card, integral_num, ", |
|
|
|
"pay_type, labor_union_card, ", |
|
|
|
"discount_deduction_price, integral_deduction_price, ", |
|
|
|
"integral_num, discount_deduction_price, ", |
|
|
|
"pay_real_price, pay_serial_no, ", |
|
|
|
"integral_deduction_price, pay_real_price, ", |
|
|
|
"create_timed, pay_time, ", |
|
|
|
"pay_serial_no, create_timed, ", |
|
|
|
"cancel_time, finish_time, ", |
|
|
|
"pay_time, cancel_time, ", |
|
|
|
"out_refund_no, order_price, ", |
|
|
|
"finish_time, out_refund_no, ", |
|
|
|
"refund_time, tp_refund_order_no, ", |
|
|
|
"order_price, refund_time, ", |
|
|
|
"refund_id, refund_fee, ", |
|
|
|
"tp_refund_order_no, refund_id, ", |
|
|
|
"region_id, pay_status, ", |
|
|
|
"refund_fee, region_id, ", |
|
|
|
"recharge_status, ext_1, ", |
|
|
|
"pay_status, recharge_status, ", |
|
|
|
"ext_2, ext_3)", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"values (#{type,jdbcType=INTEGER}, #{operatorName,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{type,jdbcType=INTEGER}, #{operatorName,jdbcType=VARCHAR}, ", |
|
|
|
"#{orderNo,jdbcType=VARCHAR}, #{rechargeType,jdbcType=INTEGER}, ", |
|
|
|
"#{operatorType,jdbcType=INTEGER}, #{orderNo,jdbcType=VARCHAR}, ", |
|
|
|
"#{memDiscountId,jdbcType=BIGINT}, #{memDiscountName,jdbcType=VARCHAR}, ", |
|
|
|
"#{rechargeType,jdbcType=INTEGER}, #{memDiscountId,jdbcType=BIGINT}, ", |
|
|
|
"#{userId,jdbcType=BIGINT}, #{userName,jdbcType=VARCHAR}, ", |
|
|
|
"#{memDiscountName,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, ", |
|
|
|
"#{userPhone,jdbcType=VARCHAR}, #{goodsId,jdbcType=BIGINT}, ", |
|
|
|
"#{userName,jdbcType=VARCHAR}, #{userPhone,jdbcType=VARCHAR}, ", |
|
|
|
"#{rechargeContent,jdbcType=VARCHAR}, #{payType,jdbcType=INTEGER}, ", |
|
|
|
"#{goodsId,jdbcType=BIGINT}, #{rechargeContent,jdbcType=VARCHAR}, ", |
|
|
|
"#{laborUnionCard,jdbcType=VARCHAR}, #{integralNum,jdbcType=BIGINT}, ", |
|
|
|
"#{payType,jdbcType=INTEGER}, #{laborUnionCard,jdbcType=VARCHAR}, ", |
|
|
|
"#{discountDeductionPrice,jdbcType=DECIMAL}, #{integralDeductionPrice,jdbcType=DECIMAL}, ", |
|
|
|
"#{integralNum,jdbcType=BIGINT}, #{discountDeductionPrice,jdbcType=DECIMAL}, ", |
|
|
|
"#{payRealPrice,jdbcType=DECIMAL}, #{paySerialNo,jdbcType=VARCHAR}, ", |
|
|
|
"#{integralDeductionPrice,jdbcType=DECIMAL}, #{payRealPrice,jdbcType=DECIMAL}, ", |
|
|
|
"#{createTimed,jdbcType=TIMESTAMP}, #{payTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{paySerialNo,jdbcType=VARCHAR}, #{createTimed,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{cancelTime,jdbcType=TIMESTAMP}, #{finishTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{payTime,jdbcType=TIMESTAMP}, #{cancelTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{outRefundNo,jdbcType=VARCHAR}, #{orderPrice,jdbcType=DECIMAL}, ", |
|
|
|
"#{finishTime,jdbcType=TIMESTAMP}, #{outRefundNo,jdbcType=VARCHAR}, ", |
|
|
|
"#{refundTime,jdbcType=TIMESTAMP}, #{tpRefundOrderNo,jdbcType=VARCHAR}, ", |
|
|
|
"#{orderPrice,jdbcType=DECIMAL}, #{refundTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{refundId,jdbcType=VARCHAR}, #{refundFee,jdbcType=DECIMAL}, ", |
|
|
|
"#{tpRefundOrderNo,jdbcType=VARCHAR}, #{refundId,jdbcType=VARCHAR}, ", |
|
|
|
"#{regionId,jdbcType=VARCHAR}, #{payStatus,jdbcType=INTEGER}, ", |
|
|
|
"#{refundFee,jdbcType=DECIMAL}, #{regionId,jdbcType=VARCHAR}, ", |
|
|
|
"#{rechargeStatus,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
"#{payStatus,jdbcType=INTEGER}, #{rechargeStatus,jdbcType=INTEGER}, ", |
|
|
|
"#{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); |
|
|
@ -86,6 +86,7 @@ public interface OutRechargeOrderMapper extends OutRechargeOrderMapperExt { |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@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="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="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), |
|
|
@ -123,12 +124,12 @@ public interface OutRechargeOrderMapper extends OutRechargeOrderMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, `type`, operator_name, order_no, recharge_type, mem_discount_id, mem_discount_name, ", |
|
|
|
"id, `type`, operator_name, operator_type, order_no, recharge_type, mem_discount_id, ", |
|
|
|
"user_id, user_name, user_phone, goods_id, recharge_content, pay_type, labor_union_card, ", |
|
|
|
"mem_discount_name, user_id, user_name, user_phone, goods_id, recharge_content, ", |
|
|
|
"integral_num, discount_deduction_price, integral_deduction_price, pay_real_price, ", |
|
|
|
"pay_type, labor_union_card, integral_num, discount_deduction_price, integral_deduction_price, ", |
|
|
|
"pay_serial_no, create_timed, pay_time, cancel_time, finish_time, out_refund_no, ", |
|
|
|
"pay_real_price, pay_serial_no, create_timed, pay_time, cancel_time, finish_time, ", |
|
|
|
"order_price, refund_time, tp_refund_order_no, refund_id, refund_fee, region_id, ", |
|
|
|
"out_refund_no, order_price, refund_time, tp_refund_order_no, refund_id, refund_fee, ", |
|
|
|
"pay_status, recharge_status, ext_1, ext_2, ext_3", |
|
|
|
"region_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}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -136,6 +137,7 @@ public interface OutRechargeOrderMapper extends OutRechargeOrderMapperExt { |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@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="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="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), |
|
|
@ -184,6 +186,7 @@ public interface OutRechargeOrderMapper extends OutRechargeOrderMapperExt { |
|
|
|
"update out_recharge_order", |
|
|
|
"update out_recharge_order", |
|
|
|
"set `type` = #{type,jdbcType=INTEGER},", |
|
|
|
"set `type` = #{type,jdbcType=INTEGER},", |
|
|
|
"operator_name = #{operatorName,jdbcType=VARCHAR},", |
|
|
|
"operator_name = #{operatorName,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"operator_type = #{operatorType,jdbcType=INTEGER},", |
|
|
|
"order_no = #{orderNo,jdbcType=VARCHAR},", |
|
|
|
"order_no = #{orderNo,jdbcType=VARCHAR},", |
|
|
|
"recharge_type = #{rechargeType,jdbcType=INTEGER},", |
|
|
|
"recharge_type = #{rechargeType,jdbcType=INTEGER},", |
|
|
|
"mem_discount_id = #{memDiscountId,jdbcType=BIGINT},", |
|
|
|
"mem_discount_id = #{memDiscountId,jdbcType=BIGINT},", |
|
|
|