From ae3200fadc28f925e516d85da7fcb78d402960f7 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期二, 30 七月 2024 18:16:10 +0800 Subject: [PATCH] 代码提交 --- smartor/src/main/java/com/smartor/service/impl/HeLibraryServiceImpl.java | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/smartor/src/main/java/com/smartor/service/impl/HeLibraryServiceImpl.java b/smartor/src/main/java/com/smartor/service/impl/HeLibraryServiceImpl.java index 9a4cc9f..1595709 100644 --- a/smartor/src/main/java/com/smartor/service/impl/HeLibraryServiceImpl.java +++ b/smartor/src/main/java/com/smartor/service/impl/HeLibraryServiceImpl.java @@ -103,14 +103,13 @@ */ @Override public Integer saveOrUpdateScript(HeLibraryVO heLibraryVO) { - Integer i = null; HeLibrary heLibrary = DtoConversionUtils.sourceToTarget(heLibraryVO, HeLibrary.class); if (heLibraryVO.getIsoperation() != null && heLibraryVO.getIsoperation() == 1) { //鏂板 - i = heLibraryMapper.insertHeLibrary(heLibrary); + heLibraryMapper.insertHeLibrary(heLibrary); } else if (heLibraryVO.getIsoperation() != null && heLibraryVO.getIsoperation() == 2) { //淇敼 - i = heLibraryMapper.updateHeLibrary(heLibrary); + heLibraryMapper.updateHeLibrary(heLibrary); } log.info("鏂板鎴栦慨鏀瑰鏁欒鎯呯殑id涓猴細{}", heLibrary.getId()); // @@ -146,7 +145,7 @@ // } // } - return i; + return heLibrary.getId().intValue(); } @Override -- Gitblit v1.9.3