Browse Source

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

周箭河 5 years ago
parent
commit
e71aa76ed4

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

@@ -72,7 +72,6 @@ public class YqPayController extends BaseController {
     @PostMapping("/toPay")
     @Transactional(rollbackFor = Exception.class)
     public Object toPay(@ModelAttribute @Validated Order order) throws Exception {
-        logger.info(order.toString());
         BigDecimal amount = new BigDecimal("0");
         School school = schoolService.get(order.getClassId());
         //计划招生人数有更新,更新
@@ -387,7 +386,7 @@ public class YqPayController extends BaseController {
     }
 
 
-   // @Scheduled(cron = "0/5 * * * * ?")
+    @Scheduled(cron = "0/5 * * * * ?")
     //@RequestMapping("/getOrderStatus")
     public void getOrderStatus() throws Exception {