测试提交
This commit is contained in:
@@ -1,50 +1,50 @@
|
|||||||
package com.njcn.device.pms.controller.ledgerManger;
|
//package com.njcn.device.pms.controller.ledgerManger;
|
||||||
|
//
|
||||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
//import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||||
import com.njcn.common.pojo.response.HttpResult;
|
//import com.njcn.common.pojo.response.HttpResult;
|
||||||
import com.njcn.common.utils.HttpResultUtil;
|
//import com.njcn.common.utils.HttpResultUtil;
|
||||||
import com.njcn.device.biz.pojo.dto.DeptGetChildrenDTO;
|
//import com.njcn.device.biz.pojo.dto.DeptGetChildrenDTO;
|
||||||
import com.njcn.device.biz.pojo.param.DeptGetLineParam;
|
//import com.njcn.device.biz.pojo.param.DeptGetLineParam;
|
||||||
import com.njcn.device.pms.service.majornetwork.IMonitorService;
|
//import com.njcn.device.pms.service.majornetwork.IMonitorService;
|
||||||
import com.njcn.web.controller.BaseController;
|
//import com.njcn.web.controller.BaseController;
|
||||||
import io.swagger.annotations.Api;
|
//import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiImplicitParam;
|
//import io.swagger.annotations.ApiImplicitParam;
|
||||||
import lombok.RequiredArgsConstructor;
|
//import lombok.RequiredArgsConstructor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
//import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.validation.annotation.Validated;
|
//import org.springframework.validation.annotation.Validated;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
//import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
//import org.springframework.web.bind.annotation.RequestBody;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
//import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
//import org.springframework.web.bind.annotation.RestController;
|
||||||
|
//
|
||||||
import java.util.List;
|
//import java.util.List;
|
||||||
|
//
|
||||||
/**
|
///**
|
||||||
* @author wr
|
// * @author wr
|
||||||
* @description
|
// * @description
|
||||||
* @date 2023/4/26 10:00
|
// * @date 2023/4/26 10:00
|
||||||
*/
|
// */
|
||||||
@RestController
|
//@RestController
|
||||||
@RequestMapping("/commTerminal")
|
//@RequestMapping("/commTerminal")
|
||||||
@RequiredArgsConstructor
|
//@RequiredArgsConstructor
|
||||||
@Slf4j
|
//@Slf4j
|
||||||
@Api(tags = "通用台账-所有子孙部门以及监测点")
|
//@Api(tags = "通用台账-所有子孙部门以及监测点")
|
||||||
public class DeptMonitorController extends BaseController {
|
//public class DeptMonitorController extends BaseController {
|
||||||
|
//
|
||||||
private final IMonitorService monitorService;
|
// private final IMonitorService monitorService;
|
||||||
|
//
|
||||||
/**
|
// /**
|
||||||
* 通过部门获取所有子集部门所拥有的监测点
|
// * 通过部门获取所有子集部门所拥有的监测点
|
||||||
*
|
// *
|
||||||
* @author wr
|
// * @author wr
|
||||||
* @date 2023/4/26
|
// * @date 2023/4/26
|
||||||
*/
|
// */
|
||||||
@PostMapping("/deptGetLineIds")
|
// @PostMapping("/deptGetLineIds")
|
||||||
@ApiImplicitParam(name = "param", value = "请求参数", required = true)
|
// @ApiImplicitParam(name = "param", value = "请求参数", required = true)
|
||||||
public HttpResult<List<DeptGetChildrenDTO>> deptGetLineList(@RequestBody @Validated DeptGetLineParam param) {
|
// public HttpResult<List<DeptGetChildrenDTO>> deptGetLineList(@RequestBody @Validated DeptGetLineParam param) {
|
||||||
String methodDescribe = getMethodDescribe("deptGetLineList");
|
// String methodDescribe = getMethodDescribe("deptGetLineList");
|
||||||
List<DeptGetChildrenDTO> monitor = monitorService.deptMonitor(param);
|
// List<DeptGetChildrenDTO> monitor = monitorService.deptMonitor(param);
|
||||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, monitor, methodDescribe);
|
// return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, monitor, methodDescribe);
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
}
|
//}
|
||||||
|
|||||||
@@ -17,5 +17,10 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
public interface ISubstationExpendService {
|
public interface ISubstationExpendService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 冀北主网监测点通讯状态统计
|
||||||
|
* @param param
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
List<CommunicateVO.PVCommunicateVO> getCommunicationStatus(DeviceInfoParam.CompareLimitParam param);
|
List<CommunicateVO.PVCommunicateVO> getCommunicationStatus(DeviceInfoParam.CompareLimitParam param);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user