智慧保安后台管理-外网
Administrator
2022-06-07 20058d5bcb4978169b2c152681891ebcaa3f5bc5
培训报名,保安员导入修改ftp 连接时间
2 files modified
30 ■■■■ changed files
src/main/java/org/springblade/modules/system/service/impl/UserServiceImpl.java 16 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/training/controller/TrainingRegistrationController.java 14 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/system/service/impl/UserServiceImpl.java
@@ -1379,7 +1379,7 @@
            //调用ftp获取返回数据
            while (true){
                try {
                    Thread.sleep(1000);
                    Thread.sleep(3000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
@@ -1389,12 +1389,12 @@
                if (result.getCode() == 200) {
                    break;
                }
//                else {
//                    count++;
//                    if (count == 60) {
//                        break;
//                    }
//                }
                else {
                    count++;
                    if (count == 60) {
                        break;
                    }
                }
            }
        }
@@ -1640,7 +1640,7 @@
            //调用ftp获取返回数据
            while (true){
                try {
                    Thread.sleep(1000);
                    Thread.sleep(2000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
src/main/java/org/springblade/modules/training/controller/TrainingRegistrationController.java
@@ -329,7 +329,7 @@
        //调用ftp获取返回数据
        while (true){
            try {
                Thread.sleep(1000);
                Thread.sleep(3000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
@@ -339,12 +339,12 @@
            if (result.getCode() == 200) {
                break;
            }
//            else {
//                count++;
//                if (count == 30) {
//                    break;
//                }
//            }
            else {
                count++;
                if (count == 90) {
                    break;
                }
            }
        }
        //创建集合,存年龄符合要求