更新搜索结果

This commit is contained in:
cyk 2023-12-27 19:01:19 +08:00
parent 9f198edd1e
commit 4c220ba570
4 changed files with 5 additions and 5 deletions

View File

@ -47,11 +47,11 @@ public class SearchController {
redisService.incrementScore(searchKey);
//返回网站数据
UrlList urlList = urlListService.selectUrListByInput(searchKey);
List<UrlList> urlLists = urlListService.selectUrListByInput(searchKey);
HashMap<String, Object> result = new HashMap<>();
result.put("code", 200);
result.put("msg", "查询成功");
result.put("data",urlList);
result.put("data",urlLists);
String jsonString = JSONObject.toJSONString(result);
return jsonString;

View File

@ -26,7 +26,7 @@ public interface UrlListDao {
int countAllUrlList(@Param("cateList") List<Integer>cateList);
public List<UrlList> selectUrList();
public UrlList selectUrListByInput(String input);
public List<UrlList> selectUrListByInput(String input);
public UrlList selectUrlListByUrlId(Long urlId);

View File

@ -8,7 +8,7 @@ public interface UrlListService {
public int selectCateAndInsertUrl(String parent,String name , String icon ,String url ,Integer userId );
public List<UrlList> selectUrList();
public UrlList selectUrListByInput(String input);
public List<UrlList> selectUrListByInput(String input);
public UrlList selectUrlListByUrlId(Long urlId);
public int updateUrlStatusListById(UrlList urlList);

View File

@ -65,7 +65,7 @@ public class UrlLiserServiceImpl implements UrlListService {
public int insertUrlByUser(UrlList urlList){return urlListDao.insertSelective(urlList);}
public UrlList selectUrListByInput(String input)
public List<UrlList> selectUrListByInput(String input)
{
return urlListDao.selectUrListByInput(input);
}