|
@@ -39,6 +39,11 @@ public class SearchRecordService extends ServiceImpl<SearchRecordMapper, SearchR
|
|
|
@Autowired
|
|
|
private CacheUtil cacheUtils;
|
|
|
|
|
|
+ /**
|
|
|
+ * 添加或更新检索记录
|
|
|
+ * @param vo
|
|
|
+ * @return
|
|
|
+ */
|
|
|
public Integer addSearchRecord(AddSearchRecordDTO vo) {
|
|
|
if (ToolUtil.isEmpty(vo)) {
|
|
|
throw new BusinessException(ExceptionEnum.THE_PARAMETER_EXCEPTION);
|
|
@@ -58,6 +63,11 @@ public class SearchRecordService extends ServiceImpl<SearchRecordMapper, SearchR
|
|
|
return id;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 查询检索记录
|
|
|
+ * @param searchRecordDTO
|
|
|
+ * @return
|
|
|
+ */
|
|
|
public Records searchRecords(SelectSearchRecordDTO searchRecordDTO) {
|
|
|
Long pageNum = searchRecordDTO.getPageNum();
|
|
|
Long pageSize = searchRecordDTO.getPageSize();
|
|
@@ -83,6 +93,11 @@ public class SearchRecordService extends ServiceImpl<SearchRecordMapper, SearchR
|
|
|
return records;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 删除检索记录
|
|
|
+ * @param ids
|
|
|
+ * @return
|
|
|
+ */
|
|
|
public List<Integer> removeSearchRecords(List<Integer> ids) {
|
|
|
if (!CollectionUtils.isEmpty(ids)) {
|
|
|
throw new BusinessException(ExceptionEnum.THE_PARAMETER_EXCEPTION);
|