|
|
@ -5,6 +5,8 @@ import javax.servlet.http.HttpServletResponse; |
|
|
|
|
|
|
|
import com.zc.business.domain.DcEventAbnormalWeather; |
|
|
|
import com.zc.business.service.IDcEventAbnormalWeatherService; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import org.springframework.security.access.prepost.PreAuthorize; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
@ -24,7 +26,7 @@ import com.ruoyi.common.utils.poi.ExcelUtil; |
|
|
|
import com.ruoyi.common.core.page.TableDataInfo; |
|
|
|
|
|
|
|
/** |
|
|
|
* 设备设施隐患事件 |
|
|
|
* 异常天气事件 |
|
|
|
|
|
|
|
"异常天气"为事件“事件子类”Controller |
|
|
|
* |
|
|
@ -33,17 +35,20 @@ import com.ruoyi.common.core.page.TableDataInfo; |
|
|
|
*/ |
|
|
|
@RestController |
|
|
|
@RequestMapping("/system/weather") |
|
|
|
@Api(tags = "异常天气事件") |
|
|
|
public class DcEventAbnormalWeatherController extends BaseController |
|
|
|
{ |
|
|
|
@Autowired |
|
|
|
private IDcEventAbnormalWeatherService dcEventAbnormalWeatherService; |
|
|
|
|
|
|
|
/** |
|
|
|
* 查询设备设施隐患事件 |
|
|
|
* 查询异常天气事件事件 |
|
|
|
|
|
|
|
"异常天气"为事件“事件子类”列表 |
|
|
|
*/ |
|
|
|
@PreAuthorize("@ss.hasPermi('system:weather:list')") |
|
|
|
@ApiOperation("查询异常天气事件") |
|
|
|
|
|
|
|
// @PreAuthorize("@ss.hasPermi('system:weather:list')")
|
|
|
|
@GetMapping("/list") |
|
|
|
public TableDataInfo list(DcEventAbnormalWeather dcEventAbnormalWeather) |
|
|
|
{ |
|
|
@ -53,12 +58,12 @@ public class DcEventAbnormalWeatherController extends BaseController |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 导出设备设施隐患事件 |
|
|
|
* 导出异常天气事件事件 |
|
|
|
|
|
|
|
"异常天气"为事件“事件子类”列表 |
|
|
|
*/ |
|
|
|
@PreAuthorize("@ss.hasPermi('system:weather:export')") |
|
|
|
@Log(title = "设备设施隐患事件 为事件“事件子类”", businessType = BusinessType.EXPORT) |
|
|
|
//@PreAuthorize("@ss.hasPermi('system:weather:export')")
|
|
|
|
@Log(title = "异常天气事件 为事件“事件子类”", businessType = BusinessType.EXPORT) |
|
|
|
@PostMapping("/export") |
|
|
|
public void export(HttpServletResponse response, DcEventAbnormalWeather dcEventAbnormalWeather) |
|
|
|
{ |
|
|
@ -68,11 +73,12 @@ public class DcEventAbnormalWeatherController extends BaseController |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 获取设备设施隐患事件 |
|
|
|
* 获取异常天气事件 |
|
|
|
|
|
|
|
"异常天气"为事件“事件子类”详细信息 |
|
|
|
*/ |
|
|
|
@PreAuthorize("@ss.hasPermi('system:weather:query')") |
|
|
|
@ApiOperation("根据id获取异常天气事件") |
|
|
|
//@PreAuthorize("@ss.hasPermi('system:weather:query')")
|
|
|
|
@GetMapping(value = "/{id}") |
|
|
|
public AjaxResult getInfo(@PathVariable("id") String id) |
|
|
|
{ |
|
|
@ -80,11 +86,12 @@ public class DcEventAbnormalWeatherController extends BaseController |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 新增设备设施隐患事件 |
|
|
|
* 新增异常天气事件 |
|
|
|
|
|
|
|
"异常天气"为事件“事件子类” |
|
|
|
*/ |
|
|
|
@PreAuthorize("@ss.hasPermi('system:weather:add')") |
|
|
|
@ApiOperation("新增异常天气事件") |
|
|
|
//@PreAuthorize("@ss.hasPermi('system:weather:add')")
|
|
|
|
@Log(title = "设备设施隐患事件 ", businessType = BusinessType.INSERT) |
|
|
|
@PostMapping |
|
|
|
public AjaxResult add(@RequestBody DcEventAbnormalWeather dcEventAbnormalWeather) |
|
|
@ -93,12 +100,13 @@ public class DcEventAbnormalWeatherController extends BaseController |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 修改设备设施隐患事件 |
|
|
|
* 修改异常天气事件 |
|
|
|
|
|
|
|
"异常天气"为事件“事件子类” |
|
|
|
*/ |
|
|
|
@PreAuthorize("@ss.hasPermi('system:weather:edit')") |
|
|
|
@Log(title = "设备设施隐患事件 ", businessType = BusinessType.UPDATE) |
|
|
|
@ApiOperation("修改异常天气事件") |
|
|
|
//@PreAuthorize("@ss.hasPermi('system:weather:edit')")
|
|
|
|
@Log(title = "设备异常天气事件 ", businessType = BusinessType.UPDATE) |
|
|
|
@PutMapping |
|
|
|
public AjaxResult edit(@RequestBody DcEventAbnormalWeather dcEventAbnormalWeather) |
|
|
|
{ |
|
|
@ -106,12 +114,13 @@ public class DcEventAbnormalWeatherController extends BaseController |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 删除设备设施隐患事件 |
|
|
|
* 删除异常天气事件 |
|
|
|
|
|
|
|
"异常天气"为事件“事件子类” |
|
|
|
*/ |
|
|
|
@PreAuthorize("@ss.hasPermi('system:weather:remove')") |
|
|
|
@Log(title = "设备设施隐患事件 ", businessType = BusinessType.DELETE) |
|
|
|
@ApiOperation("删除异常天气事件") |
|
|
|
//@PreAuthorize("@ss.hasPermi('system:weather:remove')")
|
|
|
|
@Log(title = "设备异常天气事件 ", businessType = BusinessType.DELETE) |
|
|
|
@DeleteMapping("/{ids}") |
|
|
|
public AjaxResult remove(@PathVariable String[] ids) |
|
|
|
{ |
|
|
|