From 9590de2c1971b596c047deddd926c2b80ade2c67 Mon Sep 17 00:00:00 2001 From: kdyzm <zhengrongjun@haier.com> Date: 星期三, 02 六月 2021 17:08:00 +0800 Subject: [PATCH] 优化树生成的代码生成:增加loading、修改删除按钮的回调函数为箭头函数 --- ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDictDataServiceImpl.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDictDataServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDictDataServiceImpl.java index 7038565..4b08a14 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDictDataServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDictDataServiceImpl.java @@ -11,6 +11,7 @@ import com.ruoyi.system.service.ISysDictDataService; import org.springframework.stereotype.Service; +import java.util.Arrays; import java.util.List; /** @@ -83,10 +84,10 @@ public void deleteDictDataByIds(Long[] dictCodes) { for (Long dictCode : dictCodes) { SysDictData data = selectDictDataById(dictCode); - baseMapper.deleteById(dictCode); List<SysDictData> dictDatas = baseMapper.selectDictDataByType(data.getDictType()); DictUtils.setDictCache(data.getDictType(), dictDatas); } + baseMapper.deleteBatchIds(Arrays.asList(dictCodes)); } /** -- Gitblit v1.9.3