fix: 避免ERP推送泄漏唯一键异常

This commit is contained in:
zhouz
2026-08-14 14:37:43 +08:00
parent 0cab62b30d
commit 5048c0fcc9

View File

@@ -101,7 +101,11 @@ public class DailyPlanServiceImpl implements DailyPlanService {
try { try {
return transactionTemplate.execute(status -> processErpDailyPlan(reqVO)); return transactionTemplate.execute(status -> processErpDailyPlan(reqVO));
} catch (DuplicateKeyException ex) { } catch (DuplicateKeyException ex) {
try {
return transactionTemplate.execute(status -> processErpDailyPlan(reqVO)); return transactionTemplate.execute(status -> processErpDailyPlan(reqVO));
} catch (DuplicateKeyException retryEx) {
throw exception(DAILY_PLAN_VERSION_CONFLICT);
}
} }
} }