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