查询接口优化
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
|
||||
|
||||
Reference in New Issue
Block a user