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