|
|
@@ -1,5 +1,6 @@
|
|
|
package cn.tr.module.sys.storage.service.impl;
|
|
|
|
|
|
+import cn.hutool.core.collection.CollectionUtil;
|
|
|
import cn.tr.core.exception.ServiceException;
|
|
|
import cn.tr.core.exception.TRExcCode;
|
|
|
import cn.tr.core.utils.JsonUtils;
|
|
|
@@ -128,6 +129,9 @@ public class SysStorageConfigServiceImpl implements ISysStorageConfigService {
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public int removeSysStorageConfigByIds(Collection<String> ids){
|
|
|
+ if(CollectionUtil.isEmpty(ids)){
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
Long count = baseRepository.selectCount(new LambdaQueryWrapper<SysStorageConfigPO>()
|
|
|
.eq(SysStorageConfigPO::getMaster, true)
|
|
|
.in(SysStorageConfigPO::getId, ids));
|