lixing 4 lat temu
rodzic
commit
82fc06314c

+ 6 - 0
fm-person/src/main/java/com/persagy/fm/saas/accountrole/service/impl/SaasAccountRoleServiceImpl.java

@@ -87,6 +87,9 @@ public class SaasAccountRoleServiceImpl implements ISaasAccountRoleService {
 
     @Override
     public List<SaasAccountRole> querySaasAccountRoleListByAccountIdList(List<String> accountIdList) {
+        if (CollectionUtils.isEmpty(accountIdList)) {
+            return null;
+        }
         QuerySaasAccountRoleDTO querySaasAccountRoleDTO = new QuerySaasAccountRoleDTO();
         querySaasAccountRoleDTO.setAccountIds(accountIdList);
         return querySaasAccountRoleList(querySaasAccountRoleDTO);
@@ -94,6 +97,9 @@ public class SaasAccountRoleServiceImpl implements ISaasAccountRoleService {
 
     @Override
     public Map<String, AccountRoleVO> queryAccountRoleVoMapByAccountIdList(List<String> accountIdList) {
+        if (CollectionUtils.isEmpty(accountIdList)) {
+            return null;
+        }
         List<SaasAccountRole> saasAccountRoles = querySaasAccountRoleListByAccountIdList(accountIdList);
 
         if (CollectionUtils.isEmpty(saasAccountRoles)) {