查询全部摄像头优化

This commit is contained in:
wuweida 2022-05-14 11:38:59 +08:00
parent 01ecbf0a1d
commit 45b906d816
2 changed files with 9 additions and 5 deletions

View File

@ -206,10 +206,14 @@ public class Controller {
public Result selectAllByGps(String gpsX,String gpsX1,String gpsY,String gpsY1){ public Result selectAllByGps(String gpsX,String gpsX1,String gpsY,String gpsY1){
List<CameraChannelDto> gps = cameraChannelMapper.selectAllByGps(gpsX, gpsX1, gpsY, gpsY1); List<CameraChannelDto> gps = cameraChannelMapper.selectAllByGps(gpsX, gpsX1, gpsY, gpsY1);
double gpsx = Double.parseDouble(gpsX);
Result success = Result.success(gps); double gpsx1 = Double.parseDouble(gpsX1);
double gpsy = Double.parseDouble(gpsY);
return success; double gpsy1 = Double.parseDouble(gpsY1);
if (gpsx < gpsx1 || gpsy < gpsy1){
return Result.success(gps);
}
return Result.error("请输入正确的精度范围");
} }
/** /**

View File

@ -12,7 +12,7 @@
<select id="selectAll" resultType="com.hisense.monitormanage.dto.CameraChannelDto"> <select id="selectAll" resultType="com.hisense.monitormanage.dto.CameraChannelDto">
select c.* from t_camera_channel c 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')) 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"/>--> <!-- <bind name="page" value="(page-1)*pageSize"/>-->
<!-- limit #{page},#{pageSize}--> <!-- limit #{page},#{pageSize}-->
</select> </select>