refactor: 修改缓存转换逻辑.
This commit is contained in:
@@ -29,6 +29,7 @@ import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* $!{table.comment} 服务实现类
|
||||
@@ -145,7 +146,9 @@ public class ${table.serviceImplName} implements ${table.serviceName} {
|
||||
// 删除屏障
|
||||
RedisMaps.removeBarrier(list);
|
||||
// 转换
|
||||
return Lists.map(list, ${type}Convert.MAPPER::to);
|
||||
return list.stream()
|
||||
.map(${type}Convert.MAPPER::to)
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
||||
#end
|
||||
|
||||
Reference in New Issue
Block a user