查询接口优化

This commit is contained in:
2026-01-12 10:36:35 +08:00
parent daa3b9f2c2
commit 7cb1fbb726
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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