|
@@ -855,14 +855,14 @@ public class ApsServiceImpl implements ApsService {
|
|
|
try {
|
|
|
apsBlankOrderService.ddApsAfter(productionScheduleRetVo, apsBlankOrders, currentUser, apsType);
|
|
|
isSuccess = true;
|
|
|
- } catch (SQLNonTransientConnectionException | CJCommunicationsException |
|
|
|
- SocketTimeoutException | CommunicationsException e) {
|
|
|
+ } catch (Exception e) {
|
|
|
try {
|
|
|
Thread.sleep(120000);
|
|
|
} catch (InterruptedException ignored) {
|
|
|
}
|
|
|
- } catch (Exception e) {
|
|
|
- throw new CustomException(e.getMessage());
|
|
|
+ if (i == 4) {
|
|
|
+ throw new CustomException(e.getMessage());
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -876,14 +876,14 @@ public class ApsServiceImpl implements ApsService {
|
|
|
try {
|
|
|
apsBlankOrderService.apsAfter(productionScheduleRetVo, apsBlankOrders, currentUser, apsType);
|
|
|
isSuccess = true;
|
|
|
- } catch (SQLNonTransientConnectionException | CJCommunicationsException |
|
|
|
- SocketTimeoutException | CommunicationsException e) {
|
|
|
+ } catch (Exception e) {
|
|
|
try {
|
|
|
Thread.sleep(120000);
|
|
|
} catch (InterruptedException ignored) {
|
|
|
}
|
|
|
- } catch (Exception e) {
|
|
|
- throw new CustomException(e.getMessage());
|
|
|
+ if (i == 4) {
|
|
|
+ throw new CustomException(e.getMessage());
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|