(improvement)(chat) solved query code compatible with checkstyle (#205)

Co-authored-by: jolunoluo
This commit is contained in:
LXW
2023-10-13 13:27:46 +08:00
committed by GitHub
parent de764f3353
commit 119e5b8c58

View File

@@ -203,7 +203,8 @@ public class ChatServiceImpl implements ChatService {
public List<SolvedQueryRecallResp> getSolvedQuery(String queryText, Integer agentId) {
//1. recall solved query by queryText
List<SolvedQueryRecallResp> solvedQueryRecallResps = solvedQueryManager.recallSolvedQuery(queryText, agentId);
List<Long> queryIds = solvedQueryRecallResps.stream().map(SolvedQueryRecallResp::getQueryId).collect(Collectors.toList());
List<Long> queryIds = solvedQueryRecallResps.stream()
.map(SolvedQueryRecallResp::getQueryId).collect(Collectors.toList());
PageQueryInfoReq pageQueryInfoReq = new PageQueryInfoReq();
pageQueryInfoReq.setIds(queryIds);
pageQueryInfoReq.setPageSize(100);