1234567891011121314151617181920212223242526272829303132333435363738394041 |
- package com.bizmatics.controller.web;
- import com.bizmatics.common.core.bean.ApiResult;
- import com.bizmatics.service.AlarmPowerService;
- import com.bizmatics.service.DeviceService;
- import com.bizmatics.service.vo.ApCountVO;
- import com.bizmatics.service.vo.SiteCountVO;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.stereotype.Controller;
- import org.springframework.web.bind.annotation.RestController;
- import java.util.Date;
- /**
- * 设备
- *
- * @author ya
- * @since 2021-07-07
- */
- @RestController
- @RequestMapping("/device")
- public class DeviceController {
- @Autowired
- private DeviceService deviceService;
- /**
- * 查询设备总数
- * @param startTime
- * @param endTime
- * @return
- */
- @RequestMapping("/count")
- public ApiResult<SiteCountVO> count(Date startTime, Date endTime){
- return ApiResult.success(deviceService.selectDeviceCount(startTime,endTime));
- }
- }
|