liujunchi 3 years ago
parent
commit
995cabb0e6

+ 2 - 0
cooleshow-mall/mall-portal/src/main/java/com/yonge/cooleshow/portal/service/UserOrderPaymentService.java

@@ -48,4 +48,6 @@ public interface UserOrderPaymentService {
      * @param message 信息
      */
     void closePayment(String orderSn, String message);
+
+    UserOrderPayment selectByOrderNoAndStatusPaying(String orderSn);
 }

+ 5 - 3
cooleshow-mall/mall-portal/src/main/java/com/yonge/cooleshow/portal/service/impl/UserOrderPaymentServiceImpl.java

@@ -1,6 +1,5 @@
 package com.yonge.cooleshow.portal.service.impl;
 
-import com.yonge.cooleshow.common.entity.HttpResponseResult;
 import com.yonge.cooleshow.enums.PayChannelEnum;
 import com.yonge.cooleshow.enums.PayStatusEnum;
 import com.yonge.cooleshow.mbg.mapper.UserOrderPaymentMapper;
@@ -12,11 +11,9 @@ import com.yonge.cooleshow.service.PaymentService;
 import com.yonge.toolset.utils.string.StringUtil;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
-import org.springframework.util.CollectionUtils;
 
 import java.util.Date;
 import java.util.List;
-import java.util.Map;
 
 /**
  * Description
@@ -89,4 +86,9 @@ public class UserOrderPaymentServiceImpl implements UserOrderPaymentService {
             userOrderPaymentMapper.updateByPrimaryKeySelective(orderPayment);
         }
     }
+
+    @Override
+    public UserOrderPayment selectByOrderNoAndStatusPaying(String orderSn) {
+        return userOrderPaymentMapper.selectByOrderNoAndStatusPaying(orderSn);
+    }
 }