czh 2 лет назад
Родитель
Сommit
30cdbab720

+ 5 - 5
sckw-modules/sckw-system/src/main/java/com/sckw/system/dubbo/RemoteSystemServiceImpl.java

@@ -53,7 +53,7 @@ public class RemoteSystemServiceImpl implements RemoteSystemService {
     @Override
     public Map<String, SysDictResDto> queryDictMapByTypeValues(String keys) {
         if (StringUtils.isBlank(keys)) {
-            return null;
+            return Collections.emptyMap();
         }
         Map<String, SysDictResDto> map = new HashMap<>(Global.NUMERICAL_SIXTEEN);
         String[] typeValueArr = keys.split(Global.COMMA);
@@ -78,7 +78,7 @@ public class RemoteSystemServiceImpl implements RemoteSystemService {
     @Override
     public Map<String, SysDictResDto> queryDictMapByType(String type) {
         if (StringUtils.isBlank(type)) {
-            return null;
+            return Collections.emptyMap();
         }
         List<SysDictResDto> sysDictResDtos = queryDictByType(type);
         if (CollectionUtils.isEmpty(sysDictResDtos)) {
@@ -330,7 +330,7 @@ public class RemoteSystemServiceImpl implements RemoteSystemService {
     @Override
     public Map<Long, EntCacheResDto> queryEntTreeByIds(List<Long> entIdList) {
         if (CollectionUtils.isEmpty(entIdList)) {
-            return null;
+            return Collections.emptyMap();
         }
         Map<Long, EntCacheResDto> result = new HashMap<>(4);
         for (Long entId : entIdList) {
@@ -395,7 +395,7 @@ public class RemoteSystemServiceImpl implements RemoteSystemService {
     @Override
     public Map<Long, List<EntCacheResDto>> queryEntDeptCacheByIds(List<Long> entIds) {
         if (CollectionUtils.isEmpty(entIds)) {
-            return null;
+            return Collections.emptyMap();
         }
         List<KwsEntDept> kwsEntDepts = remoteBaseService.queryEntDeptCacheByIds(entIds);
         if (CollectionUtils.isEmpty(kwsEntDepts)) {
@@ -416,7 +416,7 @@ public class RemoteSystemServiceImpl implements RemoteSystemService {
     @Override
     public Map<Long, EntCacheResDto> queryEntCacheMapByIds(List<Long> entIds) {
         if (CollectionUtils.isEmpty(entIds)) {
-            return null;
+            return Collections.emptyMap();
         }
         List<EntCacheResDto> entCacheResDtos = queryEntCacheByIds(entIds);
         if (CollectionUtils.isEmpty(entCacheResDtos)) {