|
@@ -4,6 +4,7 @@ import cn.com.ty.lift.ud.quan_news.controller.query.QuanNewsQuery;
|
|
|
import cn.com.ty.lift.ud.quan_news.mapper.entity.QuanNews;
|
|
|
import cn.com.ty.lift.ud.quan_news.service.IQuanNewsService;
|
|
|
import cn.com.ty.lift.ud.question.controller.query.QuestionBankAppQuery;
|
|
|
+import cn.com.ty.lift.ud.question.controller.query.QuestionBankQuery;
|
|
|
import cn.com.ty.lift.ud.question.service.IQuestionBankService;
|
|
|
import cn.com.ty.lift.ud.recruitmentInfos.controller.query.RecruitmentInfoQuery;
|
|
|
import cn.com.ty.lift.ud.recruitmentInfos.service.IRecruitmentInfoService;
|
|
@@ -245,9 +246,10 @@ public class SearchIndexServiceImpl extends ServiceImpl<SearchIndexMapper, Searc
|
|
|
if (null != request) {
|
|
|
//查询不同的表中的数据
|
|
|
//题库
|
|
|
- QuestionBankAppQuery query1 = new QuestionBankAppQuery();
|
|
|
+ QuestionBankQuery query1 = new QuestionBankQuery();
|
|
|
query1.setTitle(request);
|
|
|
- RestResponse restResponse1 = iQuestionBankService.selectAppByExample(query1);
|
|
|
+ query1.setPlatform("app");
|
|
|
+ RestResponse restResponse1 = iQuestionBankService.selectByExample(query1);
|
|
|
IPage data = (IPage) restResponse1.getData();
|
|
|
if (ListUtil.isNotEmpty(data.getRecords())) {
|
|
|
SearchIndexVo searchIndexVo1 = new SearchIndexVo();
|
|
@@ -258,6 +260,7 @@ public class SearchIndexServiceImpl extends ServiceImpl<SearchIndexMapper, Searc
|
|
|
//视频
|
|
|
SchoolVideoQuery query2 = new SchoolVideoQuery();
|
|
|
query2.setTitle(request);
|
|
|
+ query2.setPlatform("app");
|
|
|
RestResponse restResponse2 = iSchoolVideoService.selectByExample(query2);
|
|
|
IPage data2 = (IPage) restResponse2.getData();
|
|
|
if (ListUtil.isNotEmpty(data2.getRecords())) {
|
|
@@ -269,6 +272,7 @@ public class SearchIndexServiceImpl extends ServiceImpl<SearchIndexMapper, Searc
|
|
|
//商城
|
|
|
ShoppingQuery query3 = new ShoppingQuery();
|
|
|
query3.setName(request);
|
|
|
+ query3.setPlatform("app");
|
|
|
IPage<ShoppingEntity> data3 = iShoppingService.page(query3.page(), query3.condition());
|
|
|
if (ListUtil.isNotEmpty(data3.getRecords())) {
|
|
|
SearchIndexVo searchIndexVo3 = new SearchIndexVo();
|
|
@@ -279,6 +283,7 @@ public class SearchIndexServiceImpl extends ServiceImpl<SearchIndexMapper, Searc
|
|
|
//招聘
|
|
|
RecruitmentInfoQuery query4 = new RecruitmentInfoQuery();
|
|
|
query4.setJob(request);
|
|
|
+ query4.setPlatform("app");
|
|
|
RestResponse restResponse4 = iRecruitmentInfoService.selectByExample(query4);
|
|
|
IPage data4 = (IPage) restResponse4.getData();
|
|
|
if (ListUtil.isNotEmpty(data4.getRecords())) {
|