代码调整
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
|
||||
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.pms.pojo.dto.PmsMonitorBaseDTO;
|
||||
import com.njcn.device.pms.pojo.param.DistributionMonitorParam;
|
||||
import com.njcn.device.pms.pojo.param.PmsDeviceInfoParam;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
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 com.njcn.web.controller.BaseController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 配网监测点台账
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pms/distributionMonitor")
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
@Api(tags = "台账-配网监测点")
|
||||
public class DistributionMonitorController extends BaseController {
|
||||
|
||||
/**
|
||||
* 新增配网监测点表
|
||||
* @author cdf
|
||||
* @date 2022/10/26
|
||||
*/
|
||||
@PostMapping
|
||||
@ApiImplicitParam(name = "distributionMonitorParam",value = "配网监测点实体",required = true)
|
||||
public HttpResult<Boolean> addDistributionMonitor(@RequestBody DistributionMonitorParam distributionMonitorParam){
|
||||
String methodDescribe = getMethodDescribe("addDistributionMonitor");
|
||||
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
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.pms.pojo.param.GeneratrixWireParam;
|
||||
import com.njcn.device.pms.pojo.po.GeneratrixWire;
|
||||
import com.njcn.device.pms.service.IGeneratrixWireService;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import com.njcn.web.pojo.param.BaseParam;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* pms-device
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/10/26
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pms/GeneratrixWireWire")
|
||||
@Slf4j
|
||||
@Api(tags = "台账-线路")
|
||||
@RequiredArgsConstructor
|
||||
public class GeneratrixWireController extends BaseController {
|
||||
|
||||
private final IGeneratrixWireService iGeneratrixWireService;
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.ADD)
|
||||
@PostMapping("/addGeneratrixWire")
|
||||
@ApiOperation("新增线路")
|
||||
@ApiImplicitParam(name = "generatrixWireParam", value = "线路实体", required = true)
|
||||
public HttpResult<Boolean> addGeneratrixWire(@RequestBody GeneratrixWireParam generatrixWireParam) {
|
||||
String methodDescribe = getMethodDescribe("addGeneratrixWire");
|
||||
boolean result = iGeneratrixWireService.addGeneratrixWire(generatrixWireParam);
|
||||
if(result){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.UPDATE)
|
||||
@PostMapping("/updateGeneratrixWire")
|
||||
@ApiOperation("修改线路")
|
||||
@ApiImplicitParam(name = "generatrixWireParam", value = "线路实体", required = true)
|
||||
public HttpResult<Boolean> updateGeneratrixWire(@RequestBody GeneratrixWireParam.UpdateGeneratrixWireParam generatrixWireParam) {
|
||||
String methodDescribe = getMethodDescribe("updateGeneratrixWire");
|
||||
boolean result = iGeneratrixWireService.updateGeneratrixWire(generatrixWireParam);
|
||||
if(result){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.DELETE)
|
||||
@DeleteMapping("/delGeneratrixWire")
|
||||
@ApiOperation("删除线路")
|
||||
@ApiImplicitParam(name = "generatrixWireIds", value = "线路ids", required = true)
|
||||
public HttpResult<Boolean> delGeneratrixWire(@RequestBody @NotEmpty(message = "线路id不可为空") List<String> generatrixWireIds) {
|
||||
String methodDescribe = getMethodDescribe("delGeneratrixWire");
|
||||
boolean result = iGeneratrixWireService.delGeneratrixWire(generatrixWireIds);
|
||||
if(result){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@GetMapping("/getGeneratrixWireById")
|
||||
@ApiOperation("根据线路id获取线路")
|
||||
@ApiImplicitParam(name = "generatrixWireId", value = "线路id", required = true)
|
||||
public HttpResult<GeneratrixWire> getGeneratrixWireById(@RequestParam("generatrixWireId") String generatrixWireId) {
|
||||
String methodDescribe = getMethodDescribe("getGeneratrixWireById");
|
||||
GeneratrixWire result = iGeneratrixWireService.getGeneratrixWireById(generatrixWireId);
|
||||
if(Objects.nonNull(result)){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/getGeneratrixWireList")
|
||||
@ApiOperation("获取线路列表")
|
||||
@ApiImplicitParam(name = "baseParam", value = "基本查询体", required = true)
|
||||
public HttpResult<List<GeneratrixWire>> getGeneratrixWireList(@RequestBody BaseParam baseParam) {
|
||||
String methodDescribe = getMethodDescribe("getGeneratrixWireList");
|
||||
List<GeneratrixWire> result = iGeneratrixWireService.getGeneratrixWireList(baseParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
}
|
||||
}
|
||||
@@ -1,25 +1,22 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-07-05
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pvDispatch")
|
||||
@Api(tags = "设备控制器")
|
||||
@RequiredArgsConstructor
|
||||
public class PvDispatchController extends BaseController {
|
||||
@RequestMapping("/pms/harmonicGeneralManagement")
|
||||
public class HarmonicGeneralManagementController extends BaseController {
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pms/harmonicGeneralManagementData")
|
||||
public class HarmonicGeneralManagementDataController extends BaseController {
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,170 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
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.pms.pojo.dto.PmsMonitorDTO;
|
||||
import com.njcn.device.pms.pojo.dto.PmsMonitorInfoDTO;
|
||||
import com.njcn.device.pms.pojo.dto.PwPmsMonitorDTO;
|
||||
import com.njcn.device.pms.pojo.param.MonitorParam;
|
||||
import com.njcn.device.pms.pojo.param.PmsMonitorInfoParam;
|
||||
import com.njcn.device.pms.pojo.param.PmsMonitorParam;
|
||||
import com.njcn.device.pms.pojo.param.PwPmsMonitorParam;
|
||||
import com.njcn.device.pms.pojo.vo.PmsMonitorVO;
|
||||
import com.njcn.device.pms.service.IMonitorService;
|
||||
|
||||
import com.njcn.device.pq.pojo.po.Overlimit;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pms/monitor")
|
||||
@Slf4j
|
||||
@Api(tags = "主网监测点信息")
|
||||
@RequiredArgsConstructor
|
||||
public class MonitorController extends BaseController {
|
||||
|
||||
private final IMonitorService monitorService;
|
||||
|
||||
/**
|
||||
* 获取监测点信息
|
||||
*/
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/getMonitorInfo")
|
||||
@ApiOperation("获取指定的监测点信息")
|
||||
// @ApiImplicitParams({
|
||||
// @ApiImplicitParam(name = "pmsMonitorInfoParam", value = "获取指定的监测点信息条件", required = true)
|
||||
// })
|
||||
public HttpResult<List<PmsMonitorInfoDTO>> getMonitorInfo(@RequestBody @Validated PmsMonitorInfoParam pmsMonitorInfoParam) {
|
||||
String methodDescribe = getMethodDescribe("getMonitorInfo");
|
||||
List<PmsMonitorInfoDTO> monitorInfo = monitorService.getMonitorInfo(pmsMonitorInfoParam);
|
||||
if (CollectionUtil.isEmpty(monitorInfo)) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.NO_DATA, null, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, monitorInfo, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
/***
|
||||
* 根据条件获取监测点信息列表
|
||||
* @author jianghaifei
|
||||
* @date 2022-10-20 20:12
|
||||
* @param pmsMonitorParam
|
||||
*/
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/getMonitorInfoListByCond")
|
||||
@ApiOperation("根据条件获取监测点信息列表")
|
||||
public HttpResult<List<PmsMonitorDTO>> getMonitorInfoListByCond(@RequestBody PmsMonitorParam pmsMonitorParam) {
|
||||
String methodDescribe = getMethodDescribe("getMonitorInfoListByCond");
|
||||
List<PmsMonitorDTO> list = monitorService.getMonitorInfoListByCond(pmsMonitorParam);
|
||||
if (CollectionUtil.isEmpty(list)) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.NO_DATA, null, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
/***
|
||||
* 获取所有监测点信息
|
||||
* @author jianghaifei
|
||||
* @date 2022-10-24 20:01
|
||||
* @param
|
||||
* @return com.njcn.common.pojo.response.HttpResult<java.util.List<com.njcn.device.pms.pojo.vo.PmsMonitorVO>>
|
||||
*/
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/getAllMonitorList")
|
||||
@ApiOperation("获取所有监测点信息")
|
||||
public HttpResult<List<PmsMonitorVO>> getAllMonitorList() {
|
||||
String methodDescribe = getMethodDescribe("getAllMonitorList");
|
||||
List<PmsMonitorVO> monitorList = monitorService.getAllMonitorList();
|
||||
if (CollectionUtil.isEmpty(monitorList)) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.NO_DATA, null, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, monitorList, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.ADD)
|
||||
@PostMapping("/addMonitor")
|
||||
@ApiOperation("新增主网监测点")
|
||||
@ApiImplicitParam(name = "monitorParam", value = "主网监测点实体", required = true)
|
||||
public HttpResult<Boolean> addMonitor(@RequestBody MonitorParam monitorParam) {
|
||||
String methodDescribe = getMethodDescribe("addMonitor");
|
||||
boolean result = monitorService.addMonitor(monitorParam);
|
||||
if(result){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.UPDATE)
|
||||
@PostMapping("/updateMonitor")
|
||||
@ApiOperation("修改主网监测点")
|
||||
@ApiImplicitParam(name = "monitorParam", value = "主网监测点实体", required = true)
|
||||
public HttpResult<Boolean> updateMonitor(@RequestBody MonitorParam.UpdateMonitorParam monitorParam) {
|
||||
String methodDescribe = getMethodDescribe("updateMonitor");
|
||||
boolean result = monitorService.updateMonitor(monitorParam);
|
||||
if(result){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.UPDATE)
|
||||
@DeleteMapping("/delMonitor")
|
||||
@ApiOperation("删除主网监测点")
|
||||
@ApiImplicitParam(name = "monitorIds", value = "主网监测点ids", required = true)
|
||||
public HttpResult<Boolean> delMonitor(@RequestBody @NotEmpty(message = "主网监测点id不可为空") List<String> monitorIds) {
|
||||
String methodDescribe = getMethodDescribe("delMonitor");
|
||||
boolean result = monitorService.delMonitor(monitorIds);
|
||||
if(result){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**分割线-----------------------------------------------------------*/
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/getOverLimitData")
|
||||
@ApiOperation("根据监测点id获取越限数值")
|
||||
@ApiImplicitParam(name = "id", value = "监测点id", required = true)
|
||||
public HttpResult<Overlimit> getOverLimitData(@RequestParam("id") String id) {
|
||||
String methodDescribe = getMethodDescribe("getOverLimitData");
|
||||
Overlimit result = monitorService.getOverLimitData(id);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,107 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.dto.SimpleDTO;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
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.pms.pojo.dto.PmsGeneralDeviceDTO;
|
||||
import com.njcn.device.pms.pojo.param.PmsDeviceInfoParam;
|
||||
import com.njcn.device.pms.service.IPmsGeneralDeviceService;
|
||||
import com.njcn.device.pq.pojo.dto.GeneralDeviceDTO;
|
||||
import com.njcn.device.pq.pojo.param.DeviceInfoParam;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
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 hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2022年10月14日 09:19
|
||||
*/
|
||||
@Slf4j
|
||||
@Api(tags = "获取终端信息")
|
||||
@RestController
|
||||
@RequestMapping("/pmsDeviceInfo")
|
||||
@RequiredArgsConstructor
|
||||
public class PmsGeneralDeviceController extends BaseController {
|
||||
|
||||
private final IPmsGeneralDeviceService generalPmsDeviceService;
|
||||
|
||||
|
||||
/**
|
||||
* 获取指定组织下台账综合信息
|
||||
*/
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/getPmsDeviceInfoWithInOrg")
|
||||
@ApiOperation("获取指定组织下台账综合信息")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "pmsDeviceInfoParam", value = "查询台账条件", required = true)
|
||||
})
|
||||
public HttpResult<List<PmsGeneralDeviceDTO>> getPmsDeviceInfoWithInOrg(@RequestBody @Validated PmsDeviceInfoParam pmsDeviceInfoParam) {
|
||||
String methodDescribe = getMethodDescribe("getPmsDeviceInfoWithInOrg");
|
||||
List<PmsGeneralDeviceDTO> deptDeviceInfos = generalPmsDeviceService.getPmsDeviceInfoWithInOrg(pmsDeviceInfoParam);
|
||||
if (CollectionUtil.isEmpty(deptDeviceInfos)) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.NO_DATA, null, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, deptDeviceInfos, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 主网获取指定组织下变电站
|
||||
*/
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/getPmsPowerrInfoWithInOrg")
|
||||
@ApiOperation("主网获取指定组织下变电站")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "pmsDeviceInfoParam", value = "查询变电站条件", required = true)
|
||||
})
|
||||
public HttpResult<List<SimpleDTO>> getPmsPowerrInfoWithInOrg(@RequestBody @Validated PmsDeviceInfoParam pmsDeviceInfoParam) {
|
||||
String methodDescribe = getMethodDescribe("getPmsPowerrInfoWithInOrg");
|
||||
List<SimpleDTO> pmsPowerrInfoList = generalPmsDeviceService.getPmsPowerrInfoWithInOrg(pmsDeviceInfoParam);
|
||||
if (CollectionUtil.isEmpty(pmsPowerrInfoList)) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.NO_DATA, null, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, pmsPowerrInfoList, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取指定组织下台账综合信息
|
||||
*/
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/getPwPmsDeviceInfoWithOrgId")
|
||||
@ApiOperation("获取指定组织下配网信息")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "pmsDeviceInfoParam", value = "查询台账条件", required = true)
|
||||
})
|
||||
public HttpResult<List<PmsGeneralDeviceDTO>> getPwPmsDeviceInfoWithOrgId(@RequestBody @Validated PmsDeviceInfoParam pmsDeviceInfoParam) {
|
||||
String methodDescribe = getMethodDescribe("getPmsDeviceInfoByOrgId");
|
||||
List<PmsGeneralDeviceDTO> deptDeviceInfos = generalPmsDeviceService.getPmsDeviceInfoByOrgId(pmsDeviceInfoParam);
|
||||
if (CollectionUtil.isEmpty(deptDeviceInfos)) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.NO_DATA, null, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, deptDeviceInfos, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,128 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
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.pms.pojo.dto.PmsGeneratrixDTO;
|
||||
import com.njcn.device.pms.pojo.param.GeneratrixParam;
|
||||
import com.njcn.device.pms.pojo.param.PmsGeneratrixParam;
|
||||
import com.njcn.device.pms.pojo.po.Generatrix;
|
||||
import com.njcn.device.pms.service.IPmsGeneratrixService;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import com.njcn.web.pojo.param.BaseParam;
|
||||
import io.swagger.annotations.*;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* 母线信息
|
||||
*
|
||||
* @author yzh
|
||||
* @date 2022/10/18
|
||||
*/
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/pmsGeneratrix")
|
||||
@Slf4j
|
||||
@Api(tags = "获取母线信息")
|
||||
@RequiredArgsConstructor
|
||||
public class PmsGeneratrixController extends BaseController {
|
||||
|
||||
private final IPmsGeneratrixService pmsGeneratrixService;
|
||||
|
||||
/**
|
||||
* 获取指定母线信息
|
||||
*
|
||||
* @param pmsGeneratrixParam 获取指定的监测点信息条件
|
||||
* @return 指定母线信息
|
||||
*/
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/getGeneratrixInfo")
|
||||
@ApiOperation("获取指定母线信息")
|
||||
@ApiImplicitParam(name = "pmsGeneratrixParam", value = "获取指定母线信息条件", required = true)
|
||||
public HttpResult<List<PmsGeneratrixDTO>> getGeneratrixInfo(@RequestBody @Validated PmsGeneratrixParam pmsGeneratrixParam) {
|
||||
String methodDescribe = getMethodDescribe("getGeneratrixInfo");
|
||||
List<PmsGeneratrixDTO> monitorInfo = pmsGeneratrixService.getGeneratrixInfo(pmsGeneratrixParam);
|
||||
if (CollectionUtil.isEmpty(monitorInfo)) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.NO_DATA, null, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, monitorInfo, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.ADD)
|
||||
@PostMapping("/addGeneratrix")
|
||||
@ApiOperation("新增母线")
|
||||
@ApiImplicitParam(name = "generatrixParam", value = "母线实体", required = true)
|
||||
public HttpResult<Boolean> addGeneratrix(@RequestBody GeneratrixParam generatrixParam) {
|
||||
String methodDescribe = getMethodDescribe("addGeneratrix");
|
||||
boolean result = pmsGeneratrixService.addGeneratrix(generatrixParam);
|
||||
if (result) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.UPDATE)
|
||||
@PostMapping("/updateGeneratrix")
|
||||
@ApiOperation("修改母线")
|
||||
@ApiImplicitParam(name = "generatrixParam", value = "母线实体", required = true)
|
||||
public HttpResult<Boolean> updateGeneratrix(@RequestBody GeneratrixParam.UpdateGeneratrixParam generatrixParam) {
|
||||
String methodDescribe = getMethodDescribe("updateGeneratrix");
|
||||
boolean result = pmsGeneratrixService.updateGeneratrix(generatrixParam);
|
||||
if (result) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.DELETE)
|
||||
@DeleteMapping("/delGeneratrix")
|
||||
@ApiOperation("删除母线")
|
||||
@ApiImplicitParam(name = "generatrixIds", value = "母线ids", required = true)
|
||||
public HttpResult<Boolean> delGeneratrix(@RequestBody @NotEmpty(message = "母线id不可为空") List<String> generatrixIds) {
|
||||
String methodDescribe = getMethodDescribe("delGeneratrix");
|
||||
boolean result = pmsGeneratrixService.delGeneratrix(generatrixIds);
|
||||
if (result) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@GetMapping("/getGeneratrixById")
|
||||
@ApiOperation("根据母线id获取母线")
|
||||
@ApiImplicitParam(name = "generatrixId", value = "母线id", required = true)
|
||||
public HttpResult<Generatrix> getGeneratrixById(@RequestParam("generatrixId") String generatrixId) {
|
||||
String methodDescribe = getMethodDescribe("getGeneratrixById");
|
||||
Generatrix result = pmsGeneratrixService.getGeneratrixById(generatrixId);
|
||||
if (Objects.nonNull(result)) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/getGeneratrixList")
|
||||
@ApiOperation("获取母线列表")
|
||||
@ApiImplicitParam(name = "baseParam", value = "基本查询体", required = true)
|
||||
public HttpResult<List<Generatrix>> getGeneratrixList(@RequestBody BaseParam baseParam) {
|
||||
String methodDescribe = getMethodDescribe("getGeneratrixList");
|
||||
List<Generatrix> result = pmsGeneratrixService.getGeneratrixList(baseParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
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.pms.pojo.param.PowerClientParam;
|
||||
import com.njcn.device.pms.pojo.po.PowerClient;
|
||||
import com.njcn.device.pms.service.IPowerClientService;
|
||||
import com.njcn.web.pojo.param.BaseParam;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import com.njcn.web.controller.BaseController;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 用电用户控制器
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pms/powerClient")
|
||||
@RequiredArgsConstructor
|
||||
@Api(tags = "台账-用电用户")
|
||||
public class PowerClientController extends BaseController {
|
||||
|
||||
private final IPowerClientService iPowerClientService;
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.ADD)
|
||||
@PostMapping("/addPowerClient")
|
||||
@ApiOperation("新增用电用户")
|
||||
@ApiImplicitParam(name = "powerClientParam", value = "用电用户实体", required = true)
|
||||
public HttpResult<Boolean> addPowerClient(@RequestBody PowerClientParam powerClientParam) {
|
||||
String methodDescribe = getMethodDescribe("addPowerClient");
|
||||
boolean result = iPowerClientService.addPowerClient(powerClientParam);
|
||||
if(result){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.UPDATE)
|
||||
@PostMapping("/updatePowerClient")
|
||||
@ApiOperation("修改用电用户")
|
||||
@ApiImplicitParam(name = "powerClientParam", value = "用电用户实体", required = true)
|
||||
public HttpResult<Boolean> updatePowerClient(@RequestBody PowerClientParam powerClientParam) {
|
||||
String methodDescribe = getMethodDescribe("updatePowerClient");
|
||||
boolean result = iPowerClientService.updatePowerClient(powerClientParam);
|
||||
if(result){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.DELETE)
|
||||
@DeleteMapping("/delPowerClient")
|
||||
@ApiOperation("删除用电用户")
|
||||
@ApiImplicitParam(name = "powerClientIds", value = "用电用户ids", required = true)
|
||||
public HttpResult<Boolean> delPowerClient(@RequestBody @NotEmpty(message = "用电用户id不可为空") List<String> powerClientIds) {
|
||||
String methodDescribe = getMethodDescribe("delPowerClient");
|
||||
boolean result = iPowerClientService.delPowerClient(powerClientIds);
|
||||
if(result){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@GetMapping("/getPowerClientById")
|
||||
@ApiOperation("根据用电用户id获取用电用户")
|
||||
@ApiImplicitParam(name = "powerClientId", value = "用电用户id", required = true)
|
||||
public HttpResult<PowerClient> getPowerClientById(@RequestParam("powerClientId") String powerClientId) {
|
||||
String methodDescribe = getMethodDescribe("getPowerClientById");
|
||||
PowerClient result = iPowerClientService.getPowerClientById(powerClientId);
|
||||
if(Objects.nonNull(result)){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/getPowerClientList")
|
||||
@ApiOperation("获取用电用户列表")
|
||||
@ApiImplicitParam(name = "baseParam", value = "基本查询体", required = true)
|
||||
public HttpResult<List<PowerClient>> getPowerClientList(@RequestBody BaseParam baseParam) {
|
||||
String methodDescribe = getMethodDescribe("getPowerClientList");
|
||||
List<PowerClient> result = iPowerClientService.getPowerClientList(baseParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,133 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.common.utils.LogUtil;
|
||||
import com.njcn.device.pms.pojo.param.PowerDistributionareaParam;
|
||||
import com.njcn.device.pms.pojo.po.PowerDistributionarea;
|
||||
import com.njcn.device.pms.pojo.vo.PowerDistributionareaVO;
|
||||
import com.njcn.device.pms.service.IPowerDistributionareaService;
|
||||
import com.njcn.system.pojo.param.EventTemplateParam;
|
||||
import com.njcn.system.pojo.po.EventTemplate;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import com.njcn.web.controller.BaseController;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 台区信息增删改查
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/pms/powerDistributionarea")
|
||||
@Api(tags = "台区信息")
|
||||
@RequiredArgsConstructor
|
||||
@Validated
|
||||
public class PowerDistributionareaController extends BaseController {
|
||||
|
||||
private final IPowerDistributionareaService iPowerDistributionareaService;
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("getPowerDistributionAreaList")
|
||||
@ApiOperation("查询台区所有信息")
|
||||
@ApiImplicitParam(name = "queryParam",value = "查询台区信息",required = true)
|
||||
public HttpResult<Page<PowerDistributionareaVO>> getList(@RequestBody @Validated PowerDistributionareaParam.QueryParam queryParam){
|
||||
String methodDescribe = getMethodDescribe("getList");
|
||||
LogUtil.njcnDebug(log, "{},查询数据为:{}", methodDescribe, queryParam);
|
||||
Page<PowerDistributionareaVO> res = iPowerDistributionareaService.getList(queryParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS,res,methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@GetMapping("/getPowerDistributionAreaById")
|
||||
@ApiOperation("根据ID查询台区数据")
|
||||
@ApiImplicitParam(name = "id",value = "id",required = true)
|
||||
public HttpResult<PowerDistributionarea> getDistrictById(@RequestParam("id") String id){
|
||||
String methodDescribe = getMethodDescribe("getDistrictById");
|
||||
PowerDistributionarea powerDistributionarea = iPowerDistributionareaService.getDistrictById(id);
|
||||
if (Objects.nonNull(powerDistributionarea)){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, powerDistributionarea, methodDescribe);
|
||||
}
|
||||
else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增台区信息
|
||||
* @author hany
|
||||
* @date 2022/10/26
|
||||
*/
|
||||
@PostMapping("/addPowerDistributionArea")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType=OperateType.ADD)
|
||||
@ApiOperation("新增台区信息")
|
||||
@ApiImplicitParam(name = "newParam", value = "模板实体", required = true)
|
||||
public HttpResult<Object> add(@RequestBody @Validated PowerDistributionareaParam newParam){
|
||||
String methodDescribe = getMethodDescribe("add");
|
||||
boolean result = iPowerDistributionareaService.add(newParam);
|
||||
if (result) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改台区信息
|
||||
* @author hany
|
||||
* @date 2022/10/26
|
||||
*/
|
||||
@PostMapping("/updatePowerDistributionArea")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.UPDATE)
|
||||
@ApiOperation("修改台区信息")
|
||||
@ApiImplicitParam(name = "UpdateParam", value = "更新实体", required = true)
|
||||
public HttpResult<Object> update(@RequestBody @Validated PowerDistributionareaParam UpdateParam){
|
||||
String methodDescribe = getMethodDescribe("update");
|
||||
boolean result = iPowerDistributionareaService.update(UpdateParam);
|
||||
if (result) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除台区信息
|
||||
* @param ids id
|
||||
* @author hany
|
||||
* @date 2022/10/26
|
||||
*/
|
||||
@PostMapping("/deletePowerDistributionArea")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON, operateType = OperateType.DELETE)
|
||||
@ApiOperation("删除台区信息")
|
||||
@ApiImplicitParam(name = "ids", value = "ID索引", required = true)
|
||||
public HttpResult<Object> delete(@RequestBody List<String> ids){
|
||||
String methodDescribe = getMethodDescribe("delete");
|
||||
boolean result = iPowerDistributionareaService.delete(ids);
|
||||
if(result){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,109 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
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.pms.pojo.param.PowerGenerationUserParam;
|
||||
import com.njcn.device.pms.pojo.po.PowerGenerationUser;
|
||||
import com.njcn.device.pms.service.IPowerGenerationUserService;
|
||||
import com.njcn.web.pojo.param.BaseParam;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import com.njcn.web.controller.BaseController;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pms/powerGenerationUser")
|
||||
@Api(tags = "发电用户")
|
||||
@RequiredArgsConstructor
|
||||
public class PowerGenerationUserController extends BaseController {
|
||||
|
||||
private final IPowerGenerationUserService iPowerGenerationUserService;
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.ADD)
|
||||
@PostMapping("/addPowerGenerationUser")
|
||||
@ApiOperation("新增母线")
|
||||
@ApiImplicitParam(name = "powerGenerationUserParam", value = "母线实体", required = true)
|
||||
public HttpResult<Boolean> addPowerGenerationUser(@RequestBody PowerGenerationUserParam powerGenerationUserParam) {
|
||||
String methodDescribe = getMethodDescribe("addPowerGenerationUser");
|
||||
boolean result = iPowerGenerationUserService.addPowerGenerationUser(powerGenerationUserParam);
|
||||
if(result){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.UPDATE)
|
||||
@PostMapping("/updatePowerGenerationUser")
|
||||
@ApiOperation("修改母线")
|
||||
@ApiImplicitParam(name = "powerGenerationUserParam", value = "母线实体", required = true)
|
||||
public HttpResult<Boolean> updatePowerGenerationUser(@RequestBody PowerGenerationUserParam powerGenerationUserParam) {
|
||||
String methodDescribe = getMethodDescribe("updatePowerGenerationUser");
|
||||
boolean result = iPowerGenerationUserService.updatePowerGenerationUser(powerGenerationUserParam);
|
||||
if(result){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.DELETE)
|
||||
@DeleteMapping("/delPowerGenerationUser")
|
||||
@ApiOperation("删除母线")
|
||||
@ApiImplicitParam(name = "powerGenerationUserIds", value = "母线ids", required = true)
|
||||
public HttpResult<Boolean> delPowerGenerationUser(@RequestBody @NotEmpty(message = "母线id不可为空") List<String> powerGenerationUserIds) {
|
||||
String methodDescribe = getMethodDescribe("delPowerGenerationUser");
|
||||
boolean result = iPowerGenerationUserService.delPowerGenerationUser(powerGenerationUserIds);
|
||||
if(result){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@GetMapping("/getPowerGenerationUserById")
|
||||
@ApiOperation("根据母线id获取母线")
|
||||
@ApiImplicitParam(name = "powerGenerationUserId", value = "母线id", required = true)
|
||||
public HttpResult<PowerGenerationUser> getPowerGenerationUserById(@RequestParam("powerGenerationUserId") String powerGenerationUserId) {
|
||||
String methodDescribe = getMethodDescribe("getPowerGenerationUserById");
|
||||
PowerGenerationUser result = iPowerGenerationUserService.getPowerGenerationUserById(powerGenerationUserId);
|
||||
if(Objects.nonNull(result)){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/getPowerGenerationUserList")
|
||||
@ApiOperation("获取母线列表")
|
||||
@ApiImplicitParam(name = "baseParam", value = "基本查询体", required = true)
|
||||
public HttpResult<List<PowerGenerationUser>> getPowerGenerationUserList(@RequestBody BaseParam baseParam) {
|
||||
String methodDescribe = getMethodDescribe("getPowerGenerationUserList");
|
||||
List<PowerGenerationUser> result = iPowerGenerationUserService.getPowerGenerationUserList(baseParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pms/powerQualityMatter")
|
||||
public class PowerQualityMatterController extends BaseController {
|
||||
|
||||
}
|
||||
|
||||
@@ -1,160 +0,0 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
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.pms.pojo.param.DeviceQueryParam;
|
||||
import com.njcn.device.pms.pojo.param.PvDeviceParam;
|
||||
import com.njcn.device.pms.pojo.po.PvDevice;
|
||||
import com.njcn.device.pms.pojo.vo.PvDeviceVO;
|
||||
import com.njcn.device.pms.service.IPvDeviceService;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 终端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-07-05
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pvDevice")
|
||||
@Api(tags = "pv终端控制器")
|
||||
@RequiredArgsConstructor
|
||||
public class PvDeviceController extends BaseController {
|
||||
|
||||
private final IPvDeviceService iPvDeviceService;
|
||||
|
||||
|
||||
/**
|
||||
* 新增终端
|
||||
* @param pvDeviceParam 终端实体
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
*/
|
||||
@PostMapping("addDevice")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.ADD)
|
||||
@ApiOperation("新增终端")
|
||||
@ApiImplicitParam(name = "pvDeviceParam",value = "终端实体",required = true)
|
||||
public HttpResult<Object> addDevice(@RequestBody @Validated PvDeviceParam pvDeviceParam){
|
||||
String methodDescribe = getMethodDescribe("addDevice");
|
||||
boolean res = iPvDeviceService.addDevice(pvDeviceParam);
|
||||
if(res){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 修改终端
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
*/
|
||||
@PostMapping("updateDevice")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.UPDATE)
|
||||
@ApiOperation("修改终端")
|
||||
@ApiImplicitParam(name = "updatePvDeviceParam",value = "终端实体",required = true)
|
||||
public HttpResult<Object> updateDevice(@RequestBody @Validated PvDeviceParam.UpdatePvDeviceParam updatePvDeviceParam){
|
||||
String methodDescribe = getMethodDescribe("updateDevice");
|
||||
boolean res = iPvDeviceService.updateDevice(updatePvDeviceParam);
|
||||
if(res){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 分页查询终端
|
||||
* @param deviceQueryParam 查询实体
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return Page<PvDevice>
|
||||
*/
|
||||
@PostMapping("getPvDeviceList")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("分页查询终端")
|
||||
@ApiImplicitParam(name = "deviceQueryParam",value = "终端实体",required = true)
|
||||
public HttpResult<Page<PvDeviceVO>> getPvDeviceList(@RequestBody DeviceQueryParam deviceQueryParam){
|
||||
String methodDescribe = getMethodDescribe("getPvDeviceList");
|
||||
Page<PvDeviceVO> page = iPvDeviceService.getPvDeviceList(deviceQueryParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, page, methodDescribe);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有终端
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return Page<PvDevice>
|
||||
*/
|
||||
@PostMapping("getAllPvDeviceList")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("查询所有终端")
|
||||
public HttpResult<List<PvDeviceVO>> getAllPvDeviceList(){
|
||||
String methodDescribe = getMethodDescribe("getAllPvDeviceList");
|
||||
List<PvDeviceVO> list = iPvDeviceService.getAllPvDeviceList();
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据终端id查询终端
|
||||
* @param id 终端id
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return PvDevice
|
||||
*/
|
||||
@GetMapping("getPvDeviceById")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("根据终端id查询终端")
|
||||
@ApiImplicitParam(name = "id",value = "终端id",required = true)
|
||||
public HttpResult<PvDevice> getPvDeviceById(@RequestParam("id") String id){
|
||||
String methodDescribe = getMethodDescribe("getPvDeviceById");
|
||||
PvDevice pvDevice = iPvDeviceService.getPvDeviceById(id);
|
||||
if(Objects.nonNull(pvDevice)){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, pvDevice, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 删除终端
|
||||
* @param ids 终端id
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return boolean
|
||||
*/
|
||||
@PostMapping("delPvDevice")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.DELETE)
|
||||
@ApiOperation("删除终端")
|
||||
@ApiImplicitParam(name = "ids",value = "终端id",required = true)
|
||||
public HttpResult<PvDevice> delPvDevice(@RequestBody List<String> ids){
|
||||
String methodDescribe = getMethodDescribe("delPvDevice");
|
||||
boolean res = iPvDeviceService.delPvDevice(ids);
|
||||
if(res){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
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.pms.pojo.bo.DeviceRunExBO;
|
||||
import com.njcn.device.pms.pojo.dto.DeviceRunExDTO;
|
||||
import com.njcn.device.pms.service.IPvDeviceRunExService;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
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;
|
||||
|
||||
|
||||
/**
|
||||
* pv终端运行异常
|
||||
*
|
||||
* @author yangj
|
||||
* @date 2022/09/08
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pvDeviceEx")
|
||||
@Api(tags = "pv终端运行异常")
|
||||
@RequiredArgsConstructor
|
||||
public class PvDeviceRunExController extends BaseController {
|
||||
|
||||
|
||||
private final IPvDeviceRunExService pvDeviceRunExService;
|
||||
|
||||
@PostMapping("getPvDeviceExList")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("分页条件查询终端异常")
|
||||
@ApiImplicitParam(name = "deviceRunExDTO",value = "终端异常",required = true)
|
||||
public HttpResult<List<DeviceRunExBO>> getPvDeviceExList(@RequestBody DeviceRunExDTO deviceRunExDTO) {
|
||||
String methodDescribe = getMethodDescribe("getPvDeviceExList");
|
||||
List<DeviceRunExBO> pvDeviceExList = pvDeviceRunExService.getPvDeviceExList(deviceRunExDTO);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, pvDeviceExList, methodDescribe);
|
||||
}
|
||||
}
|
||||
@@ -1,159 +0,0 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
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.pms.pojo.param.DistributedQueryParam;
|
||||
import com.njcn.device.pms.pojo.param.PvDistributedParam;
|
||||
import com.njcn.device.pms.pojo.po.PvDistributed;
|
||||
import com.njcn.device.pms.pojo.vo.PvDistributedVO;
|
||||
import com.njcn.device.pms.service.IPvDistributedService;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 分布式光伏控制器
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-07-06
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pvDistributed")
|
||||
@Api(tags = "pv分布式光伏控制器")
|
||||
@RequiredArgsConstructor
|
||||
public class PvDistributedController extends BaseController {
|
||||
|
||||
private final IPvDistributedService iPvDistributedService;
|
||||
|
||||
|
||||
/**
|
||||
* 新增分布式光伏台账
|
||||
* @param pvDistributedParam 分布式光伏台账实体
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
*/
|
||||
@PostMapping("addDistributed")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.ADD)
|
||||
@ApiOperation("新增分布式光伏台账")
|
||||
@ApiImplicitParam(name = "pvDistributedParam",value = "分布式光伏台账实体",required = true)
|
||||
public HttpResult<Object> addDistributed(@RequestBody @Validated PvDistributedParam pvDistributedParam){
|
||||
String methodDescribe = getMethodDescribe("addDistributed");
|
||||
boolean res = iPvDistributedService.addDistributed(pvDistributedParam);
|
||||
if(res){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 修改分布式光伏台账
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
*/
|
||||
@PostMapping("updateDistributed")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.UPDATE)
|
||||
@ApiOperation("修改分布式光伏台账")
|
||||
@ApiImplicitParam(name = "updatePvDistributedParam",value = "分布式光伏台账实体",required = true)
|
||||
public HttpResult<Object> updateDistributed(@RequestBody @Validated PvDistributedParam.UpdatePvDistributedParam updatePvDistributedParam){
|
||||
String methodDescribe = getMethodDescribe("updateDistributed");
|
||||
boolean res = iPvDistributedService.updateDistributed(updatePvDistributedParam);
|
||||
if(res){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 分页查询分布式光伏台账
|
||||
* @param distributedQueryParam 查询实体
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return Page<PvDistributed>
|
||||
*/
|
||||
@PostMapping("getPvDistributedList")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("分页查询分布式光伏台账")
|
||||
@ApiImplicitParam(name = "distributedQueryParam",value = "分布式光伏台账实体",required = true)
|
||||
public HttpResult<Page<PvDistributedVO>> getPvDistributedList(@RequestBody DistributedQueryParam distributedQueryParam){
|
||||
String methodDescribe = getMethodDescribe("getPvDistributedList");
|
||||
Page<PvDistributedVO> page = iPvDistributedService.getPvDistributedList(distributedQueryParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, page, methodDescribe);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有分布式光伏台账
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return Page<PvDistributed>
|
||||
*/
|
||||
@PostMapping("getAllPvDistributedList")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("查询所有分布式光伏台账")
|
||||
public HttpResult<List<PvDistributed>> getAllPvDistributedList(){
|
||||
String methodDescribe = getMethodDescribe("getAllPvDistributedList");
|
||||
List<PvDistributed> list = iPvDistributedService.getAllPvDistributedList();
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据分布式光伏台账id查询分布式光伏台账
|
||||
* @param id 分布式光伏台账id
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return PvDistributed
|
||||
*/
|
||||
@GetMapping("getPvDistributedById")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("根据分布式光伏台账id查询分布式光伏台账")
|
||||
@ApiImplicitParam(name = "id",value = "分布式光伏台账id",required = true)
|
||||
public HttpResult<PvDistributed> getPvDistributedById(@RequestParam("id") String id){
|
||||
String methodDescribe = getMethodDescribe("getPvDistributedById");
|
||||
PvDistributed pvDistributed = iPvDistributedService.getPvDistributedById(id);
|
||||
if(Objects.nonNull(pvDistributed)){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, pvDistributed, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 删除分布式光伏台账
|
||||
* @param ids 分布式光伏台账id
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return boolean
|
||||
*/
|
||||
@PostMapping("delPvDistributed")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("删除分布式光伏台账")
|
||||
@ApiImplicitParam(name = "ids",value = "分布式光伏台账ids",required = true)
|
||||
public HttpResult<PvDistributed> delPvDistributed(@RequestBody List<String> ids){
|
||||
String methodDescribe = getMethodDescribe("delPvDistributed");
|
||||
boolean res = iPvDistributedService.delPvDistributed(ids);
|
||||
if(res){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,160 +0,0 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
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.pms.pojo.param.LineDetailQueryParam;
|
||||
import com.njcn.device.pms.pojo.param.PvLineDetailParam;
|
||||
import com.njcn.device.pms.pojo.po.PvLineDetail;
|
||||
import com.njcn.device.pms.service.IPvLineDetailService;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 监测点控制器
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-07-05
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pvLineDetail")
|
||||
@Api(tags = "pv监测点控制器")
|
||||
@RequiredArgsConstructor
|
||||
public class PvLineDetailController extends BaseController {
|
||||
|
||||
private final IPvLineDetailService iPvLineDetailService;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 新增监测点
|
||||
* @param pvLineDetailParam 监测点实体
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
*/
|
||||
@PostMapping("addLineDetail")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.ADD)
|
||||
@ApiOperation("新增监测点")
|
||||
@ApiImplicitParam(name = "pvLineDetailParam",value = "监测点实体",required = true)
|
||||
public HttpResult<Object> addLineDetail(@RequestBody @Validated PvLineDetailParam pvLineDetailParam){
|
||||
String methodDescribe = getMethodDescribe("addLineDetail");
|
||||
boolean res = iPvLineDetailService.addLineDetail(pvLineDetailParam);
|
||||
if(res){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 修改监测点
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
*/
|
||||
@PostMapping("updateLineDetail")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.UPDATE)
|
||||
@ApiOperation("修改监测点")
|
||||
@ApiImplicitParam(name = "updatePvLineDetailParam",value = "监测点实体",required = true)
|
||||
public HttpResult<Object> updateLineDetail(@RequestBody @Validated PvLineDetailParam.UpdatePvLineDetailParam updatePvLineDetailParam){
|
||||
String methodDescribe = getMethodDescribe("updateLineDetail");
|
||||
boolean res = iPvLineDetailService.updateLineDetail(updatePvLineDetailParam);
|
||||
if(res){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 分页查询监测点
|
||||
* @param lineDetailQueryParam 查询实体
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return Page<PvLineDetail>
|
||||
*/
|
||||
@PostMapping("getPvLineDetailList")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("分页查询监测点")
|
||||
@ApiImplicitParam(name = "lineDetailQueryParam",value = "监测点实体",required = true)
|
||||
public HttpResult<Page<PvLineDetail>> getPvLineDetailList(@RequestBody LineDetailQueryParam lineDetailQueryParam){
|
||||
String methodDescribe = getMethodDescribe("getPvLineDetailList");
|
||||
Page<PvLineDetail> page = iPvLineDetailService.getPvLineDetailList(lineDetailQueryParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, page, methodDescribe);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有监测点
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return Page<PvLineDetail>
|
||||
*/
|
||||
@PostMapping("getAllPvLineDetailList")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("查询所有监测点")
|
||||
public HttpResult<List<PvLineDetail>> getAllPvLineDetailList(){
|
||||
String methodDescribe = getMethodDescribe("getAllPvLineDetailList");
|
||||
List<PvLineDetail> list = iPvLineDetailService.getAllPvLineDetailList();
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据监测点id查询监测点
|
||||
* @param id 监测点id
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return PvLineDetail
|
||||
*/
|
||||
@GetMapping("getPvLineDetailById")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("根据监测点id查询监测点")
|
||||
@ApiImplicitParam(name = "id",value = "监测点id",required = true)
|
||||
public HttpResult<PvLineDetail> getPvLineDetailById(@RequestParam("id") String id){
|
||||
String methodDescribe = getMethodDescribe("getPvLineDetailById");
|
||||
PvLineDetail pvLineDetail = iPvLineDetailService.getPvLineDetailById(id);
|
||||
if(Objects.nonNull(pvLineDetail)){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, pvLineDetail, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 删除监测点
|
||||
* @param ids 监测点id
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return boolean
|
||||
*/
|
||||
@PostMapping("delPvLineDetail")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("删除监测点")
|
||||
@ApiImplicitParam(name = "ids",value = "监测点id",required = true)
|
||||
public HttpResult<PvLineDetail> delPvLineDetail(@RequestBody List<String> ids){
|
||||
String methodDescribe = getMethodDescribe("delPvLineDetail");
|
||||
boolean res = iPvLineDetailService.delPvLineDetail(ids);
|
||||
if(res){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -1,160 +0,0 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
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.pms.pojo.param.LvUserQueryParam;
|
||||
import com.njcn.device.pms.pojo.param.PvLvUserParam;
|
||||
import com.njcn.device.pms.pojo.po.PvLvUser;
|
||||
import com.njcn.device.pms.pojo.vo.PvLvUserVO;
|
||||
import com.njcn.device.pms.service.IPvLvUserService;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 低压用户台账控制器
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-07-05
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pvLvUser")
|
||||
@Api(tags = "pv低压用户台账控制器")
|
||||
@RequiredArgsConstructor
|
||||
public class PvLvUserController extends BaseController {
|
||||
|
||||
private final IPvLvUserService iPvLvUserService;
|
||||
|
||||
|
||||
/**
|
||||
* 新增低压用户台账
|
||||
* @param pvLvUserParam 低压用户台账实体
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
*/
|
||||
@PostMapping("addLvUser")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.ADD)
|
||||
@ApiOperation("新增低压用户台账")
|
||||
@ApiImplicitParam(name = "pvLvUserParam",value = "低压用户台账实体",required = true)
|
||||
public HttpResult<Object> addLvUser(@RequestBody @Validated PvLvUserParam pvLvUserParam){
|
||||
String methodDescribe = getMethodDescribe("addLvUser");
|
||||
boolean res = iPvLvUserService.addLvUser(pvLvUserParam);
|
||||
if(res){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 修改低压用户台账
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
*/
|
||||
@PostMapping("updateLvUser")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.UPDATE)
|
||||
@ApiOperation("修改低压用户台账")
|
||||
@ApiImplicitParam(name = "updatePvLvUserParam",value = "低压用户台账实体",required = true)
|
||||
public HttpResult<Object> updateLvUser(@RequestBody @Validated PvLvUserParam.UpdatePvLvUserParam updatePvLvUserParam){
|
||||
String methodDescribe = getMethodDescribe("updateLvUser");
|
||||
boolean res = iPvLvUserService.updateLvUser(updatePvLvUserParam);
|
||||
if(res){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 分页查询低压用户台账
|
||||
* @param lvUserQueryParam 查询实体
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return Page<PvLvUser>
|
||||
*/
|
||||
@PostMapping("getPvLvUserList")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("分页查询低压用户台账")
|
||||
@ApiImplicitParam(name = "lvUserQueryParam",value = "低压用户台账实体",required = true)
|
||||
public HttpResult<Page<PvLvUserVO>> getPvLvUserList(@RequestBody LvUserQueryParam lvUserQueryParam){
|
||||
String methodDescribe = getMethodDescribe("getPvLvUserList");
|
||||
Page<PvLvUserVO> page = iPvLvUserService.getPvLvUserList(lvUserQueryParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, page, methodDescribe);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有低压用户台账
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return Page<PvLvUser>
|
||||
*/
|
||||
@PostMapping("getAllPvLvUserList")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("查询所有低压用户台账")
|
||||
public HttpResult<List<PvLvUser>> getAllPvLvUserList(){
|
||||
String methodDescribe = getMethodDescribe("getAllPvLvUserList");
|
||||
List<PvLvUser> list = iPvLvUserService.getAllPvLvUserList();
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据低压用户台账id查询低压用户台账
|
||||
* @param id 低压用户台账id
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return PvLvUser
|
||||
*/
|
||||
@GetMapping("getPvLvUserById")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("根据低压用户台账id查询低压用户台账")
|
||||
@ApiImplicitParam(name = "id",value = "低压用户台账id",required = true)
|
||||
public HttpResult<PvLvUser> getPvLvUserById(@RequestParam("id") String id){
|
||||
String methodDescribe = getMethodDescribe("getPvLvUserById");
|
||||
PvLvUser pvLvUser = iPvLvUserService.getPvLvUserById(id);
|
||||
if(Objects.nonNull(pvLvUser)){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, pvLvUser, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 删除低压用户台账
|
||||
* @param ids 低压用户台账id
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return boolean
|
||||
*/
|
||||
@PostMapping("delPvLvUser")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.DELETE)
|
||||
@ApiOperation("删除低压用户台账")
|
||||
@ApiImplicitParam(name = "ids",value = "低压用户台账id",required = true)
|
||||
public HttpResult<PvLvUser> delPvLvUser(@RequestBody List<String> ids){
|
||||
String methodDescribe = getMethodDescribe("delPvLvUser");
|
||||
boolean res = iPvLvUserService.delPvLvUser(ids);
|
||||
if(res){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -1,160 +0,0 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
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.pms.pojo.param.PvSubAreaParam;
|
||||
import com.njcn.device.pms.pojo.param.SubAreaQueryParam;
|
||||
import com.njcn.device.pms.pojo.po.PvSubArea;
|
||||
import com.njcn.device.pms.pojo.vo.PvSubAreaVO;
|
||||
import com.njcn.device.pms.service.IPvSubAreaService;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 台区控制器
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-07-05
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pvSubArea")
|
||||
@Api(tags = "pv台区控制器")
|
||||
@RequiredArgsConstructor
|
||||
public class PvSubAreaController extends BaseController {
|
||||
|
||||
private final IPvSubAreaService iPvSubAreaService;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 新增台区
|
||||
* @param pvSubAreaParam 台区实体
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
*/
|
||||
@PostMapping("addSubArea")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.ADD)
|
||||
@ApiOperation("新增台区")
|
||||
@ApiImplicitParam(name = "pvSubAreaParam",value = "台区实体",required = true)
|
||||
public HttpResult<Object> addSubArea(@RequestBody @Validated PvSubAreaParam pvSubAreaParam){
|
||||
String methodDescribe = getMethodDescribe("addSubArea");
|
||||
boolean res = iPvSubAreaService.addSubArea(pvSubAreaParam);
|
||||
if(res){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 修改台区
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
*/
|
||||
@PostMapping("updateSubArea")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.UPDATE)
|
||||
@ApiOperation("修改台区")
|
||||
@ApiImplicitParam(name = "updatePvSubAreaParam",value = "台区实体",required = true)
|
||||
public HttpResult<Object> updateSubArea(@RequestBody @Validated PvSubAreaParam.UpdatePvSubAreaParam updatePvSubAreaParam){
|
||||
String methodDescribe = getMethodDescribe("updateSubArea");
|
||||
boolean res = iPvSubAreaService.updateSubArea(updatePvSubAreaParam);
|
||||
if(res){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 分页查询台区
|
||||
* @param subAreaQueryParam 查询实体
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return Page<PvSubArea>
|
||||
*/
|
||||
@PostMapping("getPvSubAreaList")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("分页查询台区")
|
||||
@ApiImplicitParam(name = "subAreaQueryParam",value = "台区实体",required = true)
|
||||
public HttpResult<Page<PvSubAreaVO>> getPvSubAreaList(@RequestBody SubAreaQueryParam subAreaQueryParam){
|
||||
String methodDescribe = getMethodDescribe("getPvSubAreaList");
|
||||
Page<PvSubAreaVO> page = iPvSubAreaService.getPvSubAreaList(subAreaQueryParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, page, methodDescribe);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有台区
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return Page<PvSubArea>
|
||||
*/
|
||||
@PostMapping("getAllPvSubAreaList")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("查询所有台区")
|
||||
public HttpResult<List<PvSubArea>> getAllPvSubAreaList(){
|
||||
String methodDescribe = getMethodDescribe("getAllPvSubAreaList");
|
||||
List<PvSubArea> list = iPvSubAreaService.getAllPvSubAreaList();
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据台区id查询台区
|
||||
* @param id 台区id
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return PvSubArea
|
||||
*/
|
||||
@GetMapping("getPvSubAreaById")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("根据台区id查询台区")
|
||||
@ApiImplicitParam(name = "id",value = "台区id",required = true)
|
||||
public HttpResult<PvSubArea> getPvSubAreaById(@RequestParam("id") String id){
|
||||
String methodDescribe = getMethodDescribe("getPvSubAreaById");
|
||||
PvSubArea pvSubArea = iPvSubAreaService.getPvSubAreaById(id);
|
||||
if(Objects.nonNull(pvSubArea)){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, pvSubArea, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 删除台区
|
||||
* @param ids 台区ids
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return boolean
|
||||
*/
|
||||
@PostMapping("delPvSubArea")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("删除台区")
|
||||
@ApiImplicitParam(name = "ids",value = "台区ids",required = true)
|
||||
public HttpResult<PvSubArea> delPvSubArea(@RequestBody List<String> ids){
|
||||
String methodDescribe = getMethodDescribe("delPvSubArea");
|
||||
boolean res = iPvSubAreaService.delPvSubArea(ids);
|
||||
if(res){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,150 +0,0 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
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.pms.pojo.param.PvSubstationParam;
|
||||
import com.njcn.device.pms.pojo.param.SubstationQueryParam;
|
||||
import com.njcn.device.pms.pojo.po.PvSubstation;
|
||||
import com.njcn.device.pms.pojo.vo.PvSubstationVO;
|
||||
import com.njcn.device.pms.service.IPvSubstationService;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 变电站控制器
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-07-05
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pvSubstation")
|
||||
@Api(tags = "pv变电站控制器")
|
||||
@RequiredArgsConstructor
|
||||
public class PvSubstationController extends BaseController {
|
||||
|
||||
private final IPvSubstationService iPvSubstationService;
|
||||
|
||||
/**
|
||||
* 新增变电站
|
||||
* @param pvSubstationParam 变电站实体
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
*/
|
||||
@PostMapping("addSubstation")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.ADD)
|
||||
@ApiOperation("新增变电站")
|
||||
@ApiImplicitParam(name = "pvSubstationParam",value = "变电站实体",required = true)
|
||||
public HttpResult<Object> addSubstation(@RequestBody @Validated PvSubstationParam pvSubstationParam){
|
||||
String methodDescribe = getMethodDescribe("addSubstation");
|
||||
iPvSubstationService.addSubstation(pvSubstationParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 修改变电站
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
*/
|
||||
@PostMapping("updateSubstation")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.UPDATE)
|
||||
@ApiOperation("修改变电站")
|
||||
@ApiImplicitParam(name = "updatePvSubstationParam",value = "变电站实体",required = true)
|
||||
public HttpResult<Object> updateSubstation(@RequestBody @Validated PvSubstationParam.UpdatePvSubstationParam updatePvSubstationParam){
|
||||
String methodDescribe = getMethodDescribe("updateSubstation");
|
||||
iPvSubstationService.updateSubstation(updatePvSubstationParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 分页查询变电站
|
||||
* @param substationQueryParam 查询实体
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return Page<PvSubstation>
|
||||
*/
|
||||
@PostMapping("getPvSubstationList")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("分页查询变电站")
|
||||
@ApiImplicitParam(name = "substationQueryParam",value = "变电站实体",required = true)
|
||||
public HttpResult<Page<PvSubstationVO>> getPvSubstationList(@RequestBody SubstationQueryParam substationQueryParam){
|
||||
String methodDescribe = getMethodDescribe("getPvSubstationList");
|
||||
Page<PvSubstationVO> page = iPvSubstationService.getPvSubstationList(substationQueryParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, page, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有变电站
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return Page<PvSubstation>
|
||||
*/
|
||||
@PostMapping("getAllPvSubstationList")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("查询所有变电站")
|
||||
public HttpResult<List<PvSubstation>> getAllPvSubstationList(){
|
||||
String methodDescribe = getMethodDescribe("getAllPvSubstationList");
|
||||
List<PvSubstation> list = iPvSubstationService.getAllPvSubstationList();
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据变电站id查询变电站
|
||||
* @param id 变电站id
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return PvSubstation
|
||||
*/
|
||||
@GetMapping("getPvSubstationById")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("根据变电站id查询变电站")
|
||||
@ApiImplicitParam(name = "id",value = "变电站id",required = true)
|
||||
public HttpResult<PvSubstation> getPvSubstationById(@RequestParam("id") String id){
|
||||
String methodDescribe = getMethodDescribe("getPvSubstationById");
|
||||
PvSubstation pvSubstation = iPvSubstationService.getPvSubstationById(id);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, pvSubstation, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 删除变电站
|
||||
* @param ids 变电站ids
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return boolean
|
||||
*/
|
||||
@PostMapping("delPvSubstation")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.DELETE)
|
||||
@ApiOperation("删除变电站")
|
||||
@ApiImplicitParam(name = "ids",value = "变电站ids",required = true)
|
||||
public HttpResult<PvSubstation> delPvSubstation(@RequestBody List<String> ids){
|
||||
String methodDescribe = getMethodDescribe("delPvSubstation");
|
||||
iPvSubstationService.delPvSubstation(ids);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -1,157 +0,0 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
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.pms.pojo.param.PvTenVoltageParam;
|
||||
import com.njcn.device.pms.pojo.param.TenVoltageQueryParam;
|
||||
import com.njcn.device.pms.pojo.po.PvTenVoltage;
|
||||
import com.njcn.device.pms.pojo.vo.PvTenVoltageVO;
|
||||
import com.njcn.device.pms.service.IPvTenVoltageService;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-07-05
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pvTenVoltage")
|
||||
@Api(tags = "pv十千伏线路控制器")
|
||||
@RequiredArgsConstructor
|
||||
public class PvTenVoltageController extends BaseController {
|
||||
|
||||
private final IPvTenVoltageService iPvTenVoltageService;
|
||||
|
||||
/**
|
||||
* 新增10kV线路
|
||||
*
|
||||
* @param pvTenVoltageParam 10kV线路实体
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
*/
|
||||
@PostMapping("addTenVoltage")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON, operateType = OperateType.ADD)
|
||||
@ApiOperation("新增10kV线路")
|
||||
@ApiImplicitParam(name = "pvTenVoltageParam", value = "10kV线路实体", required = true)
|
||||
public HttpResult<Object> addTenVoltage(@RequestBody @Validated PvTenVoltageParam pvTenVoltageParam) {
|
||||
String methodDescribe = getMethodDescribe("addTenVoltage");
|
||||
boolean flag = iPvTenVoltageService.addTenVoltage(pvTenVoltageParam);
|
||||
if (flag) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 修改10kV线路
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
*/
|
||||
@PostMapping("updateTenVoltage")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON, operateType = OperateType.UPDATE)
|
||||
@ApiOperation("修改10kV线路")
|
||||
@ApiImplicitParam(name = "updatePvTenVoltageParam", value = "10kV线路实体", required = true)
|
||||
public HttpResult<Object> updateTenVoltage(@RequestBody @Validated PvTenVoltageParam.UpdatePvTenVoltageParam updatePvTenVoltageParam) {
|
||||
String methodDescribe = getMethodDescribe("updateTenVoltage");
|
||||
boolean flag = iPvTenVoltageService.updateTenVoltage(updatePvTenVoltageParam);
|
||||
if (flag) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 分页查询10kV线路
|
||||
*
|
||||
* @param tenVoltageQueryParam 查询实体
|
||||
* @return Page<PvTenVoltage>
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
*/
|
||||
@PostMapping("getPvTenVoltageList")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("分页查询10kV线路")
|
||||
@ApiImplicitParam(name = "tenVoltageQueryParam", value = "10kV线路实体", required = true)
|
||||
public HttpResult<Page<PvTenVoltageVO>> getPvTenVoltageList(@RequestBody @Validated TenVoltageQueryParam tenVoltageQueryParam) {
|
||||
String methodDescribe = getMethodDescribe("getPvTenVoltageList");
|
||||
Page<PvTenVoltageVO> page = iPvTenVoltageService.getPvTenVoltageList(tenVoltageQueryParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, page, methodDescribe);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有10kV线路
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return List<PvTenVoltage>
|
||||
*/
|
||||
@GetMapping("getAllPvTenVoltageList")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("查询所有10kV线路")
|
||||
public HttpResult<List<PvTenVoltage>> getAllPvTenVoltageList(){
|
||||
String methodDescribe = getMethodDescribe("getAllPvTenVoltageList");
|
||||
List<PvTenVoltage> res = iPvTenVoltageService.getAllPvTenVoltageList();
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, res, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据10kV线路id查询10kV线路
|
||||
*
|
||||
* @param id 10kV线路id
|
||||
* @return PvTenVoltage
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
*/
|
||||
@GetMapping("getPvTenVoltageById")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("根据10kV线路id查询10kV线路")
|
||||
@ApiImplicitParam(name = "id", value = "10kV线路id", required = true)
|
||||
public HttpResult<PvTenVoltage> getPvTenVoltageById(@RequestParam("id") String id) {
|
||||
String methodDescribe = getMethodDescribe("getPvTenVoltageById");
|
||||
PvTenVoltage pvTenVoltage = iPvTenVoltageService.getPvTenVoltageById(id);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, pvTenVoltage, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 删除10kV线路
|
||||
*
|
||||
* @param ids 10kV线路id
|
||||
* @return boolean
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
*/
|
||||
@PostMapping("delPvTenVoltage")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("删除10kV线路")
|
||||
@ApiImplicitParam(name = "ids", value = "10kV线路id", required = true)
|
||||
public HttpResult<PvTenVoltage> delPvTenVoltage(@RequestBody List<String> ids) {
|
||||
String methodDescribe = getMethodDescribe("delPvTenVoltage");
|
||||
boolean flag = iPvTenVoltageService.delPvTenVoltage(ids);
|
||||
if (flag) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,92 +0,0 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
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.pms.pojo.param.PvTerminalBaseQuery;
|
||||
import com.njcn.device.pms.pojo.vo.DisOrLvVO;
|
||||
import com.njcn.device.pms.pojo.vo.PvLineAllDetailVO;
|
||||
import com.njcn.device.pms.service.PvTerminalBaseService;
|
||||
import com.njcn.user.pojo.vo.PvTerminalTreeVO;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
* 台账相关控制
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/7/11
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pvTerminalBase")
|
||||
@Api(tags = "pv终端相关基础管理")
|
||||
@RequiredArgsConstructor
|
||||
public class PvTerminalBaseController extends BaseController {
|
||||
|
||||
private final PvTerminalBaseService pvTerminalBaseService;
|
||||
|
||||
|
||||
/**
|
||||
* 获取终端台账树
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/7/11
|
||||
*/
|
||||
@GetMapping("pvTree")
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@ApiOperation("获取终端台账树")
|
||||
public HttpResult<List<PvTerminalTreeVO>> pvTerminalTree() {
|
||||
String methodDescribe = getMethodDescribe("pvTerminalTree");
|
||||
List<PvTerminalTreeVO> tree = pvTerminalBaseService.pvTerminalTree();
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, tree, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 点击变电站台区展示监测点详情
|
||||
* @param pvTerminalBaseQuery 传参
|
||||
* @author cdf
|
||||
* @date 2022/7/11
|
||||
*/
|
||||
@PostMapping("pvLineDetail")
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@ApiOperation("点击树节点获取监测点详情")
|
||||
@ApiImplicitParam(name = "pvTerminalBaseQuery",value = "参数",required = true)
|
||||
public HttpResult<Page<PvLineAllDetailVO>> lineDetailBySubId(@RequestBody @Validated PvTerminalBaseQuery pvTerminalBaseQuery) {
|
||||
String methodDescribe = getMethodDescribe("lineDetailBySubId");
|
||||
Page<PvLineAllDetailVO> all = pvTerminalBaseService.lineDetailBySubId(pvTerminalBaseQuery);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, all, methodDescribe);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据userCode 和 userCodeType
|
||||
* @author cdf
|
||||
* @date 2022/7/28
|
||||
*/
|
||||
@GetMapping("pvDisOrLv")
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@ApiOperation("根据用户编号获取低压分布式详情")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "userCode", value = "用户编号"),
|
||||
@ApiImplicitParam(name = "userCodeType", value = "用户编号类型 0.光伏 1.低压"),
|
||||
})
|
||||
public HttpResult<DisOrLvVO> pvDisOrLv(@RequestParam("userCode")String userCode,@RequestParam("userCodeType")Integer userCodeType) {
|
||||
String methodDescribe = getMethodDescribe("pvDisOrLv");
|
||||
DisOrLvVO all = pvTerminalBaseService.pvDisOrLv(userCode,userCodeType);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, all, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -1,119 +0,0 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
|
||||
import com.njcn.device.pms.service.IPvUnitService;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-07-05
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pvUnit")
|
||||
@Api(tags = "pv单位控制器")
|
||||
@RequiredArgsConstructor
|
||||
public class PvUnitController extends BaseController {
|
||||
|
||||
private final IPvUnitService iPvUnitService;
|
||||
|
||||
/* *//**
|
||||
* 新增单位
|
||||
* @param pvUnitParam 单位实体
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
*//*
|
||||
@PostMapping("addUnit")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.ADD)
|
||||
@ApiOperation("新增单位")
|
||||
@ApiImplicitParam(name = "pvUnitParam",value = "单位实体",required = true)
|
||||
public HttpResult<Object> addUnit(@RequestBody @Validated PvUnitParam pvUnitParam){
|
||||
String methodDescribe = getMethodDescribe("addUnit");
|
||||
iPvUnitService.addUnit(pvUnitParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
*//**
|
||||
* 修改单位
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
*//*
|
||||
@PostMapping("updateUnit")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.UPDATE)
|
||||
@ApiOperation("修改单位")
|
||||
@ApiImplicitParam(name = "updatePvUnitParam",value = "单位实体",required = true)
|
||||
public HttpResult<Object> updateUnit(@RequestBody @Validated PvUnitParam.UpdatePvUnitParam updatePvUnitParam){
|
||||
String methodDescribe = getMethodDescribe("updateUnit");
|
||||
iPvUnitService.updateUnit(updatePvUnitParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
*//**
|
||||
* 查询所有单位
|
||||
* @param baseParam 查询实体
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return Page<PvUnit>
|
||||
*//*
|
||||
@PostMapping("getPvUnitList")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("查询所有单位")
|
||||
@ApiImplicitParam(name = "baseParam",value = "单位实体",required = true)
|
||||
public HttpResult<List<UnitTreeVO>> getPvUnitList(@RequestBody BaseParam baseParam){
|
||||
String methodDescribe = getMethodDescribe("getPvUnitList");
|
||||
List<UnitTreeVO> res = iPvUnitService.getPvUnitList(baseParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, res, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
|
||||
*//**
|
||||
* 根据单位id查询单位
|
||||
* @param id 单位id
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return PvUnit
|
||||
*//*
|
||||
@GetMapping("getPvUnitById")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("根据单位id查询单位")
|
||||
@ApiImplicitParam(name = "id",value = "单位id",required = true)
|
||||
public HttpResult<PvUnit> getPvUnitById(@RequestParam("id") String id){
|
||||
String methodDescribe = getMethodDescribe("getPvUnitById");
|
||||
PvUnit pvUnit = iPvUnitService.getPvUnitById(id);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, pvUnit, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
*//**
|
||||
* 删除单位
|
||||
* @param id 单位id
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return boolean
|
||||
*//*
|
||||
@DeleteMapping("delPvUnit")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("删除单位")
|
||||
@ApiImplicitParam(name = "id",value = "单位id",required = true)
|
||||
public HttpResult<PvUnit> delPvUnit(@RequestParam("id") String id){
|
||||
String methodDescribe = getMethodDescribe("delPvUnit");
|
||||
iPvUnitService.delPvUnit(id);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
@@ -1,144 +0,0 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
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.pms.pojo.param.PvVoltageParam;
|
||||
import com.njcn.device.pms.pojo.param.VoltageQueryParam;
|
||||
import com.njcn.device.pms.pojo.po.PvVoltage;
|
||||
import com.njcn.device.pms.service.IPvVoltageService;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-07-05
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pvVoltage")
|
||||
@Api(tags = "pv母线控制器")
|
||||
@RequiredArgsConstructor
|
||||
public class PvVoltageController extends BaseController {
|
||||
|
||||
private final IPvVoltageService iPvVoltageService;
|
||||
|
||||
|
||||
/**
|
||||
* 新增母线
|
||||
* @param pvVoltageParam 母线实体
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
*/
|
||||
@PostMapping("addVoltage")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.ADD)
|
||||
@ApiOperation("新增母线")
|
||||
@ApiImplicitParam(name = "pvVoltageParam",value = "母线实体",required = true)
|
||||
public HttpResult<Object> addVoltage(@RequestBody @Validated PvVoltageParam pvVoltageParam){
|
||||
String methodDescribe = getMethodDescribe("addVoltage");
|
||||
iPvVoltageService.addVoltage(pvVoltageParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 修改母线
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
*/
|
||||
@PostMapping("updateVoltage")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.UPDATE)
|
||||
@ApiOperation("修改母线")
|
||||
@ApiImplicitParam(name = "updatePvVoltageParam",value = "母线实体",required = true)
|
||||
public HttpResult<Object> updateVoltage(@RequestBody @Validated PvVoltageParam.UpdatePvVoltageParam updatePvVoltageParam){
|
||||
String methodDescribe = getMethodDescribe("updateVoltage");
|
||||
iPvVoltageService.updateVoltage(updatePvVoltageParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 分页查询母线
|
||||
* @param voltageQueryParam 查询实体
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return Page<PvVoltage>
|
||||
*/
|
||||
@PostMapping("getPvVoltageList")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("分页查询母线")
|
||||
@ApiImplicitParam(name = "voltageQueryParam",value = "母线实体",required = true)
|
||||
public HttpResult<Page<PvVoltage>> getPvVoltageList(@RequestBody VoltageQueryParam voltageQueryParam){
|
||||
String methodDescribe = getMethodDescribe("getPvVoltageList");
|
||||
Page<PvVoltage> page = iPvVoltageService.getPvVoltageList(voltageQueryParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, page, methodDescribe);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有母线
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return Page<PvVoltage>
|
||||
*/
|
||||
@PostMapping("getAllPvVoltageList")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("查询所有母线")
|
||||
public HttpResult<List<PvVoltage>> getAllPvVoltageList(){
|
||||
String methodDescribe = getMethodDescribe("getAllPvVoltageList");
|
||||
List<PvVoltage> list = iPvVoltageService.getAllPvVoltageList();
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据母线id查询母线
|
||||
* @param id 母线id
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return PvVoltage
|
||||
*/
|
||||
@GetMapping("getPvVoltageById")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("根据母线id查询母线")
|
||||
@ApiImplicitParam(name = "id",value = "母线id",required = true)
|
||||
public HttpResult<PvVoltage> getPvVoltageById(@RequestParam("id") String id){
|
||||
String methodDescribe = getMethodDescribe("getPvVoltageById");
|
||||
PvVoltage pvVoltage = iPvVoltageService.getPvVoltageById(id);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, pvVoltage, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 删除母线
|
||||
* @param id 母线id
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return boolean
|
||||
*/
|
||||
@DeleteMapping("delPvVoltage")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("删除母线")
|
||||
@ApiImplicitParam(name = "id",value = "母线id",required = true)
|
||||
public HttpResult<PvVoltage> delPvVoltage(@RequestParam("id") String id){
|
||||
String methodDescribe = getMethodDescribe("delPvVoltage");
|
||||
iPvVoltageService.delPvVoltage(id);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
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.pms.pojo.dto.PwPmsMonitorDTO;
|
||||
import com.njcn.device.pms.pojo.param.PwPmsMonitorParam;
|
||||
import com.njcn.device.pms.service.IMonitorService;
|
||||
import com.njcn.device.pms.service.IPwMonitorService;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
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 yzh
|
||||
* @date 2022/10/28
|
||||
*/
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/pms/pwMonitor")
|
||||
@Slf4j
|
||||
@Api(tags = "配网监测点信息")
|
||||
@RequiredArgsConstructor
|
||||
public class PwMonitorController extends BaseController {
|
||||
|
||||
private final IPwMonitorService iPwMonitorService;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 获取配网所有监测点信息
|
||||
*
|
||||
* @param pwPmsMonitorParam 参数条件
|
||||
* @return 配网所有监测点信息
|
||||
*/
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/getPwMonitorList")
|
||||
@ApiOperation("获取配网所有监测点信息")
|
||||
@ApiImplicitParam(name = "pwPmsMonitorParam",value = "获取配网所有监测点信息条件",required = true)
|
||||
public HttpResult<List<PwPmsMonitorDTO>> getPwMonitorList(@RequestBody @Validated PwPmsMonitorParam pwPmsMonitorParam) {
|
||||
String methodDescribe = getMethodDescribe("getPwMonitorList");
|
||||
List<PwPmsMonitorDTO> monitorList = iPwMonitorService.getPwMonitorList(pwPmsMonitorParam);
|
||||
if (CollectionUtil.isEmpty(monitorList)) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.NO_DATA, null, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, monitorList, methodDescribe);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
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.pms.pojo.param.RMpMonitorAlarmCountMParam;
|
||||
import com.njcn.device.pms.pojo.param.RStatAreaAlarmCountMParam;
|
||||
import com.njcn.device.pms.pojo.vo.RMpMonitorAlarmCountMVO;
|
||||
import com.njcn.device.pms.pojo.vo.RStatAreaAlarmCountMVO;
|
||||
import com.njcn.device.pms.service.RMpMonitorAlarmCountMService;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
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;
|
||||
|
||||
/**
|
||||
* 监测点告警统计
|
||||
* @Title RMpMonitorAlarmCountMController
|
||||
* @Package com.njcn.device.pms.controller
|
||||
* @Author jianghaifei
|
||||
* @Date 2022-10-13 08:54
|
||||
* @Version V1.0
|
||||
*/
|
||||
@RestController
|
||||
@Api(tags = "主网-监测点告警统计(月)")
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/rMpMonitorAlarmCountM")
|
||||
public class RMpMonitorAlarmCountMController extends BaseController {
|
||||
|
||||
private final RMpMonitorAlarmCountMService rMpMonitorAlarmCountMService;
|
||||
|
||||
@PostMapping("/getRMpMonitorAlarmCountMList")
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@ApiOperation("根据条件查询监测点告警统计(月)")
|
||||
public HttpResult<List<RMpMonitorAlarmCountMVO>> getAllRStatAreaAlarmCountMList(@RequestBody RMpMonitorAlarmCountMParam rMpMonitorAlarmCountMParam) {
|
||||
String methodDescribe = getMethodDescribe("getAllRStatAreaAlarmCountMList");
|
||||
List<RMpMonitorAlarmCountMVO> list = rMpMonitorAlarmCountMService.getRMpMonitorAlarmCountMList(rMpMonitorAlarmCountMParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
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.pms.pojo.param.RStatAreaAlarmCountMParam;
|
||||
import com.njcn.device.pms.pojo.param.RStatZwAlarmCountWParam;
|
||||
import com.njcn.device.pms.pojo.vo.RStatAreaAlarmCountMVO;
|
||||
import com.njcn.device.pms.pojo.vo.RStatZwAlarmCountWVO;
|
||||
import com.njcn.device.pms.service.RStatAreaAlarmCountMService;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Title RStatAreaAlarmCountMController
|
||||
* @Package com.njcn.device.pms.controller
|
||||
* @Author jianghaifei
|
||||
* @Date 2022-10-10 15:13
|
||||
* @Version V1.0
|
||||
*/
|
||||
|
||||
@RestController
|
||||
@Api(tags = "主网-区域告警统计(月)")
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/rStatAreaAlarmCountM")
|
||||
public class RStatAreaAlarmCountMController extends BaseController {
|
||||
|
||||
private final RStatAreaAlarmCountMService rStatAreaAlarmCountMService;
|
||||
|
||||
@PostMapping("getAllRStatAreaAlarmCountMList")
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@ApiOperation("根据条件查询所有区域告警统计(月)")
|
||||
public HttpResult<List<RStatAreaAlarmCountMVO>> getAllRStatAreaAlarmCountMList(@RequestBody RStatAreaAlarmCountMParam rStatAreaAlarmCountMParam) {
|
||||
String methodDescribe = getMethodDescribe("getAllRStatAreaAlarmCountMList");
|
||||
List<RStatAreaAlarmCountMVO> list = rStatAreaAlarmCountMService.getAllRStatAreaAlarmCountMList(rStatAreaAlarmCountMParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
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.pms.pojo.param.UniversalFrontEndParam;
|
||||
import com.njcn.device.pms.pojo.vo.RStatBusbarHarmonicVO;
|
||||
import com.njcn.device.pms.service.RStatBusbarHarmonicService;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
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 yzh
|
||||
* @date 2022/10/8
|
||||
*/
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/rStatBusbarHarmonic")
|
||||
@Api(tags = "变电站背景谐波")
|
||||
@RequiredArgsConstructor
|
||||
public class RStatBusbarHarmonicController extends BaseController {
|
||||
|
||||
private final RStatBusbarHarmonicService statBusbarHarmonicService;
|
||||
|
||||
/**
|
||||
* 获取变电站母线电压指标年报
|
||||
*
|
||||
* @param param 前端传入参数
|
||||
* @return 变电站母线电压指标年报
|
||||
*/
|
||||
@PostMapping("/getRStatBusbarHarmonic")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("获取变电站母线电压指标年报")
|
||||
@ApiImplicitParam(name = "param", value = "获取变电站母线电压指标年报前端参数", required = true)
|
||||
public HttpResult<List<RStatBusbarHarmonicVO>> getRStatBusbarHarmonic(@RequestBody UniversalFrontEndParam param) {
|
||||
String methodDescribe = getMethodDescribe("getRStatBusbarHarmonic");
|
||||
List<RStatBusbarHarmonicVO> list = statBusbarHarmonicService.getRStatBusbarHarmonic(param);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
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.pms.pojo.param.RStatZwAlarmCountWParam;
|
||||
import com.njcn.device.pms.pojo.vo.ProblemMonitorDetailVO;
|
||||
import com.njcn.device.pms.pojo.vo.RStatZwAlarmCountWVO;
|
||||
import com.njcn.device.pms.service.RStatZwAlarmCountWService;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Title RStatZwAlarmCountWController
|
||||
* @Package com.njcn.device.pms.controller
|
||||
* @Author jianghaifei
|
||||
* @Date 2022-10-09 08:56
|
||||
* @Version V1.0
|
||||
*/
|
||||
@RestController
|
||||
@Api(tags = "主网-告警统计(周)")
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/rStatZwAlarmCount")
|
||||
public class RStatZwAlarmCountWController extends BaseController {
|
||||
|
||||
private final RStatZwAlarmCountWService rStatZwAlarmCountWService;
|
||||
|
||||
|
||||
/***
|
||||
* 查询所有告警统计(周)
|
||||
* @author jianghaifei
|
||||
* @date 2022-10-09 15:23
|
||||
* @param
|
||||
* @return com.njcn.common.pojo.response.HttpResult<java.util.List<com.njcn.device.pms.pojo.vo.RStatZwAlarmCountWVO>>
|
||||
*/
|
||||
@PostMapping("getAllRStatZwAlarmCountList")
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@ApiOperation("根据条件查询所有告警统计(周)")
|
||||
public HttpResult<List<RStatZwAlarmCountWVO>> getAllRStatZwAlarmCountList(@RequestBody RStatZwAlarmCountWParam rStatZwAlarmCountWParam) {
|
||||
String methodDescribe = getMethodDescribe("getAllRStatZwAlarmCountList");
|
||||
List<RStatZwAlarmCountWVO> list = rStatZwAlarmCountWService.getAllRStatZwAlarmCountWList(rStatZwAlarmCountWParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
|
||||
}
|
||||
|
||||
/***
|
||||
* 查询问题严重的监测点信息
|
||||
* @author jianghaifei
|
||||
* @date 2022-10-13 16:34
|
||||
* @param
|
||||
* @return com.njcn.common.pojo.response.HttpResult<java.util.List<com.njcn.device.pms.pojo.vo.RStatZwAlarmCountWVO>>
|
||||
*/
|
||||
@PostMapping("getProblemMonitorDetailList")
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@ApiOperation("查询问题严重的监测点信息")
|
||||
public HttpResult<List<ProblemMonitorDetailVO>> getProblemMonitorDetailList(@RequestBody RStatZwAlarmCountWParam rStatZwAlarmCountWParam) {
|
||||
String methodDescribe = getMethodDescribe("getProblemMonitorDetailList");
|
||||
List<ProblemMonitorDetailVO> list = rStatZwAlarmCountWService.getProblemMonitorDetailList(rStatZwAlarmCountWParam);
|
||||
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
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.pms.pojo.param.UniversalFrontEndParam;
|
||||
import com.njcn.device.pms.pojo.vo.RmpEventDetailVO;
|
||||
import com.njcn.device.pms.service.RmpEventDetailService;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
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 yzh
|
||||
* @date 2022/10/12
|
||||
*/
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/rmpEventDetail")
|
||||
@Api(tags = "暂态事件明细")
|
||||
@RequiredArgsConstructor
|
||||
public class RmpEventDetailController extends BaseController {
|
||||
|
||||
private final RmpEventDetailService rmpEventDetailService;
|
||||
|
||||
/**
|
||||
* 获取暂态事件明细
|
||||
*
|
||||
* @param param 前端传入参数
|
||||
* @return 暂态事件明细
|
||||
*/
|
||||
@PostMapping("/getDetailsOfTransientEvents")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@ApiOperation("获取区域暂态指标统计")
|
||||
@ApiImplicitParam(name = "param", value = "前端参数", required = true)
|
||||
public HttpResult<List<RmpEventDetailVO>> getRmpEventDetail(@RequestBody UniversalFrontEndParam param) {
|
||||
String methodDescribe = getMethodDescribe("getRmpEventDetail");
|
||||
List<RmpEventDetailVO> list = rmpEventDetailService.getRmpEventDetail(param);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pms/sourceManagement")
|
||||
public class SourceManagementController extends BaseController {
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,136 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
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.pms.pojo.dto.PmsStatationStatInfoDTO;
|
||||
import com.njcn.device.pms.pojo.param.StatationStatParam;
|
||||
import com.njcn.device.pms.pojo.param.PmsStatationStatInfoParam;
|
||||
import com.njcn.device.pms.pojo.po.StatationStat;
|
||||
import com.njcn.device.pms.service.IStatationStatService;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import com.njcn.web.pojo.param.BaseParam;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 电站监测点设置信息
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pms/statationStat")
|
||||
@Slf4j
|
||||
@Api(tags = "变电站统计")
|
||||
@RequiredArgsConstructor
|
||||
public class StatationStatController extends BaseController {
|
||||
|
||||
private final IStatationStatService statationStatService;
|
||||
/**
|
||||
* 获取监测点信息
|
||||
*/
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/getStatationStat")
|
||||
@ApiOperation("获取指定的变电站信息")
|
||||
// @ApiImplicitParams({
|
||||
// @ApiImplicitParam(name = "pmsStatationStatInfoParam", value = "获取指定的变电站信息条件", required = true)
|
||||
// })
|
||||
public HttpResult<List<PmsStatationStatInfoDTO>> getStatationStatInfo(@RequestBody @Validated PmsStatationStatInfoParam pmsStatationStatInfoParam) {
|
||||
String methodDescribe = getMethodDescribe("getStatationStatInfo");
|
||||
List<PmsStatationStatInfoDTO> monitorInfo = statationStatService.getStatationStatInfo(pmsStatationStatInfoParam);
|
||||
if (CollectionUtil.isEmpty(monitorInfo)) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.NO_DATA, null, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, monitorInfo, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*台账部分***************************/
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.ADD)
|
||||
@PostMapping("/addstatationStat")
|
||||
@ApiOperation("新增电站")
|
||||
@ApiImplicitParam(name = "statationStatParam", value = "电站实体", required = true)
|
||||
public HttpResult<Boolean> addstatationStat(@RequestBody StatationStatParam statationStatParam) {
|
||||
String methodDescribe = getMethodDescribe("addstatationStat");
|
||||
boolean result = statationStatService.addStatationStat(statationStatParam);
|
||||
if(result){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.UPDATE)
|
||||
@PostMapping("/updatestatationStat")
|
||||
@ApiOperation("修改电站")
|
||||
@ApiImplicitParam(name = "statationStatParam", value = "电站实体", required = true)
|
||||
public HttpResult<Boolean> updatestatationStat(@RequestBody StatationStatParam statationStatParam) {
|
||||
String methodDescribe = getMethodDescribe("updatestatationStat");
|
||||
boolean result = statationStatService.updateStatationStat(statationStatParam);
|
||||
if(result){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.DELETE)
|
||||
@DeleteMapping("/delstatationStat")
|
||||
@ApiOperation("删除电站")
|
||||
@ApiImplicitParam(name = "statationStatIds", value = "电站ids", required = true)
|
||||
public HttpResult<Boolean> delstatationStat(@RequestBody @NotEmpty(message = "电站id不可为空") List<String> statationStatIds) {
|
||||
String methodDescribe = getMethodDescribe("delstatationStat");
|
||||
boolean result = statationStatService.delStatationStat(statationStatIds);
|
||||
if(result){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@GetMapping("/getstatationStatById")
|
||||
@ApiOperation("根据电站id获取电站")
|
||||
@ApiImplicitParam(name = "statationStatId", value = "电站id", required = true)
|
||||
public HttpResult<StatationStat> getstatationStatById(@RequestParam("statationStatId") String statationStatId) {
|
||||
String methodDescribe = getMethodDescribe("getstatationStatById");
|
||||
StatationStat result = statationStatService.getStatationStatById(statationStatId);
|
||||
if(Objects.nonNull(result)){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/getstatationStatList")
|
||||
@ApiOperation("获取电站列表")
|
||||
@ApiImplicitParam(name = "baseParam", value = "基本查询体", required = true)
|
||||
public HttpResult<List<StatationStat>> getstatationStatList(@RequestBody BaseParam baseParam) {
|
||||
String methodDescribe = getMethodDescribe("getstatationStatList");
|
||||
List<StatationStat> result = statationStatService.getStatationStatList(baseParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pms/statisticsRunMonitor")
|
||||
public class StatisticsRunMonitorController extends BaseController {
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,132 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.common.utils.LogUtil;
|
||||
import com.njcn.device.pms.pojo.param.PmsTerminalParam;
|
||||
import com.njcn.device.pms.pojo.po.Terminal;
|
||||
import com.njcn.device.pms.pojo.vo.PmsTerminalVO;
|
||||
import com.njcn.device.pms.service.ITerminalService;
|
||||
import com.njcn.device.pq.pojo.param.TerminalParam;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import com.njcn.web.controller.BaseController;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 监测终端台账增删改查
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/pms/terminal")
|
||||
@Api(tags = "监测终端台账")
|
||||
@RequiredArgsConstructor
|
||||
@Validated
|
||||
public class TerminalController extends BaseController {
|
||||
|
||||
private final ITerminalService iTerminalService;
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("getTerminalList")
|
||||
@ApiOperation("查询监测终端台账所有信息")
|
||||
@ApiImplicitParam(name = "queryParam",value = "查询监测终端台账信息",required = true)
|
||||
public HttpResult<Page<PmsTerminalVO>> getTerminalList(@RequestBody @Validated PmsTerminalParam.QueryParam queryParam){
|
||||
String methodDescribe = getMethodDescribe("getTerminalList");
|
||||
LogUtil.njcnDebug(log, "{},查询数据为:{}", methodDescribe, queryParam);
|
||||
Page<PmsTerminalVO> res = iTerminalService.getTerminalList(queryParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS,res,methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@GetMapping("/getTerminalById")
|
||||
@ApiOperation("根据ID查询监测终端台账数据")
|
||||
@ApiImplicitParam(name = "id",value = "id",required = true)
|
||||
public HttpResult<Terminal> getTerminalById(@RequestParam("id") String id){
|
||||
String methodDescribe = getMethodDescribe("getTerminalById");
|
||||
Terminal terminal = iTerminalService.getTerminalById(id);
|
||||
if (Objects.nonNull(terminal)){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, terminal, methodDescribe);
|
||||
}
|
||||
else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增监测终端台账信息
|
||||
* @author hany
|
||||
* @date 2022/10/26
|
||||
*/
|
||||
@PostMapping("/addTerminal")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType= OperateType.ADD)
|
||||
@ApiOperation("新增监测终端台账信息")
|
||||
@ApiImplicitParam(name = "terminalParam", value = "新增实体", required = true)
|
||||
public HttpResult<Object> add(@RequestBody @Validated PmsTerminalParam terminalParam){
|
||||
String methodDescribe = getMethodDescribe("add");
|
||||
boolean result = iTerminalService.add(terminalParam);
|
||||
if (result) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改监测终端台账信息
|
||||
* @author hany
|
||||
* @date 2022/10/27
|
||||
*/
|
||||
@PostMapping("/updateTerminal")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.UPDATE)
|
||||
@ApiOperation("修改监测终端台账信息")
|
||||
@ApiImplicitParam(name = "UpdateParam", value = "更新实体", required = true)
|
||||
public HttpResult<Object> update(@RequestBody @Validated PmsTerminalParam updateParam){
|
||||
String methodDescribe = getMethodDescribe("update");
|
||||
boolean result = iTerminalService.update(updateParam);
|
||||
if (result) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除监测终端台账信息
|
||||
* @param ids id
|
||||
* @author hany
|
||||
* @date 2022/10/27
|
||||
*/
|
||||
@PostMapping("/deleteTerminal")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON, operateType = OperateType.DELETE)
|
||||
@ApiOperation("删除监测终端台账信息")
|
||||
@ApiImplicitParam(name = "ids", value = "ID索引", required = true)
|
||||
public HttpResult<Object> delete(@RequestBody List<String> ids){
|
||||
String methodDescribe = getMethodDescribe("delete");
|
||||
boolean result = iTerminalService.delete(ids);
|
||||
if(result){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pms/terminalEliminateData")
|
||||
public class TerminalEliminateDataController extends BaseController {
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
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.pms.pojo.param.TractionStationParam;
|
||||
import com.njcn.device.pms.pojo.po.TractionStation;
|
||||
import com.njcn.device.pms.service.ITractionStationService;
|
||||
import com.njcn.web.pojo.param.BaseParam;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import com.njcn.web.controller.BaseController;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 牵引站信息
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/pms/tractionStation")
|
||||
@Api(tags = "牵引站信息")
|
||||
@RequiredArgsConstructor
|
||||
@Validated
|
||||
public class TractionStationController extends BaseController {
|
||||
|
||||
private final ITractionStationService iTractionStationService;
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/getTractionStationList")
|
||||
@ApiOperation("获取牵引站列表")
|
||||
@ApiImplicitParam(name = "baseParam", value = "基本查询体", required = true)
|
||||
public HttpResult<List<TractionStation>> getTractionStationList(@RequestBody BaseParam baseParam) {
|
||||
String methodDescribe = getMethodDescribe("getTractionStationList");
|
||||
List<TractionStation> result = iTractionStationService.getTractionStationList(baseParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@GetMapping("/getTractionStationById")
|
||||
@ApiOperation("根据id获取牵引站信息")
|
||||
@ApiImplicitParam(name = "tractionStationId", value = "电站id", required = true)
|
||||
public HttpResult<TractionStation> getTractionStationById(@RequestParam("tractionStationId") String tractionStationId) {
|
||||
String methodDescribe = getMethodDescribe("getTractionStationById");
|
||||
TractionStation res = iTractionStationService.getTractionStationById(tractionStationId);
|
||||
if(Objects.nonNull(res)){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, res, methodDescribe);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增牵引站信息
|
||||
* @author hany
|
||||
* @date 2022/10/28
|
||||
*/
|
||||
@PostMapping("/addTractionStation")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType= OperateType.ADD)
|
||||
@ApiOperation("新增牵引站信息")
|
||||
@ApiImplicitParam(name = "tractionStationParam", value = "新增实体", required = true)
|
||||
public HttpResult<Object> add(@RequestBody @Validated TractionStationParam tractionStationParam){
|
||||
String methodDescribe = getMethodDescribe("add");
|
||||
boolean result = iTractionStationService.add(tractionStationParam);
|
||||
if (result) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改牵引站信息
|
||||
* @author hany
|
||||
* @date 2022/10/28
|
||||
*/
|
||||
@PostMapping("/updateTractionStation")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.UPDATE)
|
||||
@ApiOperation("修改牵引站信息")
|
||||
@ApiImplicitParam(name = "updateParam", value = "更新实体", required = true)
|
||||
public HttpResult<Object> update(@RequestBody @Validated TractionStationParam updateParam){
|
||||
String methodDescribe = getMethodDescribe("update");
|
||||
boolean result = iTractionStationService.update(updateParam);
|
||||
if (result) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除牵引站信息
|
||||
* @param ids id
|
||||
* @author hany
|
||||
* @date 2022/10/28
|
||||
*/
|
||||
@PostMapping("/deleteTractionStation")
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON, operateType = OperateType.DELETE)
|
||||
@ApiOperation("删除牵引站信息")
|
||||
@ApiImplicitParam(name = "ids", value = "ID索引", required = true)
|
||||
public HttpResult<Object> delete(@RequestBody List<String> ids){
|
||||
String methodDescribe = getMethodDescribe("delete");
|
||||
boolean result = iTractionStationService.delete(ids);
|
||||
if(result){
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pms/transientStasticData")
|
||||
public class TransientStasticDataController extends BaseController {
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.njcn.device.pms.controller;
|
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pms/treatTransientDetailData")
|
||||
public class TreatTransientDetailDataController extends BaseController {
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.dto.PmsMonitorBaseDTO;
|
||||
import com.njcn.device.pms.pojo.param.PmsDeviceInfoParam;
|
||||
import com.njcn.device.pms.pojo.po.DistributionMonitor;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
public interface DistributionMonitorMapper extends BaseMapper<DistributionMonitor> {
|
||||
|
||||
/**
|
||||
* 根据组织机构id获取配网监测点
|
||||
* @author cdf
|
||||
* @date 2022/10/27
|
||||
*/
|
||||
List<PmsMonitorBaseDTO> getIdByOrgId(@Param("orgIds")List<String> orgIds, @Param("pmsDeviceInfoParam") PmsDeviceInfoParam pmsDeviceInfoParam);
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.po.GeneratrixWire;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* pms-device
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/10/26
|
||||
*/
|
||||
@Mapper
|
||||
public interface GeneratrixWireMapper extends BaseMapper<GeneratrixWire> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.po.HarmonicGeneralManagementData;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
public interface HarmonicGeneralManagementDataMapper extends BaseMapper<HarmonicGeneralManagementData> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.po.HarmonicGeneralManagement;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
public interface HarmonicGeneralManagementMapper extends BaseMapper<HarmonicGeneralManagement> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.common.pojo.dto.SimpleDTO;
|
||||
import com.njcn.device.pms.pojo.dto.PmsMonitorBaseDTO;
|
||||
import com.njcn.device.pms.pojo.dto.PmsMonitorInfoDTO;
|
||||
import com.njcn.device.pms.pojo.dto.PwPmsMonitorDTO;
|
||||
import com.njcn.device.pms.pojo.param.PmsDeviceInfoParam;
|
||||
import com.njcn.device.pms.pojo.param.PmsMonitorInfoParam;
|
||||
import com.njcn.device.pms.pojo.param.PmsMonitorParam;
|
||||
import com.njcn.device.pms.pojo.param.PwPmsMonitorParam;
|
||||
import com.njcn.device.pms.pojo.po.Monitor;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
public interface MonitorMapper extends BaseMapper<Monitor> {
|
||||
|
||||
/***
|
||||
* 根据组织ID以及其查询条件筛选出台账信息
|
||||
* @author hongawen
|
||||
* @date 2022/10/17 13:32
|
||||
* @param orgIdList 部门索引
|
||||
* @param pmsDeviceInfoParam 查询条件
|
||||
* @return List<Monitor>
|
||||
*/
|
||||
List<PmsMonitorBaseDTO> getMonitorByCondition(@Param("orgIdList") List<String> orgIdList,
|
||||
@Param("pmsDeviceInfoParam") PmsDeviceInfoParam pmsDeviceInfoParam);
|
||||
|
||||
|
||||
/***
|
||||
* 根据组织ID以及其查询条件筛选出变电站信息
|
||||
* @author hongawen
|
||||
* @date 11/1/2022 11:09 AM
|
||||
* @param orgIdList 部门索引
|
||||
* @param pmsDeviceInfoParam 查询条件
|
||||
* @return List<SimpleDTO>
|
||||
*/
|
||||
List<SimpleDTO> getPmsPowerrInfoWithInOrg(@Param("orgIdList") List<String> orgIdList,
|
||||
@Param("pmsDeviceInfoParam") PmsDeviceInfoParam pmsDeviceInfoParam);
|
||||
|
||||
/**
|
||||
* 获取指定的监测点信息
|
||||
*
|
||||
* @param pmsMonitorInfoParam 获取监测点详情数据入参
|
||||
* @return 指定的监测点信息
|
||||
*/
|
||||
List<PmsMonitorInfoDTO> getMonitorInfo(@Param("pmsMonitorInfoParam") PmsMonitorInfoParam pmsMonitorInfoParam);
|
||||
|
||||
|
||||
}
|
||||
@@ -1,7 +1,9 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.njcn.device.pms.pojo.po.PvVoltage;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pq.pojo.po.Overlimit;
|
||||
|
||||
|
||||
/**
|
||||
* <p>
|
||||
@@ -9,8 +11,8 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-07-05
|
||||
* @since 2022-01-04
|
||||
*/
|
||||
public interface PvVoltageMapper extends BaseMapper<PvVoltage> {
|
||||
public interface OverlimitMapper extends BaseMapper<Overlimit> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.dto.PmsGeneratrixDTO;
|
||||
import com.njcn.device.pms.pojo.param.PmsGeneratrixParam;
|
||||
import com.njcn.device.pms.pojo.po.Generatrix;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author yzh
|
||||
* @date 2022/10/18
|
||||
*/
|
||||
@Mapper
|
||||
public interface PmsGeneratrixMapper extends BaseMapper<Generatrix> {
|
||||
|
||||
/**
|
||||
* 获取母线信息
|
||||
*
|
||||
* @param pmsGeneratrixParam 入参
|
||||
* @return 母线信息
|
||||
*/
|
||||
List<PmsGeneratrixDTO> getGeneratrixInfo(@Param("pmsGeneratrixParam") PmsGeneratrixParam pmsGeneratrixParam);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.po.PowerClient;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
public interface PowerClientMapper extends BaseMapper<PowerClient> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.device.pms.pojo.po.PowerDistributionarea;
|
||||
import com.njcn.device.pms.pojo.vo.PowerDistributionareaVO;
|
||||
import com.njcn.system.pojo.vo.EventTemplateVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
public interface PowerDistributionareaMapper extends BaseMapper<PowerDistributionarea> {
|
||||
|
||||
Page<PowerDistributionareaVO> page(@Param("page")Page<PowerDistributionareaVO> page, @Param("ew") QueryWrapper<PowerDistributionareaVO> queryWrapper);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.po.PowerGenerationUser;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
public interface PowerGenerationUserMapper extends BaseMapper<PowerGenerationUser> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.po.PowerQualityMatter;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
public interface PowerQualityMatterMapper extends BaseMapper<PowerQualityMatter> {
|
||||
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.device.pms.pojo.param.DeviceQueryParam;
|
||||
import com.njcn.device.pms.pojo.po.PvDevice;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.vo.PvDeviceVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-07-05
|
||||
*/
|
||||
public interface PvDeviceMapper extends BaseMapper<PvDevice> {
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 获取所有终端台账
|
||||
* @author cdf
|
||||
* @date 2022/7/8
|
||||
*/
|
||||
Page<PvDeviceVO> getPvDeviceList(Page<PvDeviceVO> page, @Param("deviceQueryParam") DeviceQueryParam deviceQueryParam);
|
||||
|
||||
|
||||
List<PvDeviceVO> getAllPvDeviceList();
|
||||
|
||||
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.njcn.device.pms.pojo.bo.DeviceRunExBO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author yangj
|
||||
* @date 2022/09/14
|
||||
*/
|
||||
public interface PvDeviceRunExMapper {
|
||||
|
||||
/**
|
||||
* 查询pq_line表获取信息
|
||||
* @param lineLevel 监测点等级
|
||||
* @param pid 父级id
|
||||
* @return List<DeviceRunExBO>
|
||||
*/
|
||||
List<DeviceRunExBO> findPQLineInfo(@Param("lineLevel") String lineLevel, @Param("pid") String pid);
|
||||
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.njcn.device.pms.pojo.po.PvDispatch;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-07-05
|
||||
*/
|
||||
public interface PvDispatchMapper extends BaseMapper<PvDispatch> {
|
||||
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.device.pms.pojo.param.DistributedQueryParam;
|
||||
import com.njcn.device.pms.pojo.po.PvDistributed;
|
||||
import com.njcn.device.pms.pojo.vo.PvDistributedVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-07-06
|
||||
*/
|
||||
public interface PvDistributedMapper extends BaseMapper<PvDistributed> {
|
||||
|
||||
/**
|
||||
* 查询索引分布式光伏
|
||||
* @author cdf
|
||||
* @date 2022/7/7
|
||||
*/
|
||||
Page<PvDistributedVO> getPvDistributedList(Page<PvDistributedVO> page, @Param("distributedQueryParam") DistributedQueryParam distributedQueryParam);
|
||||
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.device.pms.pojo.po.PvLineDetail;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.vo.PvLineAllDetailVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-07-05
|
||||
*/
|
||||
public interface PvLineDetailMapper extends BaseMapper<PvLineDetail> {
|
||||
|
||||
|
||||
/**
|
||||
* 分页查询监测点
|
||||
* @param subIds 变电站ids
|
||||
* @param subAreaIds 台区ids
|
||||
* @author cdf
|
||||
* @date 2022/7/5
|
||||
* @return Page<PvLineDetail>
|
||||
*/
|
||||
Page<PvLineAllDetailVO> getPvLineAllDetailMain(Page<PvLineAllDetailVO> page,@Param("subIds") List<String> subIds, @Param("subAreaIds")List<String> subAreaIds,@Param("type")String type,@Param("lineStatus")Integer lineStatus);
|
||||
|
||||
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.device.pms.pojo.param.LvUserQueryParam;
|
||||
import com.njcn.device.pms.pojo.po.PvLvUser;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.vo.PvLvUserVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-07-05
|
||||
*/
|
||||
public interface PvLvUserMapper extends BaseMapper<PvLvUser> {
|
||||
|
||||
/**
|
||||
* 分页获取低压用户台账
|
||||
* @author cdf
|
||||
* @date 2022/7/8
|
||||
*/
|
||||
Page<PvLvUserVO> getPvLvUserList(Page<PvLvUserVO> page, @Param("lvUserQueryParam") LvUserQueryParam lvUserQueryParam);
|
||||
|
||||
}
|
||||
@@ -1,41 +0,0 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.device.pms.pojo.param.SubAreaQueryParam;
|
||||
import com.njcn.device.pms.pojo.po.PvSubArea;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.vo.DisOrLvVO;
|
||||
import com.njcn.device.pms.pojo.vo.PvSubAreaVO;
|
||||
import com.njcn.user.pojo.vo.PvTerminalTreeVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-07-05
|
||||
*/
|
||||
public interface PvSubAreaMapper extends BaseMapper<PvSubArea> {
|
||||
|
||||
|
||||
/**
|
||||
* 查询所有台区
|
||||
* @author cdf
|
||||
* @date 2022/7/7
|
||||
*/
|
||||
Page<PvSubAreaVO> getPvSubAreaList(Page<PvSubAreaVO> page, @Param("subsAreaQueryParam") SubAreaQueryParam subsAreaQueryParam);
|
||||
|
||||
/**
|
||||
* 查询所有台区
|
||||
* @author cdf
|
||||
* @date 2022/7/11
|
||||
*/
|
||||
List<PvTerminalTreeVO> getSubAreaTreeList();
|
||||
|
||||
|
||||
DisOrLvVO pvDisOrLv(String userCode, String userCodeType);
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.device.pms.pojo.param.SubstationQueryParam;
|
||||
import com.njcn.device.pms.pojo.po.PvSubstation;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.vo.PvSubstationVO;
|
||||
import com.njcn.user.pojo.vo.PvTerminalTreeVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-07-05
|
||||
*/
|
||||
public interface PvSubstationMapper extends BaseMapper<PvSubstation> {
|
||||
|
||||
Page<PvSubstationVO> getPvSubstationList(Page<PvSubstation> page, @Param("substationQueryParam") SubstationQueryParam substationQueryParam);
|
||||
|
||||
/**
|
||||
* 终端树结构的变电站
|
||||
* @author cdf
|
||||
* @date 2022/7/11
|
||||
*/
|
||||
List<PvTerminalTreeVO> getSubstationTreeList();
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.device.pms.pojo.param.TenVoltageQueryParam;
|
||||
import com.njcn.device.pms.pojo.po.PvTenVoltage;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.vo.PvTenVoltageVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-07-05
|
||||
*/
|
||||
public interface PvTenVoltageMapper extends BaseMapper<PvTenVoltage> {
|
||||
|
||||
/**
|
||||
* 获取所有10kV线路
|
||||
* @author cdf
|
||||
* @date 2022/7/7
|
||||
*/
|
||||
Page<PvTenVoltageVO> getPvTenVoltageList(Page<PvTenVoltageVO> page, @Param("tenVoltageQueryParam") TenVoltageQueryParam tenVoltageQueryParam);
|
||||
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.njcn.device.pms.pojo.po.PvUnit;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.vo.UnitTreeVO;
|
||||
import com.njcn.user.pojo.vo.PvTerminalTreeVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-07-05
|
||||
*/
|
||||
public interface PvUnitMapper extends BaseMapper<PvUnit> {
|
||||
|
||||
/**
|
||||
* 获取主列表单位树
|
||||
* @author cdf
|
||||
* @date 2022/7/7
|
||||
*/
|
||||
List<UnitTreeVO> getPvUnitList(@Param("orderBy")String orderBy,@Param("sortBy")String sortBy);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.njcn.device.pms.pojo.dto.PwPmsMonitorDTO;
|
||||
import com.njcn.device.pms.pojo.param.PwPmsMonitorParam;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author yzh
|
||||
* @date 2022/10/28
|
||||
*/
|
||||
@Mapper
|
||||
public interface PwMonitorMapper {
|
||||
|
||||
/**
|
||||
* 获取配网监测点信息
|
||||
*
|
||||
* @param deptIdList 所有子部门索引
|
||||
* @param pwPmsMonitorParam 查询条件
|
||||
* @return 配网监测点信息
|
||||
*/
|
||||
List<PwPmsMonitorDTO> getPwMonitorDataList(@Param("deptIdList") List<String> deptIdList,
|
||||
@Param("pwPmsMonitorParam") PwPmsMonitorParam pwPmsMonitorParam);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.po.RMpMonitorAlarmCountM;
|
||||
|
||||
/**
|
||||
* @author jianghf
|
||||
* @description 针对表【r_mp_monitor_alarm_count_m】的数据库操作Mapper
|
||||
* @createDate 2022-10-12 20:08:33
|
||||
* @Entity com.njcn.device.pms.pojo.po.RMpMonitorAlarmCountM
|
||||
*/
|
||||
public interface RMpMonitorAlarmCountMMapper extends BaseMapper<RMpMonitorAlarmCountM> {
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.po.RMpPwAlarmDetailD;
|
||||
|
||||
/**
|
||||
* @author jianghf
|
||||
* @description 针对表【r_mp_pw_alarm_detail_d】的数据库操作Mapper
|
||||
* @createDate 2022-10-17 09:00:27
|
||||
* @Entity com.njcn.device.pms.pojo.po.RMpPwAlarmDetailD
|
||||
*/
|
||||
public interface RMpPwAlarmDetailDMapper extends BaseMapper<RMpPwAlarmDetailD> {
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.po.RMpTargetWarnD;
|
||||
|
||||
/**
|
||||
* @author jianghf
|
||||
* @description 针对表【r_mp_target_warn_d】的数据库操作Mapper
|
||||
* @createDate 2022-10-17 10:20:11
|
||||
* @Entity com.njcn.device.pms.pojo.po.RMpTargetWarnD
|
||||
*/
|
||||
public interface RMpTargetWarnDMapper extends BaseMapper<RMpTargetWarnD> {
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.po.RStatAreaAlarmCountM;
|
||||
|
||||
/**
|
||||
* @author jianghf
|
||||
* @description 针对表【r_stat_area_alarm_count_m】的数据库操作Mapper
|
||||
* @createDate 2022-10-10 14:36:46
|
||||
* @Entity com.njcn.device.pms.pojo.po.RStatAreaAlarmCountM
|
||||
*/
|
||||
public interface RStatAreaAlarmCountMMapper extends BaseMapper<RStatAreaAlarmCountM> {
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.po.PmsMonitorPO;
|
||||
import com.njcn.device.pms.pojo.vo.RStatBusbarHarmonicVO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 变电站母线电压指标年报持久层
|
||||
*
|
||||
* @author yzh
|
||||
* @date 2022/10/8
|
||||
*/
|
||||
|
||||
@Mapper
|
||||
public interface RStatBusbarHarmonicMapper extends BaseMapper<RStatBusbarHarmonicVO> {
|
||||
|
||||
/**
|
||||
* 根据部门id查询监测点id
|
||||
*
|
||||
* @param deptIds 部门id
|
||||
* @return 监测点id
|
||||
*/
|
||||
List<PmsMonitorPO> getMonitorInfo(@Param("deptIds") List<String> deptIds);
|
||||
|
||||
|
||||
/**
|
||||
* 查询变电站背景谐波年表
|
||||
*
|
||||
* @param startTime 开始时间
|
||||
* @param endTime 结束时间
|
||||
* @param generatrixIds 母线id
|
||||
* @return 获取变电站母线电压指标年报
|
||||
*/
|
||||
List<RStatBusbarHarmonicVO> getAnnualReportOfSubstationBusVoltageIndex(@Param("startTime") String startTime,
|
||||
@Param("endTime") String endTime,
|
||||
@Param("busbarIds") List<String> generatrixIds);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.njcn.device.pms.pojo.po.RStatEventOrgPO;
|
||||
import com.njcn.device.pms.pojo.vo.RStatEventOrgVO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 区域暂态指标分类统计表
|
||||
*
|
||||
* @author yzh
|
||||
* @date 2022/10/13
|
||||
*/
|
||||
@Mapper
|
||||
public interface RStatEventOrgMapper {
|
||||
|
||||
/**
|
||||
* 获取年区域暂态指标分类统计表
|
||||
*
|
||||
* @param deptIds 部门id
|
||||
* @param startTime 开始时间
|
||||
* @param endTime 结束时间
|
||||
* @return 年区域暂态指标分类统计表
|
||||
*/
|
||||
List<RStatEventOrgVO> getYearRStatEventOrgInfo(@Param("deptIds") List<String> deptIds,
|
||||
@Param("startTime") String startTime,
|
||||
@Param("endTime") String endTime);
|
||||
|
||||
/**
|
||||
* 获取季区域暂态指标分类统计表
|
||||
*
|
||||
* @param deptIds 部门id
|
||||
* @param startTime 开始时间
|
||||
* @param endTime 结束时间
|
||||
* @return 季区域暂态指标分类统计表
|
||||
*/
|
||||
List<RStatEventOrgVO> getQuarterRStatEventOrgInfo(@Param("deptIds") List<String> deptIds,
|
||||
@Param("startTime") String startTime,
|
||||
@Param("endTime") String endTime);
|
||||
|
||||
/**
|
||||
* 获取月区域暂态指标分类统计表
|
||||
*
|
||||
* @param deptIds 部门id
|
||||
* @param startTime 开始时间
|
||||
* @param endTime 结束时间
|
||||
* @return 月区域暂态指标分类统计表
|
||||
*/
|
||||
List<RStatEventOrgVO> getMonthRStatEventOrgInfoInfo(@Param("deptIds") List<String> deptIds,
|
||||
@Param("startTime") String startTime,
|
||||
@Param("endTime") String endTime);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.vo.RStatOrgVO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 暂态指标统计
|
||||
*
|
||||
* @author yzh
|
||||
* @date 2022/10/10
|
||||
*/
|
||||
|
||||
@Mapper
|
||||
public interface RStatOrgMapper {
|
||||
|
||||
/**
|
||||
* 获取年区域暂态指标统计
|
||||
*
|
||||
* @param deptIds 单位id
|
||||
* @param startTime 开始时间
|
||||
* @param endTime 结束时间
|
||||
* @return 年区域暂态指标统计
|
||||
*/
|
||||
List<RStatOrgVO> getYearRStatOrgInfo(@Param("deptIds") List<String> deptIds,
|
||||
@Param("startTime") String startTime,
|
||||
@Param("endTime") String endTime);
|
||||
|
||||
/**
|
||||
* 获取季区域暂态指标统计
|
||||
*
|
||||
* @param deptIds 单位id
|
||||
* @param startTime 开始时间
|
||||
* @param endTime 结束时间
|
||||
* @return 季区域暂态指标统计
|
||||
*/
|
||||
List<RStatOrgVO> getQuarterRStatOrgInfo(@Param("deptIds") List<String> deptIds,
|
||||
@Param("startTime") String startTime,
|
||||
@Param("endTime") String endTime);
|
||||
|
||||
/**
|
||||
* 获取月区域暂态指标统计
|
||||
*
|
||||
* @param deptIds 单位id
|
||||
* @param startTime 开始时间
|
||||
* @param endTime 结束时间
|
||||
* @return 月区域暂态指标统计
|
||||
*/
|
||||
List<RStatOrgVO> getMonthRStatOrgInfo(@Param("deptIds") List<String> deptIds,
|
||||
@Param("startTime") String startTime,
|
||||
@Param("endTime") String endTime);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.njcn.device.pms.pojo.po.PmsMonitorPO;
|
||||
import com.njcn.device.pms.pojo.vo.RStatSubstationVO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 变电站暂态指标分类统计
|
||||
*
|
||||
* @author yzh
|
||||
* @date 2022/10/14
|
||||
*/
|
||||
|
||||
@Mapper
|
||||
public interface RStatSubstationMapper {
|
||||
|
||||
/**
|
||||
* 根据部门id查询监测点id
|
||||
*
|
||||
* @param deptIds 部门id
|
||||
* @return 监测点id
|
||||
*/
|
||||
List<PmsMonitorPO> getMonitorInfo(@Param("deptIds") List<String> deptIds);
|
||||
|
||||
/**
|
||||
* 获取年变电站暂态指标分类统计表
|
||||
*
|
||||
* @param powerrIds 变电站id
|
||||
* @param startTime 开始时间
|
||||
* @param endTime 结束时间
|
||||
* @return 年变电站暂态指标分类统计表
|
||||
*/
|
||||
List<RStatSubstationVO> getYearInfo(List<String> powerrIds, String startTime, String endTime);
|
||||
|
||||
/**
|
||||
* 获取季变电站暂态指标分类统计表
|
||||
*
|
||||
* @param powerrIds 变电站id
|
||||
* @param startTime 开始时间
|
||||
* @param endTime 结束时间
|
||||
* @return 季变电站暂态指标分类统计表
|
||||
*/
|
||||
List<RStatSubstationVO> getQuarterInfo(List<String> powerrIds, String startTime, String endTime);
|
||||
|
||||
/**
|
||||
* 获取月变电站暂态指标分类统计表
|
||||
*
|
||||
* @param powerrIds 变电站id
|
||||
* @param startTime 开始时间
|
||||
* @param endTime 结束时间
|
||||
* @return 月变电站暂态指标分类统计表
|
||||
*/
|
||||
List<RStatSubstationVO> getMonthInfo(List<String> powerrIds, String startTime, String endTime);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.device.pms.pojo.param.RStatZwAlarmCountWParam;
|
||||
import com.njcn.device.pms.pojo.po.RStatZwAlarmCountW;
|
||||
import com.njcn.device.pms.pojo.vo.RStatZwAlarmCountWVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* @author jianghf
|
||||
* @description 针对表【r_stat_zw_alarm_count_w】的数据库操作Mapper
|
||||
* @createDate 2022-10-08 16:35:44
|
||||
* @Entity generator.domain.RStatZwAlarmCountW
|
||||
*/
|
||||
public interface RStatZwAlarmCountWMapper extends BaseMapper<RStatZwAlarmCountW> {
|
||||
|
||||
Page<RStatZwAlarmCountWVO> getRStatZwAlarmCountWList(Page<RStatZwAlarmCountWVO> page, @Param("rStatZwAlarmCountWParam") RStatZwAlarmCountWParam rStatZwAlarmCountWParam);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.vo.RmpEventDetailVO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 暂态事件明细
|
||||
*
|
||||
* @author yzh
|
||||
* @date 2022/10/12
|
||||
*/
|
||||
@Mapper
|
||||
public interface RmpEventDetailMapper extends BaseMapper<RmpEventDetailVO> {
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.po.SourceManagement;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
public interface SourceManagementMapper extends BaseMapper<SourceManagement> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.dto.PmsStatationStatInfoDTO;
|
||||
import com.njcn.device.pms.pojo.param.PmsStatationStatInfoParam;
|
||||
import com.njcn.device.pms.pojo.po.StatationStat;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
public interface StatationStatMapper extends BaseMapper<StatationStat> {
|
||||
|
||||
/**
|
||||
* 获取指定的变电站信息
|
||||
*
|
||||
* @param pmsStatationStatInfoParam 变电站详情数据入参
|
||||
* @return 指定的变电站信息
|
||||
*/
|
||||
List<PmsStatationStatInfoDTO> getStatationStatInfo(@Param("pmsStatationStatInfoParam") PmsStatationStatInfoParam pmsStatationStatInfoParam);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.po.StatisticsRunMonitor;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
public interface StatisticsRunMonitorMapper extends BaseMapper<StatisticsRunMonitor> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.po.TerminalEliminateData;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
public interface TerminalEliminateDataMapper extends BaseMapper<TerminalEliminateData> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.device.pms.pojo.po.Terminal;
|
||||
import com.njcn.device.pms.pojo.vo.PmsTerminalVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
public interface TerminalMapper extends BaseMapper<Terminal> {
|
||||
|
||||
Page<PmsTerminalVO> page(@Param("page")Page<PmsTerminalVO> page, @Param("ew") QueryWrapper<PmsTerminalVO> queryWrapper);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.po.TractionStation;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
public interface TractionStationMapper extends BaseMapper<TractionStation> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.po.TransientStasticData;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
public interface TransientStasticDataMapper extends BaseMapper<TransientStasticData> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.njcn.device.pms.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.device.pms.pojo.po.TreatTransientDetailData;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2022-10-14
|
||||
*/
|
||||
public interface TreatTransientDetailDataMapper extends BaseMapper<TreatTransientDetailData> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.device.pms.mapper.DistributionMonitorMapper">
|
||||
|
||||
|
||||
<select id="getIdByOrgId" resultType="PmsMonitorBaseDTO">
|
||||
SELECT
|
||||
t.Operation_Id operationId,t.Power_Station_Id powerrId,t.Line_Id lineId,t.id monitorId
|
||||
FROM
|
||||
(
|
||||
( SELECT id, Operation_Id, Power_Station_Id, Line_Id FROM pms_power_client WHERE org_id IN
|
||||
<foreach collection="orgIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
AND Is_Up_To_Grid = 1 AND STATUS = 1 ) UNION ALL
|
||||
( SELECT id, Operation_Id, Power_Station_Id, Line_Id FROM pms_power_generation_user WHERE org_id IN
|
||||
<foreach collection="orgIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
AND Is_Up_To_Grid = 1 AND STATUS = 1 ) UNION ALL
|
||||
( SELECT id, Operation_Id, Power_Station_Id, Line_Id FROM pms_power_distributionarea WHERE org_id IN
|
||||
<foreach collection="orgIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
AND Is_Up_To_Grid = 1 AND STATUS = 1 ) UNION ALL
|
||||
( SELECT id, Operation_Id, Powerr_Id, Line_Id FROM pms_monitor WHERE org_id IN
|
||||
<foreach collection="orgIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
AND Is_Up_To_Grid = 1 AND STATUS = 1 )
|
||||
) t
|
||||
INNER JOIN pms_distribution_monitor b ON t.id = b.Monitor_Id
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.device.pms.mapper.HarmonicGeneralManagementDataMapper">
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.device.pms.mapper.HarmonicGeneralManagementMapper">
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,137 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.device.pms.mapper.MonitorMapper">
|
||||
|
||||
<!--根据组织ID以及其查询条件筛选出台账信息-->
|
||||
<select id="getMonitorByCondition" resultType="com.njcn.device.pms.pojo.dto.PmsMonitorBaseDTO">
|
||||
SELECT
|
||||
pms_monitor.id monitorId,
|
||||
pms_monitor.Operation_Id,
|
||||
pms_monitor.Powerr_id,
|
||||
pms_monitor.Terminal_Id,
|
||||
pms_monitor.Generatrix_Id,
|
||||
pms_monitor.line_Name,
|
||||
pms_monitor.line_Id
|
||||
FROM
|
||||
pms_monitor pms_monitor LEFT JOIN pms_terminal pms_terminal ON pms_monitor.Terminal_Id = pms_terminal.id
|
||||
WHERE
|
||||
pms_monitor.Org_Id IN
|
||||
<foreach collection="orgIdList" item="orgId" open="(" close=")" separator=",">
|
||||
#{orgId}
|
||||
</foreach>
|
||||
<if test="pmsDeviceInfoParam.voltageLevel!=null and pmsDeviceInfoParam.voltageLevel.size()!=0">
|
||||
AND pms_monitor.Voltage_Level IN
|
||||
<foreach collection="pmsDeviceInfoParam.voltageLevel" item="item" open="(" close=")" separator=",">
|
||||
#{item.id}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="pmsDeviceInfoParam.monitorObjectType!=null and pmsDeviceInfoParam.monitorObjectType.size()!=0">
|
||||
AND pms_monitor.Monitor_Object_Type IN
|
||||
<foreach collection="pmsDeviceInfoParam.monitorObjectType" item="item" open="(" close=")" separator=",">
|
||||
#{item.id}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="pmsDeviceInfoParam.monitorState!=null and pmsDeviceInfoParam.monitorState.size()!=0">
|
||||
AND pms_monitor.Monitor_State IN
|
||||
<foreach collection="pmsDeviceInfoParam.monitorState" item="item" open="(" close=")" separator=",">
|
||||
#{item.id}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="pmsDeviceInfoParam.manufacturer!=null and pmsDeviceInfoParam.manufacturer.size()!=0">
|
||||
AND pms_terminal.Manufacture IN
|
||||
<foreach collection="pmsDeviceInfoParam.manufacturer" item="item" open="(" close=")" separator=",">
|
||||
#{item.id}
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
<!--根据组织ID以及其查询条件筛选出变电站信息-->
|
||||
<select id="getPmsPowerrInfoWithInOrg" resultType="com.njcn.common.pojo.dto.SimpleDTO">
|
||||
SELECT
|
||||
pms_monitor.Powerr_id id,
|
||||
pms_monitor.Powerr_Name name
|
||||
FROM
|
||||
pms_monitor pms_monitor LEFT JOIN pms_terminal pms_terminal ON pms_monitor.Terminal_Id = pms_terminal.id
|
||||
WHERE
|
||||
pms_monitor.Org_Id IN
|
||||
<foreach collection="orgIdList" item="orgId" open="(" close=")" separator=",">
|
||||
#{orgId}
|
||||
</foreach>
|
||||
<if test="pmsDeviceInfoParam.voltageLevel!=null and pmsDeviceInfoParam.voltageLevel.size()!=0">
|
||||
AND pms_monitor.Voltage_Level IN
|
||||
<foreach collection="pmsDeviceInfoParam.voltageLevel" item="item" open="(" close=")" separator=",">
|
||||
#{item.id}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="pmsDeviceInfoParam.monitorObjectType!=null and pmsDeviceInfoParam.monitorObjectType.size()!=0">
|
||||
AND pms_monitor.Monitor_Object_Type IN
|
||||
<foreach collection="pmsDeviceInfoParam.monitorObjectType" item="item" open="(" close=")" separator=",">
|
||||
#{item.id}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="pmsDeviceInfoParam.monitorState!=null and pmsDeviceInfoParam.monitorState.size()!=0">
|
||||
AND pms_monitor.Monitor_State IN
|
||||
<foreach collection="pmsDeviceInfoParam.monitorState" item="item" open="(" close=")" separator=",">
|
||||
#{item.id}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="pmsDeviceInfoParam.manufacturer!=null and pmsDeviceInfoParam.manufacturer.size()!=0">
|
||||
AND pms_terminal.Manufacture IN
|
||||
<foreach collection="pmsDeviceInfoParam.manufacturer" item="item" open="(" close=")" separator=",">
|
||||
#{item.id}
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
<!--获取指定的监测点信息-->
|
||||
<select id="getMonitorInfo" resultType="com.njcn.device.pms.pojo.dto.PmsMonitorInfoDTO">
|
||||
SELECT
|
||||
pm.Org_Id AS orgId,
|
||||
pm.Org_Name AS orgName,
|
||||
pm.Powerr_Id AS powerId,
|
||||
pm.Powerr_Name AS powerName,
|
||||
pm.Generatrix_Id AS generatrixId,
|
||||
pm.Generatrix_Name AS generatrixName,
|
||||
pm.Id AS monitorId,
|
||||
pm.`Name` AS monitorName,
|
||||
pm.Generatrix_Id AS generatrixId,
|
||||
pm.Generatrix_Name AS generatrixName,
|
||||
pm.Voltage_Level AS monitorVoltageLevel,
|
||||
pm.Monitor_Type AS monitorType,
|
||||
pm.Monitor_State AS monitorState
|
||||
FROM
|
||||
pms_monitor AS pm
|
||||
WHERE
|
||||
pm.`Status` = 1
|
||||
AND pm.Id IN
|
||||
<foreach collection="pmsMonitorInfoParam.monitorIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
<if test="pmsMonitorInfoParam.monitorVoltageLevel != null and pmsMonitorInfoParam.monitorVoltageLevel.size() != 0">
|
||||
AND pm.Voltage_Level IN
|
||||
<foreach collection="pmsMonitorInfoParam.monitorVoltageLevel" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="pmsMonitorInfoParam.monitorType != null and pmsMonitorInfoParam.monitorType.size() != 0">
|
||||
AND pm.Monitor_Type IN
|
||||
<foreach collection="pmsMonitorInfoParam.monitorType" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="pmsMonitorInfoParam.monitorState != null and pmsMonitorInfoParam.monitorState.size() != 0">
|
||||
AND pm.Monitor_State IN
|
||||
<foreach collection="pmsMonitorInfoParam.monitorState" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="pmsMonitorInfoParam.monitorName != null and pmsMonitorInfoParam.monitorName != ''">
|
||||
AND pm.`Name` LIKE CONCAT('%',#{pmsMonitorInfoParam.monitorName},'%')
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.device.pms.mapper.PmsGeneratrixMapper">
|
||||
|
||||
<!--获取母线信息-->
|
||||
<select id="getGeneratrixInfo" resultType="com.njcn.device.pms.pojo.dto.PmsGeneratrixDTO">
|
||||
SELECT
|
||||
Org_Id AS orgId,
|
||||
Org_Name AS orgName,
|
||||
Powerr_Id AS powerId,
|
||||
Powerr_Name AS powerName,
|
||||
Generatrix_Id AS generatrixId,
|
||||
Generatrix_Name AS generatrixName,
|
||||
Id AS monitorId,
|
||||
`Name` AS monitorName,
|
||||
Voltage_Level AS generatrixVoltageLevel
|
||||
FROM
|
||||
pms_monitor
|
||||
WHERE
|
||||
Status = 1
|
||||
AND Generatrix_Id IN
|
||||
<foreach collection="pmsGeneratrixParam.generatrixIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
<if test="pmsGeneratrixParam.generatrixVoltageLevel != null and pmsGeneratrixParam.generatrixVoltageLevel.size() != 0">
|
||||
AND Voltage_Level IN
|
||||
<foreach collection="pmsGeneratrixParam.generatrixVoltageLevel" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="pmsGeneratrixParam.generatrixName != null and pmsGeneratrixParam.generatrixName != ''">
|
||||
AND Generatrix_Name LIKE CONCAT('%',#{pmsGeneratrixParam.generatrixName},'%')
|
||||
</if>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.device.pms.mapper.PvDispatchMapper">
|
||||
<mapper namespace="com.njcn.device.pms.mapper.PowerClientMapper">
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.device.pms.mapper.PowerDistributionareaMapper">
|
||||
|
||||
<select id="page" resultType="com.njcn.device.pms.pojo.vo.PowerDistributionareaVO">
|
||||
SELECT pms_power_distributionarea.*
|
||||
FROM pms_power_distributionarea pms_power_distributionarea
|
||||
WHERE ${ew.sqlSegment}
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.device.pms.mapper.PowerGenerationUserMapper">
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.device.pms.mapper.PowerQualityMatterMapper">
|
||||
|
||||
</mapper>
|
||||
@@ -1,86 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.device.pms.mapper.PvDeviceMapper">
|
||||
|
||||
<select id="getPvDeviceList" resultType="PvDeviceVO">
|
||||
SELECT
|
||||
dev.id,
|
||||
dev.manufacturer,
|
||||
dic.NAME manufacturerName,
|
||||
dic2.NAME devTypeName,
|
||||
dev.dev_Type,
|
||||
dev.type,
|
||||
dic3.name typeName,
|
||||
dev.Dev_Code,
|
||||
dev.name,
|
||||
dev.ip,
|
||||
dev.port,
|
||||
dev.load_time,
|
||||
dev.dev_status,
|
||||
dev.communicate_Type,
|
||||
dev.Series,
|
||||
dev.Dev_Key,
|
||||
dev.This_Time_Check,
|
||||
dev.Next_Time_Check,
|
||||
dic4.name devGradeName,
|
||||
dev.dev_grade
|
||||
FROM
|
||||
pv_device dev
|
||||
LEFT JOIN sys_dict_data dic ON dev.manufacturer = dic.id
|
||||
LEFT JOIN sys_dict_data dic2 ON dev.Dev_Type = dic2.id
|
||||
LEFT JOIN sys_dict_data dic3 ON dev.type = dic3.id
|
||||
LEFT JOIN sys_dict_data dic4 ON dev.dev_grade = dic4.id
|
||||
<where>
|
||||
<if test="deviceQueryParam.searchValue!=null and deviceQueryParam.searchValue!=''">
|
||||
and dev.dev_code like CONCAT('%',#{deviceQueryParam.searchValue},'%')
|
||||
or dev.name like CONCAT('%',#{deviceQueryParam.searchValue},'%')
|
||||
</if>
|
||||
|
||||
<if test="deviceQueryParam.manufacturer!=null and deviceQueryParam.manufacturer.size > 0">
|
||||
and dev.manufacturer in
|
||||
<foreach collection="deviceQueryParam.manufacturer" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
|
||||
<if test="deviceQueryParam.type!=null and deviceQueryParam.type.size > 0">
|
||||
and dev.type in
|
||||
<foreach collection="deviceQueryParam.type" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
and dev.state = 1
|
||||
</where>
|
||||
order by dev.create_time asc
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getAllPvDeviceList" resultType="PvDeviceVO">
|
||||
SELECT
|
||||
dev.id,
|
||||
dev.manufacturer,
|
||||
dic.NAME manufacturerName,
|
||||
dic2.NAME devTypeName,
|
||||
dev.dev_Type,
|
||||
dev.type,
|
||||
dic3.name typeName,
|
||||
dic3.code typeCode,
|
||||
dev.Dev_Code,
|
||||
dev.name,
|
||||
dev.ip,
|
||||
dev.port,
|
||||
dev.load_time,
|
||||
dev.dev_status,
|
||||
dev.communicate_Type,
|
||||
dev.Series,
|
||||
dev.Dev_Key,
|
||||
dev.This_Time_Check,
|
||||
dev.Next_Time_Check
|
||||
FROM
|
||||
pv_device dev
|
||||
LEFT JOIN sys_dict_data dic ON dev.manufacturer = dic.id
|
||||
LEFT JOIN sys_dict_data dic2 ON dev.Dev_Type = dic2.id
|
||||
LEFT JOIN sys_dict_data dic3 ON dev.type = dic3.id
|
||||
where dev.state = 1
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -1,32 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.device.pms.mapper.PvDeviceRunExMapper">
|
||||
|
||||
|
||||
<resultMap id="findPQLine" type="com.njcn.device.pms.pojo.bo.DeviceRunExBO">
|
||||
<id column="Id" property="id"/>
|
||||
<result column="Pid" property="pid"/>
|
||||
<result column="Pids" property="pidS"/>
|
||||
<result column="Name" property="name"/>
|
||||
<result column="Level" property="level"/>
|
||||
<result column="Sort" property="sort"/>
|
||||
<result column="Remark" property="remark"/>
|
||||
<result column="State" property="state"/>
|
||||
<result column="Create_By" property="createBy"/>
|
||||
<result column="Create_Time" property="createTime"/>
|
||||
<result column="Update_By" property="updateBy"/>
|
||||
<result column="Update_Time" property="updateTime"/>
|
||||
<collection property="children" column="id" ofType="com.njcn.device.pms.pojo.bo.DeviceRunExBO"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="findPQLineInfo" resultMap="findPQLine">
|
||||
select
|
||||
t1.*
|
||||
from pq_line t1
|
||||
left join pq_line_detail t2
|
||||
on t1.Id = t2.Id
|
||||
where pid = #{pid}
|
||||
and t2.Line_Grade = #{lineLevel}
|
||||
and State = 1
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -1,39 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.device.pms.mapper.PvDistributedMapper">
|
||||
|
||||
<select id="getPvDistributedList" resultType="PvDistributedVO">
|
||||
SELECT
|
||||
dis.id,
|
||||
dic.NAME scaleName,
|
||||
dis.scale,
|
||||
dis.NAME,
|
||||
dis.User_Code,
|
||||
dis.Dev_Code,
|
||||
dis.Machine_Capacity,
|
||||
dis.Inte_Type,
|
||||
dis.Phase,
|
||||
dis.Energy_Capacity,
|
||||
dis.code,
|
||||
dis.Smart_Switch,
|
||||
dis.install_time,
|
||||
dis.run_time
|
||||
FROM
|
||||
pv_distributed dis
|
||||
LEFT JOIN sys_dict_data dic ON dis.scale = dic.id
|
||||
<where>
|
||||
<if test="distributedQueryParam.searchValue!=null and distributedQueryParam.searchValue!=''">
|
||||
and dis.name like CONCAT('%',#{distributedQueryParam.searchValue},'%')
|
||||
</if>
|
||||
|
||||
<if test="distributedQueryParam.scale!=null and distributedQueryParam.scale.size > 0">
|
||||
and dis.scale in
|
||||
<foreach collection="distributedQueryParam.scale" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
and dis.state = 1
|
||||
</where>
|
||||
order by dis.create_time asc
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -1,179 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.device.pms.mapper.PvLineDetailMapper">
|
||||
|
||||
<select id="getPvLineAllDetailMain" resultType="PvLineAllDetailVO">
|
||||
|
||||
<if test="subIds!=null and subIds.size!=0">
|
||||
SELECT
|
||||
line.id,
|
||||
line.NAME,
|
||||
line.CODE,
|
||||
line.user_Code,
|
||||
line.user_Code_type,
|
||||
line.dev_id,
|
||||
dev.Dev_Code devName,
|
||||
dev.dev_status lineStatus,
|
||||
dic.NAME typeName,
|
||||
line.type,
|
||||
dic1.NAME scaleName,
|
||||
line.scale,
|
||||
line.Substation_Id,
|
||||
sub.NAME substationName,
|
||||
v.NAME voltageName,
|
||||
line.voltage_id,
|
||||
subArea.NAME subAreaName,
|
||||
line.sub_area_id,
|
||||
dis.NAME distributeName,
|
||||
lv.NAME lvUserName,
|
||||
line.num,
|
||||
line.pt1,
|
||||
line.pt2,
|
||||
line.ct1,
|
||||
line.ct2,
|
||||
line.dev_capacity,
|
||||
line.short_capacity,
|
||||
line.standard_capacity,
|
||||
line.deal_capacity,
|
||||
line.pt_Type,
|
||||
dic6.name ptTypeName,
|
||||
line.time_Interval,
|
||||
dic2.NAME loadType,
|
||||
dic3.NAME businessType,
|
||||
line.Monitor_Flag,
|
||||
line.Power_Flag,
|
||||
line.Monitor_Id,
|
||||
line.Obj_Name,
|
||||
line.small_name,
|
||||
line.big_name,
|
||||
line.Stat_flag,
|
||||
line.Remark,
|
||||
line.Tf_Type,
|
||||
dic4.name tfTypeName,
|
||||
line.Tf_Code,
|
||||
line.Ground_Type,
|
||||
dic5.name groundTypeName,
|
||||
line.Put_In,
|
||||
line.Access,
|
||||
line.Power_Supply
|
||||
FROM
|
||||
pv_line_detail line
|
||||
LEFT JOIN pv_device dev ON line.dev_id = dev.id
|
||||
LEFT JOIN sys_dict_data dic ON line.type = dic.id
|
||||
LEFT JOIN sys_dict_data dic1 ON line.scale = dic1.id
|
||||
LEFT JOIN pv_substation sub ON line.Substation_Id = sub.id
|
||||
LEFT JOIN pv_voltage v ON line.voltage_id = v.id
|
||||
LEFT JOIN pv_sub_area subArea ON line.sub_area_id = subArea.id
|
||||
LEFT JOIN Pv_Distributed dis ON line.user_code = dis.user_code
|
||||
LEFT JOIN Pv_Lv_User lv ON line.user_code = lv.user_code
|
||||
LEFT JOIN sys_dict_data dic2 ON line.load_type = dic2.id
|
||||
LEFT JOIN sys_dict_data dic3 ON line.Business_Type = dic3.id
|
||||
LEFT JOIN sys_dict_data dic4 ON line.Tf_Type = dic4.id
|
||||
LEFT JOIN sys_dict_data dic5 ON line.Ground_Type = dic5.id
|
||||
LEFT JOIN sys_dict_data dic6 ON line.pt_type = dic6.id
|
||||
where line.state = 1
|
||||
<if test="subIds!=null and subIds.size!=0">
|
||||
and line.Substation_Id in
|
||||
<foreach collection="subIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="type!=null and type!=''">
|
||||
and line.type = #{type}
|
||||
</if>
|
||||
<if test="lineStatus!=null and type!=''">
|
||||
and dev.dev_status = #{lineStatus}
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<if test="subIds!=null and subIds.size!=0 and subAreaIds!=null and subAreaIds.size!=0">
|
||||
UNION ALL
|
||||
</if>
|
||||
|
||||
|
||||
<if test="subAreaIds!=null and subAreaIds.size!=0">
|
||||
SELECT
|
||||
line.id,
|
||||
line.NAME,
|
||||
line.user_Code,
|
||||
line.user_Code_type,
|
||||
line.CODE,
|
||||
line.dev_id,
|
||||
dev.Dev_Code devName,
|
||||
dev.dev_status lineStatus,
|
||||
dic.NAME typeName,
|
||||
line.type,
|
||||
dic1.NAME scaleName,
|
||||
line.scale,
|
||||
line.Substation_Id,
|
||||
sub.NAME substationName,
|
||||
v.NAME voltageName,
|
||||
line.voltage_id,
|
||||
subArea.NAME subAreaName,
|
||||
line.sub_area_id,
|
||||
dis.NAME distributeName,
|
||||
lv.NAME lvUserName,
|
||||
line.num,
|
||||
line.pt1,
|
||||
line.pt2,
|
||||
line.ct1,
|
||||
line.ct2,
|
||||
line.dev_capacity,
|
||||
line.short_capacity,
|
||||
line.standard_capacity,
|
||||
line.deal_capacity,
|
||||
line.pt_Type,
|
||||
dic6.name ptTypeName,
|
||||
line.time_Interval,
|
||||
dic2.NAME loadType,
|
||||
dic3.NAME businessType,
|
||||
line.Monitor_Flag,
|
||||
line.Power_Flag,
|
||||
line.Monitor_Id,
|
||||
line.Obj_Name,
|
||||
line.small_name,
|
||||
line.big_name,
|
||||
line.Stat_flag,
|
||||
line.Remark,
|
||||
line.Tf_Type,
|
||||
dic4.name tfTypeName,
|
||||
line.Tf_Code,
|
||||
line.Ground_Type,
|
||||
dic5.name groundTypeName,
|
||||
line.Put_In,
|
||||
line.Access,
|
||||
line.Power_Supply
|
||||
FROM
|
||||
pv_line_detail line
|
||||
LEFT JOIN pv_device dev ON line.dev_id = dev.id
|
||||
LEFT JOIN sys_dict_data dic ON line.type = dic.id
|
||||
LEFT JOIN sys_dict_data dic1 ON line.scale = dic1.id
|
||||
LEFT JOIN pv_substation sub ON line.Substation_Id = sub.id
|
||||
LEFT JOIN pv_voltage v ON line.voltage_id = v.id
|
||||
LEFT JOIN pv_sub_area subArea ON line.sub_area_id = subArea.id
|
||||
LEFT JOIN Pv_Distributed dis ON line.user_code = dis.user_code
|
||||
LEFT JOIN Pv_Lv_User lv ON line.user_code = lv.user_code
|
||||
LEFT JOIN sys_dict_data dic2 ON line.load_type = dic2.id
|
||||
LEFT JOIN sys_dict_data dic3 ON line.Business_Type = dic3.id
|
||||
LEFT JOIN sys_dict_data dic4 ON line.Tf_Type = dic4.id
|
||||
LEFT JOIN sys_dict_data dic5 ON line.Ground_Type = dic5.id
|
||||
LEFT JOIN sys_dict_data dic6 ON line.pt_type = dic6.id
|
||||
where line.state = 1
|
||||
<if test="subAreaIds!=null and subAreaIds.size!=0">
|
||||
and line.Sub_Area_Id in
|
||||
<foreach collection="subAreaIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="type!=null and type!=''">
|
||||
and line.type = #{type}
|
||||
</if>
|
||||
<if test="lineStatus!=null and type!=''">
|
||||
and dev.dev_status = #{lineStatus}
|
||||
</if>
|
||||
</if>
|
||||
|
||||
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -1,37 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.device.pms.mapper.PvLvUserMapper">
|
||||
|
||||
<select id="getPvLvUserList" resultType="PvLvUserVO">
|
||||
SELECT
|
||||
lv.id,
|
||||
dic.NAME scaleName,
|
||||
lv.scale,
|
||||
lv.NAME,
|
||||
lv.User_Code,
|
||||
lv.User_Capacity,
|
||||
lv.Complain,
|
||||
lv.Complain_Part,
|
||||
lv.Corrective,
|
||||
lv.Dev_Govern,
|
||||
lv.Govern_Type,
|
||||
lv.Govern_Capacity
|
||||
FROM
|
||||
pv_lv_user lv
|
||||
LEFT JOIN sys_dict_data dic ON lv.scale = dic.id
|
||||
<where>
|
||||
<if test="lvUserQueryParam.searchValue!=null and lvUserQueryParam.searchValue!=''">
|
||||
and lv.name like CONCAT('%',#{lvUserQueryParam.searchValue},'%')
|
||||
</if>
|
||||
|
||||
<if test="lvUserQueryParam.scale!=null and lvUserQueryParam.scale.size > 0">
|
||||
and lv.scale in
|
||||
<foreach collection="lvUserQueryParam.scale" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
and lv.state = 1
|
||||
</where>
|
||||
order by lv.create_time asc
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -1,61 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.device.pms.mapper.PvSubAreaMapper">
|
||||
|
||||
<select id="getPvSubAreaList" resultType="PvSubAreaVO">
|
||||
SELECT
|
||||
sub.id,
|
||||
sub.unit_id,
|
||||
dept.name unitName,
|
||||
sub.ten_Voltage_Id,
|
||||
ten.NAME tenVoltageName,
|
||||
sub.NAME,
|
||||
sub.Code,
|
||||
sub.Cable_Length,
|
||||
sub.Resistance,
|
||||
sub.Reactance,
|
||||
sub.Type,
|
||||
sub.Capacity,
|
||||
sub.Regulation_Mode,
|
||||
sub.React_Capacity,
|
||||
sub.Dev_Fusion,
|
||||
sub.pv,
|
||||
sub.Total_C,
|
||||
sub.Pv_Users,
|
||||
sub.Power_Power
|
||||
FROM
|
||||
pv_sub_area sub
|
||||
INNER JOIN sys_dept dept ON sub.unit_id = dept.id
|
||||
INNER JOIN pv_ten_voltage ten ON ten.id = sub.Ten_Voltage_Id
|
||||
<where>
|
||||
<if test="subsAreaQueryParam.searchValue!=null and subsAreaQueryParam.searchValue!=''">
|
||||
and sub.name like CONCAT('%',#{subsAreaQueryParam.searchValue},'%')
|
||||
</if>
|
||||
|
||||
<if test="subsAreaQueryParam.unitId!=null and subsAreaQueryParam.unitId.size > 0">
|
||||
and sub.unit_id in
|
||||
<foreach collection="subsAreaQueryParam.unitId" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
|
||||
<if test="subsAreaQueryParam.tenVoltageId!=null and subsAreaQueryParam.tenVoltageId.size > 0">
|
||||
and sub.Ten_Voltage_Id in
|
||||
<foreach collection="subsAreaQueryParam.tenVoltageId" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
</where>
|
||||
order by ten.create_time asc
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getSubAreaTreeList" resultType="com.njcn.user.pojo.vo.PvTerminalTreeVO">
|
||||
select id,name,unit_id pid,2 as level from pv_sub_area where state = 1
|
||||
</select>
|
||||
|
||||
|
||||
<select id="pvDisOrLv" resultType="DisOrLvVO">
|
||||
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -1,47 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.device.pms.mapper.PvSubstationMapper">
|
||||
|
||||
<select id="getPvSubstationList" resultType="PvSubstationVO">
|
||||
SELECT
|
||||
sub.id,
|
||||
sub.unit_id,
|
||||
dept.NAME unitName,
|
||||
dic.NAME scaleName,
|
||||
sub.scale,
|
||||
sub.sub_code,
|
||||
sub.NAME,
|
||||
sub.Total_Capacity,
|
||||
sub.Team_Code
|
||||
FROM
|
||||
pv_substation sub
|
||||
LEFT JOIN sys_dict_data dic ON sub.scale = dic.id
|
||||
LEFT JOIN sys_dept dept ON sub.unit_id = dept.id
|
||||
<where>
|
||||
<if test="substationQueryParam.searchValue!=null and substationQueryParam.searchValue!=''">
|
||||
and sub.name like CONCAT('%',#{substationQueryParam.searchValue},'%')
|
||||
</if>
|
||||
<if test="substationQueryParam.unitId!=null and substationQueryParam.unitId.size > 0">
|
||||
and sub.unit_id in
|
||||
<foreach collection="substationQueryParam.unitId" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="substationQueryParam.scale!=null and substationQueryParam.scale.size > 0">
|
||||
and sub.scale in
|
||||
<foreach collection="substationQueryParam.scale" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="substationQueryParam.sortBy!=null and substationQueryParam.sortBy!='' and substationQueryParam.orderBy!=null and substationQueryParam.orderBy!=''">
|
||||
order by concat(#{substationQueryParam.sortBy},' ',#{substationQueryParam.orderBy})
|
||||
</if>
|
||||
</where>
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getSubstationTreeList" resultType="com.njcn.user.pojo.vo.PvTerminalTreeVO">
|
||||
select id,unit_id pid,name,1 as level from pv_substation
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -1,61 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.device.pms.mapper.PvTenVoltageMapper">
|
||||
|
||||
<select id="getPvTenVoltageList" resultType="PvTenVoltageVO">
|
||||
SELECT
|
||||
ten.id,
|
||||
dic.NAME scaleName,
|
||||
ten.scale,
|
||||
dic2.NAME designScaleName,
|
||||
ten.design_scale,
|
||||
ten.NAME,
|
||||
ten.dispatch_Id,
|
||||
ten.code,
|
||||
ten.Cr_Type,
|
||||
ten.Dev_Status,
|
||||
ten.Earthing,
|
||||
ten.Quality,
|
||||
ten.Master_Stroke,
|
||||
ten.Major,
|
||||
ten.Master,
|
||||
ten.Start_Station,
|
||||
ten.End_Station,
|
||||
ten.Run_Load,
|
||||
ten.Output_Power,
|
||||
ten.Max_Current,
|
||||
ten.Put_Into_Date,
|
||||
ten.pv_Status,
|
||||
ten.pv_Capacity,
|
||||
ten.pv_Num
|
||||
FROM
|
||||
pv_ten_voltage ten
|
||||
LEFT JOIN sys_dict_data dic ON ten.scale = dic.id
|
||||
LEFT JOIN sys_dict_data dic2 ON ten.Design_Scale = dic2.id
|
||||
<where>
|
||||
<if test="tenVoltageQueryParam.pvStatus != null">
|
||||
and ten.pv_status = #{tenVoltageQueryParam.pvStatus}
|
||||
</if>
|
||||
<if test="tenVoltageQueryParam.searchValue !=null and tenVoltageQueryParam.searchValue!=''">
|
||||
and ten.name like CONCAT('%',#{tenVoltageQueryParam.searchValue},'%')
|
||||
or ten.code like CONCAT('%',#{tenVoltageQueryParam.searchValue},'%')
|
||||
</if>
|
||||
|
||||
<if test="tenVoltageQueryParam.scale!=null and tenVoltageQueryParam.scale.size > 0">
|
||||
and ten.scale in
|
||||
<foreach collection="tenVoltageQueryParam.scale" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
|
||||
<if test="tenVoltageQueryParam.designScale!=null and tenVoltageQueryParam.designScale.size > 0">
|
||||
and ten.design_Scale in
|
||||
<foreach collection="tenVoltageQueryParam.designScale" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
|
||||
</where>
|
||||
order by ten.create_time asc
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -1,15 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.device.pms.mapper.PvUnitMapper">
|
||||
|
||||
|
||||
<select id="getPvUnitList" resultType="UnitTreeVO">
|
||||
select * from pv_unit
|
||||
<if test="orderBy!=null and orderBy!='' and sortBy!=null and sortBy!=''">
|
||||
order by concat(#{sortBy},' ',#{orderBy})
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.device.pms.mapper.PwMonitorMapper">
|
||||
|
||||
<!--获取配网监测点信息-->
|
||||
<select id="getPwMonitorDataList" resultType="com.njcn.device.pms.pojo.dto.PwPmsMonitorDTO">
|
||||
SELECT DISTINCT
|
||||
monitor.Org_Id AS orgId,
|
||||
monitor.Org_Name AS orgName,
|
||||
monitor.id as monitorId,
|
||||
monitor.`Name` as monitorName,
|
||||
pdm.Monitor_Sort AS monitorSort,
|
||||
pdm.Voltage_Level AS voltageLevel,
|
||||
pdm.If_Power_User AS if_powerUser,
|
||||
pdm.Monitor_State AS monitorState,
|
||||
pdm.Created_Date AS createdDate,
|
||||
pdm.STATUS AS STATUS,
|
||||
pdm.Create_By AS createBy,
|
||||
pdm.Create_Time AS createTime,
|
||||
pdm.Update_By AS updateBy,
|
||||
pdm.Update_Time AS updateTime
|
||||
FROM (
|
||||
(SELECT pm.id, pm.`Name`, pm.`Status`, pm.Org_Id, pm.Org_Name FROM pms_monitor AS pm)
|
||||
UNION ALL
|
||||
(SELECT ppd.id, ppd.`Name`, ppd.`Status`, ppd.Org_Id, ppd.Org_Name
|
||||
FROM pms_power_distributionarea AS ppd)
|
||||
UNION ALL
|
||||
(SELECT ppc.id, ppc.`Name`, ppc.`Status`, ppc.Org_Id, ppc.Org_Name FROM pms_power_client AS ppc)
|
||||
UNION ALL
|
||||
(SELECT ppgu.id, ppgu.`Name`, ppgu.`Status`, ppgu.Org_Id, ppgu.Org_Name
|
||||
FROM pms_power_generation_user AS ppgu)
|
||||
) AS monitor
|
||||
INNER JOIN pms_distribution_monitor AS pdm ON monitor.id = pdm.Monitor_Id
|
||||
WHERE
|
||||
monitor.`Status` = 1
|
||||
AND pdm.`Status` = 1
|
||||
AND monitor.Org_Id IN
|
||||
<foreach collection="deptIdList" item="orgId" open="(" close=")" separator=",">
|
||||
#{orgId}
|
||||
</foreach>
|
||||
<if test="pwPmsMonitorParam.voltageLevels!=null and pwPmsMonitorParam.voltageLevels.size()!=0">
|
||||
AND pdm.Voltage_Level IN
|
||||
<foreach collection="pwPmsMonitorParam.voltageLevels" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="pwPmsMonitorParam.monitorSort!=null and pwPmsMonitorParam.monitorSort.size()!=0">
|
||||
AND pdm.Monitor_Sort IN
|
||||
<foreach collection="pwPmsMonitorParam.monitorSort" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="pwPmsMonitorParam.monitorState!=null and pwPmsMonitorParam.monitorState.size()!=0">
|
||||
AND pdm.Monitor_State IN
|
||||
<foreach collection="pwPmsMonitorParam.monitorState" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="pwPmsMonitorParam.ifPowerUser != null and pwPmsMonitorParam.ifPowerUser != ''">
|
||||
AND pdm.If_Power_User = #{pwPmsMonitorParam.ifPowerUser}
|
||||
</if>
|
||||
<if test="pwPmsMonitorParam.monitorName !=null and pwPmsMonitorParam.monitorName != ''">
|
||||
AND monitor.`Name` LIKE CONCAT('%',#{pwPmsMonitorParam.monitorName},'%')
|
||||
</if>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.device.pms.mapper.RMpMonitorAlarmCountMMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.njcn.device.pms.pojo.po.RMpMonitorAlarmCountM">
|
||||
<id property="orgNo" column="org_no" jdbcType="VARCHAR"/>
|
||||
<id property="dataDate" column="data_date" jdbcType="DATE"/>
|
||||
<id property="dataType" column="data_type" jdbcType="INTEGER"/>
|
||||
<result property="measurementPointId" column="measurement_point_id" jdbcType="VARCHAR"/>
|
||||
<result property="vdevAlarmInfo" column="vdev_alarm_info" jdbcType="INTEGER"/>
|
||||
<result property="vdevSeverity" column="vdev_severity" jdbcType="INTEGER"/>
|
||||
<result property="freqAlarmInfo" column="freq_alarm_info" jdbcType="INTEGER"/>
|
||||
<result property="freqSeverity" column="freq_severity" jdbcType="INTEGER"/>
|
||||
<result property="unbalanceAlarmInfo" column="unbalance_alarm_info" jdbcType="INTEGER"/>
|
||||
<result property="unbalanceSeverity" column="unbalance_severity" jdbcType="INTEGER"/>
|
||||
<result property="vAlarmInfo" column="v_alarm_info" jdbcType="INTEGER"/>
|
||||
<result property="vSeverity" column="v_severity" jdbcType="INTEGER"/>
|
||||
<result property="flickerAlarmInfo" column="flicker_alarm_info" jdbcType="INTEGER"/>
|
||||
<result property="flickerSeverity" column="flicker_severity" jdbcType="INTEGER"/>
|
||||
<result property="sagAlarmInfo" column="sag_alarm_info" jdbcType="INTEGER"/>
|
||||
<result property="sagSeverity" column="sag_severity" jdbcType="INTEGER"/>
|
||||
<result property="interruptAlarmInfo" column="interrupt_alarm_info" jdbcType="INTEGER"/>
|
||||
<result property="interruptSeverity" column="interrupt_severity" jdbcType="INTEGER"/>
|
||||
<result property="harmonicTypeGrade" column="harmonic_type_grade" jdbcType="INTEGER"/>
|
||||
<result property="eventTypeGrade" column="event_type_grade" jdbcType="INTEGER"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
org_no,data_date,data_type,
|
||||
measurement_point_id,vdev_alarm_info,vdev_severity,
|
||||
freq_alarm_info,freq_severity,unbalance_alarm_info,
|
||||
unbalance_severity,v_alarm_info,v_severity,
|
||||
flicker_alarm_info,flicker_severity,sag_alarm_info,
|
||||
sag_severity,interrupt_alarm_info,interrupt_severity,
|
||||
harmonic_type_grade,event_type_grade
|
||||
</sql>
|
||||
</mapper>
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.device.pms.mapper.RMpPwAlarmDetailDMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.njcn.device.pms.pojo.po.RMpPwAlarmDetailD">
|
||||
<id property="dataDate" column="data_date" jdbcType="DATE"/>
|
||||
<id property="measurementPointId" column="measurement_point_id" jdbcType="INTEGER"/>
|
||||
<result property="alarmType" column="alarm_type" jdbcType="VARCHAR"/>
|
||||
<result property="alarmInfo" column="alarm_info" jdbcType="VARCHAR"/>
|
||||
<result property="alarmLastTime" column="alarm_last_time" jdbcType="FLOAT"/>
|
||||
<result property="isCreateProblem" column="is_create_problem" jdbcType="TINYINT"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
data_date,measurement_point_id,alarm_type,
|
||||
alarm_info,alarm_last_time,is_create_problem
|
||||
</sql>
|
||||
</mapper>
|
||||
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.device.pms.mapper.RMpTargetWarnDMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.njcn.device.pms.pojo.po.RMpTargetWarnD">
|
||||
<id property="measurementPointId" column="measurement_point_id" jdbcType="VARCHAR"/>
|
||||
<id property="dataDate" column="data_date" jdbcType="DATE"/>
|
||||
<result property="isEffective" column="is_effective" jdbcType="TINYINT"/>
|
||||
<result property="isHarmonic" column="is_harmonic" jdbcType="TINYINT"/>
|
||||
<result property="isEvent" column="is_event" jdbcType="TINYINT"/>
|
||||
<result property="isWarn" column="is_warn" jdbcType="TINYINT"/>
|
||||
<result property="isVDevWarn" column="is_v_dev_warn" jdbcType="TINYINT"/>
|
||||
<result property="isFreqWarn" column="is_freq_warn" jdbcType="TINYINT"/>
|
||||
<result property="isUnbalanceWarn" column="is_unbalance_warn" jdbcType="TINYINT"/>
|
||||
<result property="isVWarn" column="is_v_warn" jdbcType="TINYINT"/>
|
||||
<result property="isFlickerWarn" column="is_flicker_warn" jdbcType="TINYINT"/>
|
||||
<result property="isSagWarn" column="is_sag_warn" jdbcType="TINYINT"/>
|
||||
<result property="isInterruptWarn" column="is_interrupt_warn" jdbcType="TINYINT"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
measurement_point_id,data_date,is_effective,
|
||||
is_harmonic,is_event,is_warn,
|
||||
is_v_dev_warn,is_freq_warn,is_unbalance_warn,
|
||||
is_v_warn,is_flicker_warn,is_sag_warn,
|
||||
is_interrupt_warn
|
||||
</sql>
|
||||
</mapper>
|
||||
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.device.pms.mapper.RStatAreaAlarmCountMMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.njcn.device.pms.pojo.po.RStatAreaAlarmCountM">
|
||||
<id property="orgNo" column="org_no" jdbcType="VARCHAR"/>
|
||||
<id property="dataDate" column="data_date" jdbcType="DATE"/>
|
||||
<id property="dataType" column="data_type" jdbcType="INTEGER"/>
|
||||
<result property="vdevAlarmInfo" column="vdev_alarm_info" jdbcType="INTEGER"/>
|
||||
<result property="vdevAlarmRatio" column="vdev_alarm_ratio" jdbcType="INTEGER"/>
|
||||
<result property="freqAlarmInfo" column="freq_alarm_info" jdbcType="INTEGER"/>
|
||||
<result property="freqAlarmRatio" column="freq_alarm_ratio" jdbcType="INTEGER"/>
|
||||
<result property="unbalanceAlarmInfo" column="unbalance_alarm_info" jdbcType="INTEGER"/>
|
||||
<result property="unbalanceAlarmRatio" column="unbalance_alarm_ratio" jdbcType="INTEGER"/>
|
||||
<result property="vAlarmInfo" column="v_alarm_info" jdbcType="INTEGER"/>
|
||||
<result property="vAlarmRatio" column="v_alarm_ratio" jdbcType="INTEGER"/>
|
||||
<result property="flickerAlarmInfo" column="flicker_alarm_info" jdbcType="INTEGER"/>
|
||||
<result property="flickerAlarmRatio" column="flicker_alarm_ratio" jdbcType="INTEGER"/>
|
||||
<result property="sagAlarmInfo" column="sag_alarm_info" jdbcType="INTEGER"/>
|
||||
<result property="sagAlarmAvgCount" column="sag_alarm_avg_count" jdbcType="INTEGER"/>
|
||||
<result property="interruptAlarmInfo" column="interrupt_alarm_info" jdbcType="INTEGER"/>
|
||||
<result property="interruptAlarmAvgCount" column="interrupt_alarm_avg_count" jdbcType="INTEGER"/>
|
||||
<result property="harmonicTypeGrade" column="harmonic_type_grade" jdbcType="INTEGER"/>
|
||||
<result property="eventTypeGrade" column="event_type_grade" jdbcType="INTEGER"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
org_no,data_date,data_type,
|
||||
vdev_alarm_info,vdev_alarm_ratio,freq_alarm_info,
|
||||
freq_alarm_ratio,unbalance_alarm_info,unbalance_alarm_ratio,
|
||||
v_alarm_info,v_alarm_ratio,flicker_alarm_info,
|
||||
flicker_alarm_ratio,sag_alarm_info,sag_alarm_avg_count,
|
||||
interrupt_alarm_info,interrupt_alarm_avg_count,harmonic_type_grade,
|
||||
event_type_grade
|
||||
</sql>
|
||||
</mapper>
|
||||
@@ -0,0 +1,50 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.device.pms.mapper.RStatBusbarHarmonicMapper">
|
||||
|
||||
<!--根据部门id查询监测点id-->
|
||||
<select id="getMonitorInfo" resultType="com.njcn.device.pms.pojo.po.PmsMonitorPO">
|
||||
SELECT
|
||||
id,
|
||||
`Name`,
|
||||
Org_Name AS orgName,
|
||||
Org_Id AS orgId,
|
||||
Operation_Name AS operationName,
|
||||
Operation_Id AS operationId,
|
||||
Powerr_Name AS powerrName,
|
||||
Powerr_Id AS powerrId,
|
||||
Generatrix_Name AS generatrixName,
|
||||
Generatrix_Id AS generatrixId
|
||||
FROM
|
||||
pms_monitor
|
||||
WHERE
|
||||
Org_Id IN ()
|
||||
<foreach collection="deptIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<!--查询变电站背景谐波年表-->
|
||||
<select id="getAnnualReportOfSubstationBusVoltageIndex"
|
||||
resultType="com.njcn.device.pms.pojo.vo.RStatBusbarHarmonicVO">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
r_stat_busbar_harmonic_y
|
||||
WHERE
|
||||
<if test="busbarIds != null and busbarIds.size() > 0">
|
||||
busbar_id IN
|
||||
<foreach collection="generatrixIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="startTime != null and startTime != ''">
|
||||
AND DATE_FORMAT( data_date,'%Y-%m-%d') >= DATE_FORMAT(#{startTime},'%Y-%m-%d')
|
||||
</if>
|
||||
<if test="endTime != null and endTime != ''">
|
||||
AND DATE_FORMAT( data_date,'%Y-%m-%d') <= DATE_FORMAT(#{endTime},'%Y-%m-%d')
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user