4 changed files with 108 additions and 4 deletions
@ -0,0 +1,70 @@
|
||||
package com.mh.web.controller.monitor; |
||||
|
||||
import com.mh.common.core.controller.BaseController; |
||||
import com.mh.common.core.domain.dto.DeviceMonitorDTO; |
||||
import com.mh.common.core.domain.entity.CollectionParamsManage; |
||||
import com.mh.common.core.page.TableDataInfo; |
||||
import com.mh.system.service.device.ICollectionParamsManageService; |
||||
import org.springframework.web.bind.annotation.RequestMapping; |
||||
import org.springframework.web.bind.annotation.RequestParam; |
||||
import org.springframework.web.bind.annotation.RestController; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @author LJF |
||||
* @version 1.0 |
||||
* @project EEMCS |
||||
* @description 三台采暖泵的监测 |
||||
* @date 2025-09-12 09:36:33 |
||||
*/ |
||||
@RestController |
||||
@RequestMapping("/device") |
||||
public class HeatingPumpMonitorController extends BaseController { |
||||
|
||||
private final ICollectionParamsManageService collectionParamsManageService; |
||||
|
||||
public HeatingPumpMonitorController(ICollectionParamsManageService collectionParamsManageService) { |
||||
this.collectionParamsManageService = collectionParamsManageService; |
||||
} |
||||
|
||||
/** |
||||
* 获取 alarmList 列表 |
||||
* @param systemType 3 |
||||
* @param type 0:代表查询报警 |
||||
* @return |
||||
*/ |
||||
@RequestMapping("/heatPump/alarmList") |
||||
public TableDataInfo list(@RequestParam(name = "systemType") String systemType, |
||||
@RequestParam(name = "type", required = false, defaultValue = "0") String type) { |
||||
List<?> list = collectionParamsManageService.selectHeatPumpAlarmListByParams(systemType, type, "14", "5"); |
||||
return getDataTable(list); |
||||
} |
||||
|
||||
/** |
||||
* 获取 运行热泵统计 列表 |
||||
* @param systemType 3 |
||||
* @param type 0:代表查询报警 |
||||
* @return |
||||
*/ |
||||
@RequestMapping("/heatPump/online") |
||||
public TableDataInfo online(@RequestParam(name = "systemType") String systemType, |
||||
@RequestParam(name = "type", required = false, defaultValue = "0") String type) { |
||||
List<?> list = collectionParamsManageService.selectHeatPumpOnlineByParams(systemType, type); |
||||
return getDataTable(list); |
||||
} |
||||
|
||||
/** |
||||
* 获取 采暖泵 列表 |
||||
* @param systemType 3 |
||||
* @param type 0:代表查询动画界面数据 |
||||
* @return |
||||
*/ |
||||
@RequestMapping("/heatPump/list") |
||||
public TableDataInfo heatPumpList(@RequestParam(name = "systemType") String systemType, |
||||
@RequestParam(name = "type", required = false, defaultValue = "0") String type) { |
||||
List<DeviceMonitorDTO> list = collectionParamsManageService.selectHotWaterBoilerListByParams(systemType, type, "14"); |
||||
return getDataTable(list); |
||||
} |
||||
|
||||
} |
||||
Loading…
Reference in new issue