refactor: 修改缓存转换逻辑.

This commit is contained in:
lijiahangmax
2023-11-16 22:24:24 +08:00
parent 30f0496328
commit 6c056cecff
6 changed files with 21 additions and 6 deletions

View File

@@ -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