| | |
| | | |
| | | import com.ruoyi.alarmpoints.well.domain.ArdAlarmpointsWell; |
| | | import com.ruoyi.alarmpoints.well.service.IArdAlarmpointsWellService; |
| | | import com.ruoyi.common.annotation.Anonymous; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.dao.DuplicateKeyException; |
| | | import org.springframework.http.HttpStatus; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | 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); |
| | | } |
| | | /** |
| | | * 导出井管理列表 |
| | | */ |
| | |
| | | @PostMapping |
| | | @ApiOperation("新增井") |
| | | public AjaxResult add(@RequestBody ArdAlarmpointsWell ardAlarmpointsWell) { |
| | | return toAjax(ardAlarmpointsWellService.insertArdAlarmpointsWell(ardAlarmpointsWell)); |
| | | try { |
| | | return toAjax(ardAlarmpointsWellService.insertArdAlarmpointsWell(ardAlarmpointsWell)); |
| | | } catch (Exception e) { |
| | | return AjaxResult.error(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | @PutMapping |
| | | @ApiOperation("修改井") |
| | | public AjaxResult edit(@RequestBody ArdAlarmpointsWell ardAlarmpointsWell) { |
| | | try { |
| | | return toAjax(ardAlarmpointsWellService.updateArdAlarmpointsWell(ardAlarmpointsWell)); |
| | | } catch (Exception e) { |
| | | return AjaxResult.error(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | /** |