From 5048c0fcc94ffaf4ec76bfc6a60c45513e8870e0 Mon Sep 17 00:00:00 2001 From: zhouz <> Date: Fri, 14 Aug 2026 14:37:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=81=BF=E5=85=8DERP=E6=8E=A8=E9=80=81?= =?UTF-8?q?=E6=B3=84=E6=BC=8F=E5=94=AF=E4=B8=80=E9=94=AE=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module/lms/service/dailyplan/DailyPlanServiceImpl.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/service/dailyplan/DailyPlanServiceImpl.java b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/service/dailyplan/DailyPlanServiceImpl.java index b9bf57ab..6e0d3518 100644 --- a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/service/dailyplan/DailyPlanServiceImpl.java +++ b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/service/dailyplan/DailyPlanServiceImpl.java @@ -101,7 +101,11 @@ public class DailyPlanServiceImpl implements DailyPlanService { try { return transactionTemplate.execute(status -> processErpDailyPlan(reqVO)); } catch (DuplicateKeyException ex) { - return transactionTemplate.execute(status -> processErpDailyPlan(reqVO)); + try { + return transactionTemplate.execute(status -> processErpDailyPlan(reqVO)); + } catch (DuplicateKeyException retryEx) { + throw exception(DAILY_PLAN_VERSION_CONFLICT); + } } }