|  |  |  | 
|---|
|  |  |  | return getDataTable(list); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @PreAuthorize("@ss.hasPermi('alarmpoints:well:list')") | 
|---|
|  |  |  | @GetMapping("/nonPageList") | 
|---|
|  |  |  | @ApiOperation("查询井列表-不分页") | 
|---|
|  |  |  | public AjaxResult nonPageList(ArdAlarmpointsWell ardAlarmpointsWell) { | 
|---|
|  |  |  | List<ArdAlarmpointsWell> list = ardAlarmpointsWellService.selectArdAlarmpointsWellList(ardAlarmpointsWell); | 
|---|
|  |  |  | return success(list); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 导出井管理列表 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | 
|---|
|  |  |  | public AjaxResult add(@RequestBody ArdAlarmpointsWell ardAlarmpointsWell) { | 
|---|
|  |  |  | try { | 
|---|
|  |  |  | return toAjax(ardAlarmpointsWellService.insertArdAlarmpointsWell(ardAlarmpointsWell)); | 
|---|
|  |  |  | } catch (DuplicateKeyException e) { | 
|---|
|  |  |  | return AjaxResult.error("井号重复"); | 
|---|
|  |  |  | } catch (Exception e) { | 
|---|
|  |  |  | return AjaxResult.error(e.getMessage()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | @ApiOperation("修改井") | 
|---|
|  |  |  | public AjaxResult edit(@RequestBody ArdAlarmpointsWell ardAlarmpointsWell) { | 
|---|
|  |  |  | try { | 
|---|
|  |  |  | return toAjax(ardAlarmpointsWellService.updateArdAlarmpointsWell(ardAlarmpointsWell)); | 
|---|
|  |  |  | } catch (DuplicateKeyException e) { | 
|---|
|  |  |  | return AjaxResult.error("井号重复"); | 
|---|
|  |  |  | return toAjax(ardAlarmpointsWellService.updateArdAlarmpointsWell(ardAlarmpointsWell)); | 
|---|
|  |  |  | } catch (Exception e) { | 
|---|
|  |  |  | return AjaxResult.error(e.getMessage()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|