package com.whyc.controller; import com.whyc.dto.Response; import com.whyc.service.AlarmInspectionService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; /** * 要实现告警巡检单,创建巡检工单表. * 在发生告警的情况下,加入到实时巡检工单表中 * 在点击某个站点的时候,能列出所有未处理过的实时巡检工单 * 进行巡检结果提交的时候,选中已处理的巡检工单,对选中的告警进行是否已经消失的校验(还存在则无法提交巡检处理结果),将实时巡检工单的相关记录移入到巡检工单处理表,并删除实时工单内相关内容 * TODO 有两个定时任务:1.告警产生,加入到巡检实时表,2.告警是否消失,同步到巡检实时表 */ @RestController @Api(tags = "告警巡检实时表") @RequestMapping("alarmInspection") public class AlarmInspectionController { @Autowired private AlarmInspectionService service; @ApiOperation("查询站点对应的巡检单") @GetMapping("") public Response getList(@RequestParam Integer stationId,@RequestParam Integer inspectionType){ return service.getList(stationId,inspectionType); } }