查询接口优化
This commit is contained in:
@@ -124,7 +124,7 @@ public class JobServiceImpl extends ServiceImpl<JobMapper,Job> implements IJobSe
|
|||||||
|
|
||||||
// 调用高德API获取经纬度(添加适当延迟)
|
// 调用高德API获取经纬度(添加适当延迟)
|
||||||
TimeUnit.MILLISECONDS.sleep(500);
|
TimeUnit.MILLISECONDS.sleep(500);
|
||||||
Map<String, BigDecimal> coordinates = getCoordinates(job.getJobLocation(), "青岛市");
|
Map<String, BigDecimal> coordinates = getCoordinates(job.getJobLocation(), "石河子市");
|
||||||
|
|
||||||
if (coordinates != null) {
|
if (coordinates != null) {
|
||||||
// 3. 更新工作记录的经纬度
|
// 3. 更新工作记录的经纬度
|
||||||
@@ -683,6 +683,7 @@ public class JobServiceImpl extends ServiceImpl<JobMapper,Job> implements IJobSe
|
|||||||
@Override
|
@Override
|
||||||
public void updateLon() {
|
public void updateLon() {
|
||||||
updateJobLon();
|
updateJobLon();
|
||||||
|
iesJobSearchService.resetTextCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
<where>
|
<where>
|
||||||
del_flag = '0'
|
del_flag = '0'
|
||||||
<if test="query.searchValue != null and query.searchValue != ''">
|
<if test="query.searchValue != null and query.searchValue != ''">
|
||||||
and zcmc like concat('%', #{query.searchValue}, '%')
|
and zcmc like '%' || #{query.searchValue}::varchar || '%'
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
order by publish_time desc, create_time desc
|
order by publish_time desc, create_time desc
|
||||||
|
|||||||
Reference in New Issue
Block a user