kongdeqiang
2023-06-08 d0c8bb3267a8a666b9a7ad1ae406c88b2fceff58
src/main/java/com/boying/job/PayResultScheduled.java
@@ -36,7 +36,7 @@
    Boolean taskFlag = false;
    @Scheduled(cron = "0/2 * * * * ?")
    //@Scheduled(cron = "0/2 * * * * ?")
    public void execute() throws Exception {
        if(taskFlag == true){
            System.out.println("正在运行,强制退出-------》");
@@ -62,7 +62,6 @@
                //查询到最后一个出场没缴费的记录
                OutPark outPark = outParks.get(0);
                log.info("查询到最后的出场信息为:"+outPark);
                System.out.println(outPark);
                //查询缴款码记录更新
                doPay(outPark);
            }
@@ -83,7 +82,7 @@
            System.out.println("查询是否支付成功返回为:"+entity.getBody());
            if(entity.getBody().getCode() == 1){
                //更新订单
                payController.updateOrderRecord(outPark.getPayCode(),"03");
               // payController.updateOrderRecord(outPark.getPayCode(),"03");
            }
        });
@@ -93,7 +92,7 @@
        for (int i = 0; i < 10; i++) {
            String s= i+"";
            ThreadUtil.execute(() -> {
                System.out.println(s);
              //  System.out.println(s);
            });
        }
    }