| | |
| | | Map<String,Object> result = ardAlarmpointsWellService.getWellDataByPatrolplanIdAndPosition(para,sysConfigResult); |
| | | return AjaxResult.success(result); |
| | | } |
| | | |
| | | @GetMapping("/getWellById") |
| | | @ApiOperation("根据查询兴趣点基本属性") |
| | | public AjaxResult getWellById(@RequestBody Map<String,String> para){ |
| | | ArdAlarmpointsWell result = ardAlarmpointsWellService.getWellById(para.get("id")); |
| | | return AjaxResult.success(result); |
| | | } |
| | | } |
| | |
| | | |
| | | ArdAlarmpointsWell getWellDataByPatrolplanIdAndPosition(@Param("patrolplanId") String patrolplanId,@Param("longitude") Double longitude,@Param("latitude") Double latitude); |
| | | |
| | | ArdAlarmpointsWell getWellById(String id); |
| | | } |
| | |
| | | Map<String,Object> getWellDataByWellId(String wellId, List<SysConfig> config); |
| | | |
| | | Map<String,Object> getWellDataByPatrolplanIdAndPosition(Map<String,Object> para,List<SysConfig> sysConfigResult); |
| | | |
| | | ArdAlarmpointsWell getWellById(String id); |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public ArdAlarmpointsWell getWellById(String id) { |
| | | ArdAlarmpointsWell result = ardAlarmpointsWellMapper.getWellById(id); |
| | | return result; |
| | | } |
| | | |
| | | public int checkTable(String url, String username, String password, String tableName) throws ClassNotFoundException, SQLException { |
| | | Connection connection = null; |
| | | |
| | |
| | | <= (select cast(sc.config_value as decimal) from sys_config sc where sc.config_key = 'appAlarmPointsDistance') |
| | | order by f_compute_distance(cast(#{longitude} as decimal),cast(#{latitude} as decimal),aaw.longitude,aaw.latitude) desc limit 1 offset 0 |
| | | </select> |
| | | |
| | | <select id="getWellById" resultMap="ArdAlarmpointsWellOnlyResult"> |
| | | select aaw.* from ard_alarmpoints_well aaw where aaw.id = #{id} |
| | | </select> |
| | | </mapper> |