|
|
|
@ -17,14 +17,7 @@ import com.ruoyi.common.security.utils.SecurityUtils;
|
|
|
|
|
import com.ruoyi.system.api.domain.SysUser;
|
|
|
|
|
import com.ruoyi.system.api.model.LoginUser;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.PutMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
import com.ruoyi.common.log.annotation.Log;
|
|
|
|
|
import com.ruoyi.common.log.enums.BusinessType;
|
|
|
|
|
import com.ruoyi.common.security.annotation.RequiresPermissions;
|
|
|
|
@ -57,7 +50,7 @@ public class HwMonitorPlatformController extends BaseController {
|
|
|
|
|
* @return list
|
|
|
|
|
* @throws
|
|
|
|
|
* */
|
|
|
|
|
@PostMapping("/treeList")
|
|
|
|
|
@GetMapping("/treeList")
|
|
|
|
|
public TableDataInfo treeList(List<HwMonitorUnit> hwMonitorUnits){
|
|
|
|
|
List<HwMonitorUnit> list = hwMonitorUnitService.selectTreeList(hwMonitorUnits);
|
|
|
|
|
return getDataTable(list);
|
|
|
|
@ -91,9 +84,11 @@ public class HwMonitorPlatformController extends BaseController {
|
|
|
|
|
@PostMapping("/selectDeviceByDeviceModeByMonitorUnitId")
|
|
|
|
|
public Map<String, Map<String, Object>> selectDeviceByDeviceModeByMonitorUnitId(Long monitorUnitId){
|
|
|
|
|
startPage();
|
|
|
|
|
|
|
|
|
|
Map<String, Map<String, Object>> maps = hwDeviceService.selectDeviceByDeviceModeByMonitorUnitId(monitorUnitId);
|
|
|
|
|
return maps;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取直采变量的设备
|
|
|
|
|
* @param monitorUnitId 监控单元id
|
|
|
|
@ -101,6 +96,7 @@ public class HwMonitorPlatformController extends BaseController {
|
|
|
|
|
@PostMapping("/selectDeviceModeFunctionByFunctionType")
|
|
|
|
|
public Map<String, Map<String, Object>> selectDeviceModeFunctionByFunctionType(Long monitorUnitId){
|
|
|
|
|
startPage();
|
|
|
|
|
|
|
|
|
|
Map<String, Map<String, Object>> maps = hwDeviceService.selectDeviceModeFunctionByFunctionType(monitorUnitId);
|
|
|
|
|
return maps;
|
|
|
|
|
}
|
|
|
|
|