mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-12 20:51:48 +00:00
(improvement)(chat) solved query code compatible with checkstyle (#205)
Co-authored-by: jolunoluo
This commit is contained in:
@@ -203,7 +203,8 @@ public class ChatServiceImpl implements ChatService {
|
|||||||
public List<SolvedQueryRecallResp> getSolvedQuery(String queryText, Integer agentId) {
|
public List<SolvedQueryRecallResp> getSolvedQuery(String queryText, Integer agentId) {
|
||||||
//1. recall solved query by queryText
|
//1. recall solved query by queryText
|
||||||
List<SolvedQueryRecallResp> solvedQueryRecallResps = solvedQueryManager.recallSolvedQuery(queryText, agentId);
|
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 pageQueryInfoReq = new PageQueryInfoReq();
|
||||||
pageQueryInfoReq.setIds(queryIds);
|
pageQueryInfoReq.setIds(queryIds);
|
||||||
pageQueryInfoReq.setPageSize(100);
|
pageQueryInfoReq.setPageSize(100);
|
||||||
|
|||||||
Reference in New Issue
Block a user