查询全部摄像头优化
This commit is contained in:
parent
01ecbf0a1d
commit
45b906d816
|
@ -206,10 +206,14 @@ public class Controller {
|
|||
public Result selectAllByGps(String gpsX,String gpsX1,String gpsY,String gpsY1){
|
||||
|
||||
List<CameraChannelDto> gps = cameraChannelMapper.selectAllByGps(gpsX, gpsX1, gpsY, gpsY1);
|
||||
|
||||
Result success = Result.success(gps);
|
||||
|
||||
return success;
|
||||
double gpsx = Double.parseDouble(gpsX);
|
||||
double gpsx1 = Double.parseDouble(gpsX1);
|
||||
double gpsy = Double.parseDouble(gpsY);
|
||||
double gpsy1 = Double.parseDouble(gpsY1);
|
||||
if (gpsx < gpsx1 || gpsy < gpsy1){
|
||||
return Result.success(gps);
|
||||
}
|
||||
return Result.error("请输入正确的精度范围");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<select id="selectAll" resultType="com.hisense.monitormanage.dto.CameraChannelDto">
|
||||
select c.* from t_camera_channel c
|
||||
where (c.gps_x NOT IN('0.0','0','','-1000.0') OR c.gps_y NOT IN('0.0','0','','-1000.0'))
|
||||
AND c.status != 0
|
||||
AND c.status != 0 AND c.check_status != 0
|
||||
<!-- <bind name="page" value="(page-1)*pageSize"/>-->
|
||||
<!-- limit #{page},#{pageSize}-->
|
||||
</select>
|
||||
|
|
Loading…
Reference in New Issue