| | |
| | | import com.ruoyi.alarmpoints.well.domain.ArdAlarmpointsWell; |
| | | import com.ruoyi.alarmpoints.well.domain.ArdAlarmpointsWellParam; |
| | | import com.ruoyi.alarmpoints.well.service.IArdAlarmpointsWellService; |
| | | import com.ruoyi.common.core.domain.entity.SysConfig; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.system.service.ISysConfigService; |
| | | import com.ruoyi.system.service.ISysDeptService; |
| | | import com.ruoyi.system.service.ISysUserService; |
| | | import com.ruoyi.utils.data.Query; |
| | | import com.ruoyi.utils.pagehelper.JpaPageInfo; |
| | | import com.ruoyi.utils.result.Results; |
| | | import io.swagger.annotations.Api; |
| | |
| | | |
| | | @Autowired |
| | | private ISysDeptService sysDeptService; |
| | | |
| | | @Autowired |
| | | private ISysConfigService sysConfigService; |
| | | |
| | | /** |
| | | * 查询井管理列表 |
| | |
| | | @ApiOperation("导入井") |
| | | public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception { |
| | | ExcelUtil<ArdAlarmpointsWell> util = new ExcelUtil<ArdAlarmpointsWell>(ArdAlarmpointsWell.class); |
| | | List<ArdAlarmpointsWell> userList = util.importExcel(file.getInputStream()); |
| | | List<ArdAlarmpointsWell> wellList = util.importExcel(file.getInputStream()); |
| | | String operName = getUsername(); |
| | | String message = ardAlarmpointsWellService.importUser(userList, updateSupport, operName); |
| | | String message = ardAlarmpointsWellService.importWell(wellList, updateSupport, operName); |
| | | return success(message); |
| | | } |
| | | |
| | |
| | | return AjaxResult.success(jpaPageInfo); |
| | | } |
| | | |
| | | @GetMapping("/getRTUDataYJ8") |
| | | @ApiOperation("查询设备运行状态") |
| | | public AjaxResult getRTUDataYJ8(String wellId){ |
| | | return AjaxResult.success(Query.getRTUDataYJ8(wellId)); |
| | | } |
| | | |
| | | @GetMapping("/getWellDataByWellId") |
| | | @ApiOperation("查询设备动静态属性") |
| | | public AjaxResult getWellData(String wellId){ |
| | | SysConfig config = new SysConfig(); |
| | | config.setConfigKey("3coracle"); |
| | | List<SysConfig> sysConfigResult = sysConfigService.selectConfigList(config); |
| | | Map<String,Object> result = ardAlarmpointsWellService.getWellDataByWellId(wellId,sysConfigResult); |
| | | return AjaxResult.success(result); |
| | | } |
| | | |
| | | @GetMapping("/getWellDataByPatrolplanIdAndPosition") |
| | | @ApiOperation("查询最近巡检设备动静态属性") |
| | | public AjaxResult getWellDataByPatrolplanIdAndPosition(@RequestBody Map<String,Object> para){ |
| | | SysConfig config = new SysConfig(); |
| | | config.setConfigKey("3coracle"); |
| | | List<SysConfig> sysConfigResult = sysConfigService.selectConfigList(config); |
| | | 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); |
| | | } |
| | | } |