|
@@ -4,18 +4,14 @@ import com.baomidou.mybatisplus.mapper.EntityWrapper;
|
|
|
import com.winsea.svc.base.security.util.AuthSecurityUtils;
|
|
|
import com.yh.saas.common.support.util.IdGenerator;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.constant.NumberConstant;
|
|
|
-import com.yh.saas.plugin.yiliangyiyun.constant.StatusEnum;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.entity.ContractManagementInfo;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.entity.SearchRecordsInfo;
|
|
|
-import com.yh.saas.plugin.yiliangyiyun.exception.YException;
|
|
|
-import com.yh.saas.plugin.yiliangyiyun.exception.YExceptionEnum;
|
|
|
+import com.baomidou.mybatisplus.plugins.Page;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.mapper.SearchRecordsInfoMapper;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.service.ISearchRecordsInfoService;
|
|
|
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
|
|
|
-import org.springframework.data.mongodb.core.aggregation.ArrayOperators;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
-import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -30,7 +26,6 @@ public class SearchRecordsInfoServiceImpl extends ServiceImpl<SearchRecordsInfoM
|
|
|
|
|
|
/**
|
|
|
* 新增搜索记录
|
|
|
- *
|
|
|
* @param searchRecordsInfo
|
|
|
* @return
|
|
|
*/
|
|
@@ -57,4 +52,19 @@ public class SearchRecordsInfoServiceImpl extends ServiceImpl<SearchRecordsInfoM
|
|
|
}
|
|
|
return "OK";
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 搜索记录列表
|
|
|
+ * @param searchRecordsInfo
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public Page<SearchRecordsInfo> selectSearchRecordsInfo(SearchRecordsInfo searchRecordsInfo){
|
|
|
+ //查询搜索记录
|
|
|
+ Page<SearchRecordsInfo> searchRecordsInfoPage = this.selectPage(searchRecordsInfo.getQueryPage(), new EntityWrapper<SearchRecordsInfo>()
|
|
|
+ .eq("id", searchRecordsInfo.getId())
|
|
|
+ .eq("comp_id", searchRecordsInfo.getCompId())
|
|
|
+ .orderBy("update_date", false));
|
|
|
+ return searchRecordsInfoPage;
|
|
|
+ }
|
|
|
}
|