Commit ac7b7d5a authored by 喻春霖's avatar 喻春霖

fixed

parent 6b52896f
package com.chineseall.eden.authcenter.log.service.impl;
import cn.sh.chineseall.framework.core.util.CollectionUtils;
import com.chineseall.eden.authcenter.log.dao.AuthLogDao;
import com.chineseall.eden.authcenter.log.model.AuthLog;
import com.chineseall.eden.authcenter.log.service.AuthLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.util.*;
@Service
public class AuthLogServiceImpl implements AuthLogService {
......@@ -46,7 +44,17 @@ public class AuthLogServiceImpl implements AuthLogService {
@Override
public List<String> distinct(String key, Map<String, Object> prams) {
return authLogDao.distinct(key,prams);
List<String> stringList = authLogDao.distinct(key, prams);
List<String> result=new ArrayList<>();
if (CollectionUtils.isNotEmpty(stringList)){
stringList.forEach(item -> {
if (null != item){
result.add(item);
}
});
}
return result;
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment