| | |
| | | |
| | | import com.fengdu.gas.common.ExecutedResult; |
| | | import com.fengdu.gas.common.PagerResult; |
| | | import com.fengdu.gas.entity.request.datauploadrecord.ReqGetDataUploadRecord; |
| | | import com.fengdu.gas.entity.response.alarm.FacilityAlarm; |
| | | import com.fengdu.gas.entity.search.SearchFacilityAlarmRecord; |
| | | import com.fengdu.gas.entity.search.SearchSendMessageRecord; |
| | | import com.fengdu.gas.entity.search.SearchUserWorkOrder; |
| | | import com.fengdu.gas.host.BasicController; |
| | | import com.fengdu.gas.repository.vo.FacilityAlarmRecordVO; |
| | | import com.fengdu.gas.repository.vo.UserWorkOrderVO; |
| | | import com.fengdu.gas.repository.po.SendMessageRecordPO; |
| | | import com.fengdu.gas.repository.vo.*; |
| | | import com.fengdu.gas.service.DataUploadRecordService; |
| | | import com.fengdu.gas.service.FacilityAlarmRecordService; |
| | | import com.fengdu.gas.service.SendMessageRecordService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 10000.可视化数据大屏数据统计 |
| | |
| | | @RestController |
| | | @RequestMapping(value = "statisticsData") |
| | | public class StatisticsDataController extends BasicController { |
| | | @Autowired |
| | | private FacilityAlarmRecordService facilityAlarmRecordService; |
| | | @PostMapping(value = "getAlarmList") |
| | | @Autowired |
| | | private FacilityAlarmRecordService facilityAlarmRecordService; |
| | | @Autowired |
| | | private DataUploadRecordService dataUploadRecordService; |
| | | @Autowired |
| | | private SendMessageRecordService sendMessageRecordService; |
| | | |
| | | /** |
| | | * 报警次数统计 |
| | | * @author zr |
| | | */ |
| | | @PostMapping(value = "getAlarmCount") |
| | | public ExecutedResult<List<FacilityAlarm>> getAlarmList(Integer dateType) { |
| | | return facilityAlarmRecordService.getAlarmList(dateType); |
| | | } |
| | | /** |
| | | * 接到报警次数统计 |
| | | * @author zr |
| | | */ |
| | | @PostMapping(value = "getAlarmListByPoint") |
| | | public ExecutedResult<List<FacilityAlarmRecordCount>> getAlarmListByPoint() { |
| | | return facilityAlarmRecordService.getAlarmListByPoint(); |
| | | } |
| | | |
| | | /** |
| | | * 查询报警记录 |
| | | * @author zr |
| | | */ |
| | | @PostMapping(value = "getAlarmRecord") |
| | | public ExecutedResult<List<FacilityAlarmRecordVO>> getAlarmRecord() { |
| | | return facilityAlarmRecordService.getAlarmRecord(); |
| | | } |
| | | /** |
| | | * 气体浓度检测折线图统计 |
| | | * @author zr |
| | | */ |
| | | @PostMapping(value = "getLineChart") |
| | | public ExecutedResult<List<DataUploadRecordDayVO>> getLineChart(@RequestBody ReqGetDataUploadRecord record) { |
| | | return dataUploadRecordService.getLineChart(record); |
| | | } |
| | | /** |
| | | * 短信、邮箱报警记录 |
| | | * @author zr |
| | | */ |
| | | @PostMapping(value = "getMessageList") |
| | | public ExecutedResult<PagerResult<SendMessageRecordVO>> getMessageList(@RequestBody SearchSendMessageRecord request) { |
| | | return sendMessageRecordService.search(request); |
| | | } |
| | | } |