提交 9cf66d4f authored 作者: xinjunguo's avatar xinjunguo

--no commit message

上级 bee1235b
......@@ -37,5 +37,5 @@ public interface FgSearchHistoryService extends BaseService<SearchHistory, Integ
* 清空历史记录
* @return
*/
boolean deleteMyRecord();
boolean deleteMyRecord(FgSearchHistoryForm form);
}
......@@ -41,9 +41,6 @@ public class FgSearchHistoryServiceImpl extends BaseServiceImpl<SearchHistory, I
SearchHistory SearchHistory = new SearchHistory();
SearchHistory.setMemberId(redis.getMember().getId());
SearchHistory.setContent(searchHistory.getContent());
if(searchHistory.getResourceType() != null){
SearchHistory.setResourceType(searchHistory.getResourceType());
}
SearchHistory SearchHistorys = mapper.selectOne(SearchHistory);
if (SearchHistorys != null) {
SearchHistorys.setCreateTime(new Date());
......@@ -80,11 +77,8 @@ public class FgSearchHistoryServiceImpl extends BaseServiceImpl<SearchHistory, I
}
@Override
public boolean deleteMyRecord() {
SearchHistory SearchHistory = new SearchHistory();
SearchHistory.setMemberId(redis.getMember().getId());
SearchHistory.setResourceType(1);
mapper.delete(SearchHistory);
return true;
public boolean deleteMyRecord(FgSearchHistoryForm form) {
form.setMemberId(redis.getMember().getId());
return mapper.deleteMyRecord(form);
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论