提交 bee1235b authored 作者: xinjunguo's avatar xinjunguo

--no commit message

上级 c5140f87
......@@ -25,7 +25,7 @@ public interface FgSearchHistoryMapper extends BaseMapper<SearchHistory> {
+ "SELECT * from res_searchhistory "
+ "WHERE memberId = #{form.memberId} "
+ "<if test ='form.resourceType == null' >"
+ "and resourceType = 1 "
+ "and resourceType != 9 "
+ "</if>"
+ "<if test ='form.resourceType == 9' >"
+ "and resourceType = 9 "
......@@ -43,5 +43,22 @@ public interface FgSearchHistoryMapper extends BaseMapper<SearchHistory> {
@Select("select * from res_searchhistory order by num desc limit 6 ")
List<SearchHistory> getHotRecord();
/**
* 清空搜索历史
* @param searchHistory
* @return
*/
@Select("<script>"
+ "Delete from res_searchhistory "
+ "WHERE memberId = #{form.memberId} "
+ "<if test ='form.resourceType == null' >"
+ "and resourceType != 9 "
+ "</if>"
+ "<if test ='form.resourceType == 9' >"
+ "and resourceType = 9 "
+ "</if>"
+ "</script>")
boolean deleteMyRecord(@Param("form")FgSearchHistoryForm form);
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论