From a0bcee3aa22b79f592c44cdb3dcdbd681490f265 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期一, 15 一月 2024 10:34:31 +0800
Subject: [PATCH] 代码提交
---
smartor/src/main/java/com/smartor/service/impl/IvrLibaExtemplateCategoryServiceImpl.java | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/smartor/src/main/java/com/smartor/service/impl/IvrLibaExtemplateCategoryServiceImpl.java b/smartor/src/main/java/com/smartor/service/impl/IvrLibaExtemplateCategoryServiceImpl.java
index 77f161a..5861655 100644
--- a/smartor/src/main/java/com/smartor/service/impl/IvrLibaExtemplateCategoryServiceImpl.java
+++ b/smartor/src/main/java/com/smartor/service/impl/IvrLibaExtemplateCategoryServiceImpl.java
@@ -5,6 +5,7 @@
import com.smartor.domain.IvrLibaExtemplateCategory;
import com.smartor.mapper.IvrLibaExtemplateCategoryMapper;
import com.smartor.service.IIvrLibaExtemplateCategoryService;
+import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@@ -17,6 +18,7 @@
* @author ruoyi
* @date 2023-12-27
*/
+@Slf4j
@Service
public class IvrLibaExtemplateCategoryServiceImpl implements IIvrLibaExtemplateCategoryService {
@Autowired
@@ -85,6 +87,11 @@
public int deleteIvrLibaExtemplateCategoryByIntertcatids(Long[] intertcatids) {
Integer i = null;
for (Long intertcatid : intertcatids) {
+ //璐熸暟鐨処D涓洪粯璁ゅ�硷紝涓嶅彲浠ュ垹闄�
+ if (intertcatid < 0) {
+ log.info("intertcatid鐨勫�间负锛歿}", intertcatid);
+ continue;
+ }
i = ivrLibaExtemplateCategoryMapper.deleteIvrLibaExtemplateCategoryByIntertcatid(intertcatid);
//鍒犻櫎鎴愬姛鍚庯紝濡傛灉璇ュ垹闄ょ殑ID涓嬫湁瀛愭暟鎹紝鍒欏皢瀛愭暟鎹斁鍒版湭鍒嗛厤涓嬮潰
IvrLibaExtemplateCategory ivrLibaExtemplateCategory = new IvrLibaExtemplateCategory();
@@ -93,7 +100,7 @@
if (CollectionUtils.isNotEmpty(ivrLibaExtemplateCategories)) {
for (IvrLibaExtemplateCategory ivrLibaExtemplateCategory1 : ivrLibaExtemplateCategories) {
//璁剧疆鏈垎閰岻D
- ivrLibaExtemplateCategory1.setPid(999999999L);
+ ivrLibaExtemplateCategory1.setPid(-1L);
ivrLibaExtemplateCategoryMapper.updateIvrLibaExtemplateCategory(ivrLibaExtemplateCategory1);
}
}
--
Gitblit v1.9.3