fix 支付回调异常
This commit is contained in:
@@ -1,28 +1,20 @@
|
|||||||
package com.sv.service.api;
|
package com.sv.service.api;
|
||||||
|
|
||||||
import com.enums.*;
|
import com.enums.*;
|
||||||
import com.github.pagehelper.PageHelper;
|
|
||||||
import com.sv.dto.BasketEnterResult;
|
import com.sv.dto.BasketEnterResult;
|
||||||
import com.sv.dto.api.MemberCardDTO;
|
|
||||||
import com.sv.dto.api.MemberCardVenuesDTO;
|
|
||||||
import com.sv.dto.api.VenueDTO;
|
|
||||||
import com.sv.entity.*;
|
import com.sv.entity.*;
|
||||||
import com.sv.exception.api.ExceptionCodeTemplate;
|
import com.sv.exception.api.ExceptionCodeTemplate;
|
||||||
import com.sv.mapper.BarcodeOrderTimeMapper;
|
import com.sv.mapper.BarcodeOrderTimeMapper;
|
||||||
import com.sv.mapper.OrderMapper;
|
import com.sv.mapper.OrderMapper;
|
||||||
import com.sv.mapper.VenueMapper;
|
import com.sv.mapper.VenueMapper;
|
||||||
import com.sv.service.api.util.DateUtilCard;
|
import com.sv.service.api.util.DateUtilCard;
|
||||||
import com.sv.service.api.util.GeoHashUtils;
|
|
||||||
import com.ydd.framework.core.common.Pagination;
|
|
||||||
import com.ydd.framework.core.common.utils.ValidationUtils;
|
import com.ydd.framework.core.common.utils.ValidationUtils;
|
||||||
import com.ydd.framework.core.exception.ServiceException;
|
import com.ydd.framework.core.exception.ServiceException;
|
||||||
import com.ydd.framework.core.service.impl.BaseServiceImpl;
|
import com.ydd.framework.core.service.impl.BaseServiceImpl;
|
||||||
import com.ydd.oms.entity.enums.PayStatusEnum;
|
import com.ydd.oms.entity.enums.PayStatusEnum;
|
||||||
import org.apache.commons.lang.StringUtils;
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
<insert id="insert" parameterType="com.sv.entity.BarcodeOrderTime" >
|
<insert id="insert" parameterType="com.sv.entity.BarcodeOrderTime" >
|
||||||
insert into sv_barcode_order_time (id, member_id, venue_id,
|
insert into sv_barcode_order_time (id, member_id, venue_id,
|
||||||
created_time, modified_time, order_start,
|
created_time, modified_time, order_start,
|
||||||
order_end, status,paying ,pay_money)
|
order_end, status,paying ,pay_money,order_sn)
|
||||||
values (#{id,jdbcType=INTEGER}, #{memberId,jdbcType=INTEGER}, #{venueId,jdbcType=INTEGER},
|
values (#{id,jdbcType=INTEGER}, #{memberId,jdbcType=INTEGER}, #{venueId,jdbcType=INTEGER},
|
||||||
#{createdTime,jdbcType=TIMESTAMP}, #{modifiedTime,jdbcType=TIMESTAMP}, #{orderStart,jdbcType=TIMESTAMP},
|
#{createdTime,jdbcType=TIMESTAMP}, #{modifiedTime,jdbcType=TIMESTAMP}, #{orderStart,jdbcType=TIMESTAMP},
|
||||||
#{orderEnd,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, #{paying,jdbcType=INTEGER}, #{payMoney,jdbcType=INTEGER}, #{orderSn,jdbcType=VARCHAR})
|
#{orderEnd,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, #{paying,jdbcType=INTEGER}, #{payMoney,jdbcType=INTEGER}, #{orderSn,jdbcType=VARCHAR})
|
||||||
|
|||||||
@@ -399,15 +399,7 @@
|
|||||||
<!-- api 根据用户Id,订单号查询订单 -->
|
<!-- api 根据用户Id,订单号查询订单 -->
|
||||||
<select id="findOrderSn" resultMap="OrderMap">
|
<select id="findOrderSn" resultMap="OrderMap">
|
||||||
SELECT
|
SELECT
|
||||||
id,
|
<include refid="Field"></include>
|
||||||
member_id,
|
|
||||||
order_sn,
|
|
||||||
price,
|
|
||||||
`type`,
|
|
||||||
platform_id,
|
|
||||||
to_money,
|
|
||||||
pay_status,
|
|
||||||
trade_sn
|
|
||||||
FROM
|
FROM
|
||||||
<include refid="tableName"></include>
|
<include refid="tableName"></include>
|
||||||
WHERE order_sn = #{orderSn}
|
WHERE order_sn = #{orderSn}
|
||||||
|
|||||||
Reference in New Issue
Block a user