|  |  |  | 
|---|
|  |  |  | import com.ruoyi.common.utils.poi.ExcelUtil; | 
|---|
|  |  |  | import com.ruoyi.system.service.ISysDeptService; | 
|---|
|  |  |  | import com.ruoyi.system.service.ISysUserService; | 
|---|
|  |  |  | import com.ruoyi.utils.pagehelper.JpaPageInfo; | 
|---|
|  |  |  | import com.ruoyi.utils.result.Results; | 
|---|
|  |  |  | import io.swagger.annotations.Api; | 
|---|
|  |  |  | import io.swagger.annotations.ApiOperation; | 
|---|
|  |  |  | 
|---|
|  |  |  | List<ArdAlarmpointsWell> list = ardAlarmpointsWellService.selectArdAlarmpointsWellList(ardAlarmpointsWell); | 
|---|
|  |  |  | return success(list); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 导出井管理列表 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | 
|---|
|  |  |  | @ApiOperation("修改井") | 
|---|
|  |  |  | public AjaxResult edit(@RequestBody ArdAlarmpointsWell ardAlarmpointsWell) { | 
|---|
|  |  |  | try { | 
|---|
|  |  |  | return toAjax(ardAlarmpointsWellService.updateArdAlarmpointsWell(ardAlarmpointsWell)); | 
|---|
|  |  |  | return toAjax(ardAlarmpointsWellService.updateArdAlarmpointsWell(ardAlarmpointsWell)); | 
|---|
|  |  |  | } catch (Exception e) { | 
|---|
|  |  |  | return AjaxResult.error(e.getMessage()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @PostMapping("/wellList") | 
|---|
|  |  |  | @ApiOperation("查询权限下所有兴趣点") | 
|---|
|  |  |  | public Results wellList(){ | 
|---|
|  |  |  | public Results wellList() { | 
|---|
|  |  |  | String usersId = SecurityUtils.getUserId(); | 
|---|
|  |  |  | //根据userId查询部门Id | 
|---|
|  |  |  | SysUser sysUser = sysUserService.selectUserById(usersId); | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @PostMapping("/conditionList") | 
|---|
|  |  |  | @ApiOperation("查询并筛选权限下所有兴趣点") | 
|---|
|  |  |  | public Results conditionList(ArdAlarmpointsWellParam ardAlarmpointsWellParam){ | 
|---|
|  |  |  | public Results conditionList(ArdAlarmpointsWellParam ardAlarmpointsWellParam) { | 
|---|
|  |  |  | String usersId = SecurityUtils.getUserId(); | 
|---|
|  |  |  | //根据userId查询部门Id | 
|---|
|  |  |  | SysUser sysUser = sysUserService.selectUserById(usersId); | 
|---|
|  |  |  | 
|---|
|  |  |  | //根据deptId获取对应兴趣点数据 | 
|---|
|  |  |  | return Results.succeed(ardAlarmpointsWellService.conditionList(ardAlarmpointsWellParam)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @PostMapping("/getNearbyWells") | 
|---|
|  |  |  | @ApiOperation("查询附近的所有井") | 
|---|
|  |  |  | @ApiOperationSupport(includeParameters = {"longitude","latitude","deptId","pageNum","pageSize"}) | 
|---|
|  |  |  | public TableDataInfo getNearbyWells(ArdAlarmpointsWell ardAlarmpointsWell){ | 
|---|
|  |  |  | startPage(); | 
|---|
|  |  |  | List<ArdAlarmpointsWell> nearbyWellList = ardAlarmpointsWellService.getNearbyWellList(ardAlarmpointsWell,1000); | 
|---|
|  |  |  | return getDataTable(nearbyWellList); | 
|---|
|  |  |  | public AjaxResult getNearbyWells(Double longitude,Double latitude, Long deptId, Integer pageNum, Integer pageSize) { | 
|---|
|  |  |  | JpaPageInfo jpaPageInfo = new JpaPageInfo(); | 
|---|
|  |  |  | jpaPageInfo.setPageNum(pageNum); | 
|---|
|  |  |  | jpaPageInfo.setPageSize(pageSize); | 
|---|
|  |  |  | List<ArdAlarmpointsWell> nearbyWellList = ardAlarmpointsWellService.getNearbyWellList(longitude,latitude, deptId, 1000); | 
|---|
|  |  |  | jpaPageInfo.doPage(nearbyWellList); | 
|---|
|  |  |  | return AjaxResult.success(jpaPageInfo); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|