fix: 避免ERP推送泄漏唯一键异常
This commit is contained in:
@@ -101,7 +101,11 @@ public class DailyPlanServiceImpl implements DailyPlanService {
|
||||
try {
|
||||
return transactionTemplate.execute(status -> processErpDailyPlan(reqVO));
|
||||
} catch (DuplicateKeyException ex) {
|
||||
try {
|
||||
return transactionTemplate.execute(status -> processErpDailyPlan(reqVO));
|
||||
} catch (DuplicateKeyException retryEx) {
|
||||
throw exception(DAILY_PLAN_VERSION_CONFLICT);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user