| | |
| | | String wellId = step.getWellId();
|
| | | if (!StringUtils.isNull(wellId)) {
|
| | | /*获取井坐标*/
|
| | | ArdAlarmpointsWell ardAlarmpointsWell = ardAlarmpointsWellMapper.selectArdAlarmpointsWellById(wellId);
|
| | | ArdAlarmpointsWell well = ardAlarmpointsWellMapper.selectArdAlarmpointsWellById(wellId);
|
| | | double[] targetPositon = new double[3];
|
| | | targetPositon[0] = ardAlarmpointsWell.getLongitude();
|
| | | targetPositon[1] = ardAlarmpointsWell.getLatitude();
|
| | | targetPositon[2] = ardAlarmpointsWell.getAltitude();
|
| | | targetPositon[0] = well.getLongitude();
|
| | | targetPositon[1] = well.getLatitude();
|
| | | targetPositon[2] = well.getAltitude();
|
| | | /*获取相机坐标*/
|
| | | ArdCameras cameras = ardCamerasMapper.selectArdCamerasById(cameraId);
|
| | | if (StringUtils.isNull(cameras)) {
|
| | |
| | | cmd.setOperator("sys_patrol_inspect");
|
| | | cmd.setExpired(step.getRecordingTime() * 60);
|
| | | Map<String, Double> ptzMap = new HashMap<>();
|
| | | ptzMap.put("p", ardAlarmpointsWell.getGuideP());
|
| | | ptzMap.put("t", ardAlarmpointsWell.getGuideT());
|
| | | ptzMap.put("z", ardAlarmpointsWell.getGuideZ());
|
| | | switch (channel) {
|
| | | case 1:
|
| | | ptzMap.put("p", well.getGuideP1());
|
| | | ptzMap.put("t", well.getGuideT1());
|
| | | ptzMap.put("z", well.getGuideZ1());
|
| | | break;
|
| | | case 2:
|
| | | ptzMap.put("p", well.getGuideP2());
|
| | | ptzMap.put("t", well.getGuideT2());
|
| | | ptzMap.put("z", well.getGuideZ2());
|
| | | break;
|
| | | }
|
| | | cmd.setPtzMap(ptzMap);
|
| | | boolean setTargetPosition;
|
| | | if (cmd.getPtzMap().get("p") != null) {
|
| | |
| | | String wellId = step.getWellId();
|
| | | if (!StringUtils.isNull(wellId)) {
|
| | | /*获取井坐标*/
|
| | | ArdAlarmpointsWell ardAlarmpointsWell = ardAlarmpointsWellMapper.selectArdAlarmpointsWellById(wellId);
|
| | | ArdAlarmpointsWell well = ardAlarmpointsWellMapper.selectArdAlarmpointsWellById(wellId);
|
| | | double[] targetPositon = new double[3];
|
| | | targetPositon[0] = ardAlarmpointsWell.getLongitude();
|
| | | targetPositon[1] = ardAlarmpointsWell.getLatitude();
|
| | | targetPositon[2] = ardAlarmpointsWell.getAltitude();
|
| | | targetPositon[0] = well.getLongitude();
|
| | | targetPositon[1] = well.getLatitude();
|
| | | targetPositon[2] = well.getAltitude();
|
| | | /*获取相机坐标*/
|
| | | ArdCameras cameras = ardCamerasMapper.selectArdCamerasById(cameraId);
|
| | | if (StringUtils.isNull(cameras)) {
|
| | |
| | | cmd.setOperator("sys_patrol_inspect");
|
| | | cmd.setExpired(step.getRecordingTime() * 60);
|
| | | Map<String, Double> ptzMap = new HashMap<>();
|
| | | ptzMap.put("p", ardAlarmpointsWell.getGuideP());
|
| | | ptzMap.put("t", ardAlarmpointsWell.getGuideT());
|
| | | ptzMap.put("z", ardAlarmpointsWell.getGuideZ());
|
| | | switch (channel) {
|
| | | case 1:
|
| | | ptzMap.put("p", well.getGuideP1());
|
| | | ptzMap.put("t", well.getGuideT1());
|
| | | ptzMap.put("z", well.getGuideZ1());
|
| | | break;
|
| | | case 2:
|
| | | ptzMap.put("p", well.getGuideP2());
|
| | | ptzMap.put("t", well.getGuideT2());
|
| | | ptzMap.put("z", well.getGuideZ2());
|
| | | break;
|
| | | }
|
| | | cmd.setPtzMap(ptzMap);
|
| | | boolean setTargetPosition;
|
| | | if (cmd.getPtzMap().get("p") != null) {
|