| | |
| | | |
| | | Boolean taskFlag = false; |
| | | |
| | | @Scheduled(cron = "0/2 * * * * ?") |
| | | //@Scheduled(cron = "0/2 * * * * ?") |
| | | public void execute() throws Exception { |
| | | if(taskFlag == true){ |
| | | System.out.println("正在运行,强制退出-------》"); |
| | |
| | | System.out.println("查询是否支付成功返回为:"+entity.getBody()); |
| | | if(entity.getBody().getCode() == 1){ |
| | | //更新订单 |
| | | payController.updateOrderRecord(outPark.getPayCode(),"03"); |
| | | // payController.updateOrderRecord(outPark.getPayCode(),"03"); |
| | | } |
| | | |
| | | }); |
| | |
| | | for (int i = 0; i < 10; i++) { |
| | | String s= i+""; |
| | | ThreadUtil.execute(() -> { |
| | | System.out.println(s); |
| | | // System.out.println(s); |
| | | }); |
| | | } |
| | | } |