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

fixed

parent 6b52896f
package com.chineseall.eden.authcenter.log.service.impl; 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.dao.AuthLogDao;
import com.chineseall.eden.authcenter.log.model.AuthLog; import com.chineseall.eden.authcenter.log.model.AuthLog;
import com.chineseall.eden.authcenter.log.service.AuthLogService; import com.chineseall.eden.authcenter.log.service.AuthLogService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.Date; import java.util.*;
import java.util.List;
import java.util.Map;
import java.util.UUID;
@Service @Service
public class AuthLogServiceImpl implements AuthLogService { public class AuthLogServiceImpl implements AuthLogService {
...@@ -46,7 +44,17 @@ public class AuthLogServiceImpl implements AuthLogService { ...@@ -46,7 +44,17 @@ public class AuthLogServiceImpl implements AuthLogService {
@Override @Override
public List<String> distinct(String key, Map<String, Object> prams) { 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 @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