Forráskód Böngészése

易乾不存在的订单5分钟关闭

周箭河 5 éve
szülő
commit
0b644e142d

+ 2 - 2
src/main/java/com/ym/mec/collectfee/controller/YqPayController.java

@@ -81,7 +81,7 @@ public class YqPayController extends BaseController {
         //判断用户是否已存在订单
         Order userOrder = orderService.findOrderByStatus(order.getUserId(), 1);
         if (userOrder != null) {
-            return failed("您有待支付的订单,请完成支付");
+            return failed("您有待支付的订单,请稍后重试");
         }
         //1、判断已报名人数
         CourseGroupInfo courseGroupInfo = CourseGroupInfoService.get(order.getCourseId());
@@ -387,7 +387,7 @@ public class YqPayController extends BaseController {
     }
 
 
-    @Scheduled(cron = "0/5 * * * * ?")
+   // @Scheduled(cron = "0/5 * * * * ?")
     //@RequestMapping("/getOrderStatus")
     public void getOrderStatus() throws Exception {
 

+ 1 - 1
src/main/resources/config/mybatis/OrderMapper.xml

@@ -168,7 +168,7 @@
 		SELECT * FROM `order` WHERE order_no = #{orderNo} AND status = 1
 	</select>
     <select id="findOrderByStatus" resultType="com.ym.mec.collectfee.entity.Order">
-		SELECT * FROM `order` WHERE user_id = #{userId} AND status = #{status}
+		SELECT * FROM `order` WHERE user_id = #{userId} AND `status` = #{status}
 	</select>
     <!-- 获取支付中和成功的订单数-->
     <select id="getPayOrderNums" resultType="java.lang.Integer">