| | |
| | | import com.ycl.api.CommonPage; |
| | | import com.ycl.api.CommonResult; |
| | | import com.ycl.controller.BaseController; |
| | | import com.ycl.dto.smoker.InTimeCountDto; |
| | | import com.ycl.entity.smoke.OdsCustomer; |
| | | import com.ycl.entity.smoke.OdsInTime; |
| | | import com.ycl.service.smoke.IOdsCustomerService; |
| | |
| | | Page<OdsInTime> inTimePage = inTimeService.findList(owner, onlineStatus, startTime, endTime, type, status, pageSize, pageNum); |
| | | return CommonResult.success(CommonPage.restPage(inTimePage)); |
| | | } |
| | | |
| | | @ApiOperation("获取设备在线情况") |
| | | @RequestMapping(value = "/inTime/count", method = RequestMethod.GET) |
| | | @ResponseBody |
| | | @LogSave(operationType = "油烟模块", contain = "获取设备在线情况") |
| | | public CommonResult<InTimeCountDto> getInTimeCount() { |
| | | InTimeCountDto dto = inTimeService.getInTimeCount(); |
| | | return CommonResult.success(dto); |
| | | } |
| | | } |