| | |
| | | |
| | | import annotation.Log; |
| | | import com.ycl.platform.domain.entity.TMonitor; |
| | | import com.ycl.platform.domain.vo.TMonitorVO; |
| | | import com.ycl.platform.service.ITMonitorService; |
| | | import com.ycl.system.AjaxResult; |
| | | import com.ycl.system.controller.BaseController; |
| | |
| | | import enumeration.BusinessType; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | |
| | | public TableDataInfo list(TMonitor tMonitor) |
| | | { |
| | | startPage(); |
| | | List<TMonitor> list = tMonitorService.selectTMonitorList(tMonitor); |
| | | List<TMonitorVO> list = tMonitorService.selectTMonitorList(tMonitor); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, TMonitor tMonitor) |
| | | { |
| | | List<TMonitor> list = tMonitorService.selectTMonitorList(tMonitor); |
| | | ExcelUtil<TMonitor> util = new ExcelUtil<TMonitor>(TMonitor.class); |
| | | List<TMonitorVO> list = tMonitorService.selectTMonitorList(tMonitor); |
| | | ExcelUtil<TMonitorVO> util = new ExcelUtil<TMonitorVO>(TMonitorVO.class); |
| | | util.exportExcel(response, list, "设备资产数据"); |
| | | } |
| | | |
| | |
| | | { |
| | | return toAjax(tMonitorService.deleteTMonitorByIds(ids)); |
| | | } |
| | | |
| | | /** |
| | | * 获取视频设备统计数 |
| | | */ |
| | | @GetMapping("/getVideoCount/{cameraFunType}") |
| | | public AjaxResult getVideoCount(@PathVariable String cameraFunType) |
| | | { |
| | | return success(tMonitorService.getVideoCount(cameraFunType)); |
| | | } |
| | | |
| | | /** |
| | | * 获取异常恢复视频设备统计数 |
| | | */ |
| | | @GetMapping("/recoveryException") |
| | | public AjaxResult recoveryException() |
| | | { |
| | | return success(tMonitorService.recoveryException()); |
| | | } |
| | | |
| | | |
| | | } |