|
@@ -21,7 +21,7 @@ public interface NewsMapper extends IBaseMapper<NewsEntity, Long> {
|
|
List<NewsEntity> newsSort(String type);
|
|
List<NewsEntity> newsSort(String type);
|
|
|
|
|
|
@Update("update tb_news set visit = visit + 1 , update_time = NOW() where is_delete = 0 AND id = #{id}")
|
|
@Update("update tb_news set visit = visit + 1 , update_time = NOW() where is_delete = 0 AND id = #{id}")
|
|
- Result addVisit(Long id);
|
|
|
|
|
|
+ void addVisit(Long id);
|
|
|
|
|
|
@Select("SELECT id, name, content FROM tb_news WHERE is_delete = 0 AND concat(name, content) like #{searchKey} ")
|
|
@Select("SELECT id, name, content FROM tb_news WHERE is_delete = 0 AND concat(name, content) like #{searchKey} ")
|
|
List<SearchVo> searchLike(String searchKey);
|
|
List<SearchVo> searchLike(String searchKey);
|