|
@@ -4394,10 +4394,12 @@ public class ApsBlankOrderServiceImpl extends ServiceImpl<ApsBlankOrderDao, ApsB
|
|
|
String res = "needWait";
|
|
|
while (res.equals("needWait")) {
|
|
|
res = doRestartSchedule(bancaiTenantId);
|
|
|
- try {
|
|
|
- Thread.sleep(640000);
|
|
|
- } catch (InterruptedException e) {
|
|
|
- throw new RuntimeException(e);
|
|
|
+ if (res.equals("needWait")) {
|
|
|
+ try {
|
|
|
+ Thread.sleep(640000);
|
|
|
+ } catch (InterruptedException e) {
|
|
|
+ throw new RuntimeException(e);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if (res.equals("success")) {//调度之后,预排程
|
|
@@ -4413,10 +4415,12 @@ public class ApsBlankOrderServiceImpl extends ServiceImpl<ApsBlankOrderDao, ApsB
|
|
|
String res = "needWait";
|
|
|
while (res.equals("needWait")) {
|
|
|
res = doRestartSchedule(bocaiTenantId);
|
|
|
- try {
|
|
|
- Thread.sleep(640000);
|
|
|
- } catch (InterruptedException e) {
|
|
|
- throw new RuntimeException(e);
|
|
|
+ if (res.equals("needWait")) {
|
|
|
+ try {
|
|
|
+ Thread.sleep(640000);
|
|
|
+ } catch (InterruptedException e) {
|
|
|
+ throw new RuntimeException(e);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if (res.equals("success")) {//调度之后,预排程
|