Commit 82e9ef77 by YANGYANG

Merge remote-tracking branch 'origin/skyp_Api' into skyp_Api

parents 02be66c6 66a4ece5
......@@ -164,7 +164,9 @@ public class SkPointlocationController extends ApiController implements ExcelCon
queryWrapper.le("str_to_date(date,'%Y-%m-%d %H:%i:%s')", skPointlocationParam.getJssj());
}
List<Point> geoametrys = skPointlocationParam.getGeometrys();
if (geoametrys!=null){
if(geoametrys.size()>0) {
// 多个点位即为多边形
if (geoametrys.size()>1) {
......@@ -180,9 +182,9 @@ public class SkPointlocationController extends ApiController implements ExcelCon
} else if(StringUtils.isNotEmpty(skPointlocationParam.getRadius())){
queryWrapper.apply("ST_Distance_Sphere(coordinates, POINT(" + geoametrys.get(0).getX()+","+ geoametrys.get(0).getY() + ")) < " + skPointlocationParam.getRadius());
}
}else{
return MapRestResult.error("边界数据必传!");
}
}
IPage page1 = skPointlocationService.page(page, queryWrapper);
return new MapRestResult(200, "OK", page1.getTotal(), page1.getRecords());
......
......@@ -25,7 +25,7 @@
#{y},
#{skPointlocation.address},
#{skPointlocation.objecttype},
#{skPointlocation.objectname},
#{objectname},
#{time},
#{skPointlocation.date},
'0',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment