1.调整污染值监测点逻辑

2.解决devices模块Swagger页面无法展示问题
This commit is contained in:
wr
2026-07-16 17:19:49 +08:00
parent e313894417
commit 16c95aa2f6
6 changed files with 61 additions and 43 deletions

View File

@@ -104,4 +104,9 @@ public class PollutionLineInfoDTO {
* 实际安装位置 * 实际安装位置
*/ */
private String actualArea; private String actualArea;
/**
* 监测点运行状态
*/
private String runFlag;
} }

View File

@@ -97,9 +97,9 @@ public class TerminalAlarmController extends BaseController {
@PostMapping("/terminalCheckPage") @PostMapping("/terminalCheckPage")
@OperateInfo(info = LogEnum.BUSINESS_COMMON) @OperateInfo(info = LogEnum.BUSINESS_COMMON)
@ApiOperation("终端检测告警") @ApiOperation("终端检测告警")
@ApiImplicitParam(name = "alarmParam", value = "告警类型") @ApiImplicitParam(name = "terminalCheckParam", value = "告警类型")
public HttpResult<Page<TerminalCheckVO>> terminalCheckPage(@RequestBody @Validated TerminalCheckParam terminalCheckParam){ public HttpResult<Page<TerminalCheckVO>> terminalCheckPage(@RequestBody @Validated TerminalCheckParam terminalCheckParam){
String methodDescribe = getMethodDescribe("alarmInfoList"); String methodDescribe = getMethodDescribe("terminalCheckPage");
Page<TerminalCheckVO> res = terminalAlarmService.terminalCheckPage(terminalCheckParam); Page<TerminalCheckVO> res = terminalAlarmService.terminalCheckPage(terminalCheckParam);
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, res, methodDescribe); return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, res, methodDescribe);
} }

View File

@@ -19,7 +19,8 @@
<select id="getRunManageCommList" resultType="com.njcn.device.pq.pojo.vo.RunManageVO"> <select id="getRunManageCommList" resultType="com.njcn.device.pq.pojo.vo.RunManageVO">
SELECT SELECT
linedetail.Num AS id, linedetail.id AS id,
linedetail.Num AS runNo,
line.NAME AS lineName, line.NAME AS lineName,
area.NAME AS areaName, area.NAME AS areaName,
gd.NAME AS gdName, gd.NAME AS gdName,
@@ -144,7 +145,8 @@
<select id="getRunManageList" resultType="com.njcn.device.pq.pojo.vo.RunManageVO"> <select id="getRunManageList" resultType="com.njcn.device.pq.pojo.vo.RunManageVO">
SELECT SELECT
linedetail.Num AS id, linedetail.id AS id,
linedetail.Num AS runNo,
line.NAME AS lineName, line.NAME AS lineName,
area.NAME AS areaName, area.NAME AS areaName,
gd.NAME AS gdName, gd.NAME AS gdName,
@@ -514,7 +516,14 @@
pv.scale lineVoltage, pv.scale lineVoltage,
pqsub.scale subVoltage, pqsub.scale subVoltage,
lineDetail.monitor_id monitorId, lineDetail.monitor_id monitorId,
lineDetail.Actual_Area actualArea lineDetail.Actual_Area actualArea,
CASE lineDetail.Run_Flag
WHEN 0 THEN'投运'
WHEN 1 THEN'检修'
WHEN 2 THEN'停运'
WHEN 3 THEN'调试'
WHEN 4 THEN'退运'
END AS runFlag
FROM FROM
pq_line line, pq_line line,
pq_line_detail lineDetail, pq_line_detail lineDetail,

View File

@@ -152,9 +152,9 @@ public class UserLedgerController extends BaseController {
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.UPLOAD) @OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.UPLOAD)
@PostMapping("/userCheckUpload") @PostMapping("/userCheckUpload")
@ApiOperation("周期检测") @ApiOperation("周期检测")
@ApiImplicitParam(name = "userReportParam", value = "实体参数", required = true) @ApiImplicitParam(name = "terminalCheckParam", value = "实体参数", required = true)
public HttpResult<Boolean> userCheckUpload(@RequestBody @Validated TerminalCheckParam terminalCheckParam) { public HttpResult<Boolean> userCheckUpload(@RequestBody @Validated TerminalCheckParam terminalCheckParam) {
String methodDescribe = getMethodDescribe("addUserReport"); String methodDescribe = getMethodDescribe("userCheckUpload");
Boolean f = userReportPOService.userCheckUpload(terminalCheckParam); Boolean f = userReportPOService.userCheckUpload(terminalCheckParam);
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, f, methodDescribe); return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, f, methodDescribe);
} }

View File

@@ -70,8 +70,8 @@ public class LinePollution implements Serializable {
/** /**
* 位置,电网侧&非电网侧 * 位置,电网侧&非电网侧
*/ */
@Excel(name = "监测位置", width = 30) @Excel(name = "用户性质", width = 30)
@ApiModelProperty("监测位置") @ApiModelProperty("用户性质")
private String powerFlag; private String powerFlag;
/** /**
@@ -84,7 +84,7 @@ public class LinePollution implements Serializable {
/** /**
* 新增 * 新增
* 监测点电压等级 * 变电站电压等级
*/ */
@Excel(name = "变电站电压等级", width = 30) @Excel(name = "变电站电压等级", width = 30)
@ApiModelProperty("变电站电压等级") @ApiModelProperty("变电站电压等级")
@@ -112,7 +112,7 @@ public class LinePollution implements Serializable {
private Integer interval; private Integer interval;
/** /**
* 新增 *
* 在线率 * 在线率
*/ */
@Excel(name = "在线率(%)",type = 10, width = 30) @Excel(name = "在线率(%)",type = 10, width = 30)
@@ -120,7 +120,7 @@ public class LinePollution implements Serializable {
private Float onlineRate; private Float onlineRate;
/** /**
* 新增 *
* 完整性 * 完整性
*/ */
@Excel(name = "完整率(%)",type = 10, width = 30) @Excel(name = "完整率(%)",type = 10, width = 30)
@@ -134,42 +134,47 @@ public class LinePollution implements Serializable {
@ApiModelProperty("谐波污染值") @ApiModelProperty("谐波污染值")
private Double HarmonicValue; private Double HarmonicValue;
/** // /**
* 暂升次数 1.1~1.8 // * 暂升次数 1.1~1.8
* 10ms ~ 1min // * 10ms ~ 1min
*/ // */
@Excel(name = "暂升次数(次)",type = 10, width = 20) // @Excel(name = "暂升次数(次)",type = 10, width = 20)
@ApiModelProperty("暂升次数(次)") // @ApiModelProperty("暂升次数(次)")
private Integer upCounts; // private Integer upCounts;
//
// /**
// * 暂降次数 0.1~0.9
// * 10ms ~ 1min
// */
// @Excel(name = "电压暂降(次)",type = 10, width = 20)
// @ApiModelProperty("电压暂降(次)")
// private Integer downCounts;
//
// /**
// * 短时中断 0~0.1
// * 10ms ~ 1min
// */
// @Excel(name = "短时中断(次)",type = 10, width = 20)
// @ApiModelProperty("短时中断(次")
// private Integer breakCounts;
/** // @Excel(name = "是否关联敏感用户", width = 30, replace = "/_null")
* 暂降次数 0.1~0.9 // @ApiModelProperty("是否关联敏感用户")
* 10ms ~ 1min // private String isMg;
*/ //
@Excel(name = "电压暂降(次)",type = 10, width = 20) // @Excel(name = "敏感及重要用户", width = 30,replace = "/_null")
@ApiModelProperty("电压暂降(次)") // @ApiModelProperty("敏感及重要用户")
private Integer downCounts; // private String importUser;
/**
* 短时中断 0~0.1
* 10ms ~ 1min
*/
@Excel(name = "短时中断(次)",type = 10, width = 20)
@ApiModelProperty("短时中断(次")
private Integer breakCounts;
@Excel(name = "是否关联敏感用户", width = 30, replace = "/_null")
@ApiModelProperty("是否关联敏感用户")
private String isMg;
@Excel(name = "敏感及重要用户", width = 30,replace = "/_null")
@ApiModelProperty("敏感及重要用户")
private String importUser;
@Excel(name = "一类监测点", width = 30,replace = "/_null") @Excel(name = "一类监测点", width = 30,replace = "/_null")
@ApiModelProperty("一类监测点") @ApiModelProperty("一类监测点")
private String monitorId; private String monitorId;
@Excel(name = "监测点运行状态", width = 30,replace = "/_null")
@ApiModelProperty("监测点运行状态")
private String runFlag;
// /** // /**
// * 备注 // * 备注
// */ // */

View File

@@ -1011,7 +1011,6 @@ public class PollutionSubstationServiceImpl extends ServiceImpl<RStatPollutionSu
@Override @Override
public List<LinePollution> downPollutionLineCalc(StatSubstationBizBaseParam param) { public List<LinePollution> downPollutionLineCalc(StatSubstationBizBaseParam param) {
DeviceInfoParam deviceInfoParam=new DeviceInfoParam(); DeviceInfoParam deviceInfoParam=new DeviceInfoParam();
deviceInfoParam.setLineRunFlag(0);
deviceInfoParam.setDeptIndex(param.getId()); deviceInfoParam.setDeptIndex(param.getId());
deviceInfoParam.setStatisticalType(new SimpleDTO()); deviceInfoParam.setStatisticalType(new SimpleDTO());
List<GeneralDeviceDTO> data1 = generalDeviceInfoClient.getPracticalRunDeviceInfo(deviceInfoParam).getData(); List<GeneralDeviceDTO> data1 = generalDeviceInfoClient.getPracticalRunDeviceInfo(deviceInfoParam).getData();