Compare commits
2 Commits
c9bb011de9
...
e08cbe45d4
Author | SHA1 | Date | |
---|---|---|---|
![]() |
e08cbe45d4 | ||
![]() |
4ecdf7f477 |
@@ -63,7 +63,7 @@ spring:
|
|||||||
easy-es:
|
easy-es:
|
||||||
enable: true
|
enable: true
|
||||||
banner: false
|
banner: false
|
||||||
address: 127.0.0.1:9200
|
address: 127.0.0.1
|
||||||
global-config:
|
global-config:
|
||||||
process-index-mode: manual
|
process-index-mode: manual
|
||||||
db-config:
|
db-config:
|
||||||
|
@@ -88,9 +88,6 @@ public class AppJobController extends BaseController
|
|||||||
public AjaxResult littleVideo(ESJobSearch esJobSearch)
|
public AjaxResult littleVideo(ESJobSearch esJobSearch)
|
||||||
{
|
{
|
||||||
List<ESJobDocument> jobList = jobService.littleVideo(esJobSearch);
|
List<ESJobDocument> jobList = jobService.littleVideo(esJobSearch);
|
||||||
for (ESJobDocument esJobDocument:jobList){
|
|
||||||
esJobDocument.setPostingDate(date);
|
|
||||||
}
|
|
||||||
return success(jobList);
|
return success(jobList);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,9 +96,6 @@ public class AppJobController extends BaseController
|
|||||||
public AjaxResult littleVideo(@RequestParam(required = true) String uuid,@RequestParam(required = false) Integer count,@RequestParam(required = false) String jobTitle)
|
public AjaxResult littleVideo(@RequestParam(required = true) String uuid,@RequestParam(required = false) Integer count,@RequestParam(required = false) String jobTitle)
|
||||||
{
|
{
|
||||||
List<ESJobDocument> jobList = jobService.littleVideoRandom(uuid,count,jobTitle);
|
List<ESJobDocument> jobList = jobService.littleVideoRandom(uuid,count,jobTitle);
|
||||||
for (ESJobDocument esJobDocument:jobList){
|
|
||||||
esJobDocument.setPostingDate(date);
|
|
||||||
}
|
|
||||||
return success(jobList);
|
return success(jobList);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
@@ -262,7 +262,6 @@ public class ESJobSearchImpl implements IESJobSearchService
|
|||||||
@Override
|
@Override
|
||||||
public List<ESJobDocument> littleVideo(ESJobSearch esJobSearch) {
|
public List<ESJobDocument> littleVideo(ESJobSearch esJobSearch) {
|
||||||
LambdaEsQueryWrapper<ESJobDocument> wrapper = new LambdaEsQueryWrapper<>();
|
LambdaEsQueryWrapper<ESJobDocument> wrapper = new LambdaEsQueryWrapper<>();
|
||||||
//todo 暂时
|
|
||||||
wrapper.eq(ESJobDocument::getIsExplain, 1);
|
wrapper.eq(ESJobDocument::getIsExplain, 1);
|
||||||
wrapper.orderByDesc(ESJobDocument::getIsExplain);
|
wrapper.orderByDesc(ESJobDocument::getIsExplain);
|
||||||
wrapper.limit(esJobSearch.getPageSize());
|
wrapper.limit(esJobSearch.getPageSize());
|
||||||
|
@@ -398,9 +398,7 @@ public class JobServiceImpl extends ServiceImpl<JobMapper,Job> implements IJobSe
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<ESJobDocument> littleVideo(ESJobSearch esJobSearch) {
|
public List<ESJobDocument> littleVideo(ESJobSearch esJobSearch) {
|
||||||
|
|
||||||
return iesJobSearchService.littleVideo(esJobSearch);
|
return iesJobSearchService.littleVideo(esJobSearch);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -44,7 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
SELECT COUNT(*)
|
SELECT COUNT(*)
|
||||||
FROM job j
|
FROM job j
|
||||||
WHERE j.company_id = c.company_id
|
WHERE j.company_id = c.company_id
|
||||||
);
|
)
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<select id="selectCompanyList" parameterType="Company" resultMap="CompanyResult">
|
<select id="selectCompanyList" parameterType="Company" resultMap="CompanyResult">
|
||||||
|
Reference in New Issue
Block a user