更新搜索结果
This commit is contained in:
parent
9f198edd1e
commit
4c220ba570
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user