主配网监测点统计数据算法
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
package com.njcn.harmonic.pojo.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 类的介绍:上送国网-接收电能质量主配网监测点统计数据接口list实体
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2023/12/7 8:52
|
||||
*/
|
||||
@Data
|
||||
public class MonitorStatisticalDTO {
|
||||
|
||||
private String id;
|
||||
|
||||
private String provinceId;
|
||||
|
||||
private String provinceName;
|
||||
|
||||
private String cityId;
|
||||
|
||||
private String cityName;
|
||||
|
||||
private String countyId;
|
||||
|
||||
private String countyName;
|
||||
|
||||
private Integer runTerminalNum;
|
||||
|
||||
private Integer onlineMonitorNum;
|
||||
|
||||
private Integer runMonitorNum;
|
||||
|
||||
private BigDecimal onlineMonitorRate;
|
||||
|
||||
private Integer expectCollectNum;
|
||||
|
||||
private Integer actualCollectNum;
|
||||
|
||||
private BigDecimal dataFullRate;
|
||||
|
||||
private String stationType;
|
||||
|
||||
private Integer stationMonitorNum;
|
||||
|
||||
private String statisticalDate;
|
||||
|
||||
private String statisticalLevel;
|
||||
|
||||
private String statisticalType;
|
||||
|
||||
private String distributionFlag;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
package com.njcn.harmonic.pojo.po.upload;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.github.jeffreyning.mybatisplus.anno.MppMultiId;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 主配网监测点统计数据-日表
|
||||
* </p>
|
||||
*
|
||||
* @author xuyang
|
||||
* @since 2023-12-07
|
||||
*/
|
||||
@Data
|
||||
@TableName("r_upload_point_statistical_data_d")
|
||||
public class RUploadPointStatisticalDataD {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* uuid
|
||||
*/
|
||||
private String dataId;
|
||||
|
||||
/**
|
||||
* 省级单位id
|
||||
*/
|
||||
@MppMultiId
|
||||
private String provinceId;
|
||||
|
||||
/**
|
||||
* 省级单位名称
|
||||
*/
|
||||
private String provinceName;
|
||||
|
||||
/**
|
||||
* 市级单位id
|
||||
*/
|
||||
@MppMultiId
|
||||
private String cityId;
|
||||
|
||||
/**
|
||||
* 市级单位名称
|
||||
*/
|
||||
private String cityName;
|
||||
|
||||
/**
|
||||
* 县级单位id
|
||||
*/
|
||||
@MppMultiId
|
||||
private String countyId;
|
||||
|
||||
/**
|
||||
* 县级单位名称
|
||||
*/
|
||||
private String countyName;
|
||||
|
||||
/**
|
||||
* 在运监测终端数量
|
||||
*/
|
||||
private Integer runTerminalNum;
|
||||
|
||||
/**
|
||||
* 在线监测点个数
|
||||
*/
|
||||
private Integer onlineMonitorNum;
|
||||
|
||||
/**
|
||||
* 在运监测点个数
|
||||
*/
|
||||
private Integer runMonitorNum;
|
||||
|
||||
/**
|
||||
* 监测点在线率
|
||||
*/
|
||||
private Double onlineMonitorRate;
|
||||
|
||||
/**
|
||||
* 数据应收数
|
||||
*/
|
||||
private Integer expectCollectNum;
|
||||
|
||||
/**
|
||||
* 数据实收数
|
||||
*/
|
||||
private Integer actualCollectNum;
|
||||
|
||||
/**
|
||||
* 完整率
|
||||
*/
|
||||
private Double dataFullRate;
|
||||
|
||||
/**
|
||||
* 所属站别
|
||||
*/
|
||||
private String stationType;
|
||||
|
||||
/**
|
||||
* 所属站别下的监测点个数
|
||||
*/
|
||||
private Integer stationMonitorNum;
|
||||
|
||||
/**
|
||||
* 统计日期
|
||||
*/
|
||||
@MppMultiId
|
||||
private String statisticalDate;
|
||||
|
||||
/**
|
||||
* 统计层级
|
||||
*/
|
||||
@MppMultiId
|
||||
private String statisticalLevel;
|
||||
|
||||
/**
|
||||
* 统计类型
|
||||
*/
|
||||
@MppMultiId
|
||||
private String statisticalType;
|
||||
|
||||
/**
|
||||
* 主配网标识
|
||||
*/
|
||||
@MppMultiId
|
||||
private String distributionFlag;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.njcn.harmonic.controller.upload;
|
||||
|
||||
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.common.utils.LogUtil;
|
||||
import com.njcn.harmonic.service.upload.PointStatisticalDataService;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
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;
|
||||
|
||||
/**
|
||||
* 类的介绍:国网指标数据上送
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2023/12/7 9:05
|
||||
*/
|
||||
@Validated
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/upload")
|
||||
@Api(tags = "国网指标数据上送")
|
||||
@AllArgsConstructor
|
||||
public class PointStatisticalDataController extends BaseController {
|
||||
|
||||
private final PointStatisticalDataService pointStatisticalDataService;
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/statisticalCreate")
|
||||
@ApiOperation("主配网监测点统计数据(2.4.1.17)")
|
||||
@ApiImplicitParam(name = "param", value = "实体参数", required = true)
|
||||
public HttpResult<Object> statisticalCreate(@RequestBody Object param) {
|
||||
String methodDescribe = getMethodDescribe("statisticalCreate");
|
||||
LogUtil.njcnDebug(log, "{},实体参数:{}", methodDescribe, param);
|
||||
pointStatisticalDataService.getPointStatisticalData(param);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.njcn.harmonic.service.upload;
|
||||
|
||||
/**
|
||||
* @author xuyang
|
||||
*/
|
||||
public interface PointStatisticalDataService {
|
||||
|
||||
/**
|
||||
* 2.4.1.17接收电能质量主配网监测点统计数据接口
|
||||
* @param param
|
||||
*/
|
||||
void getPointStatisticalData(Object param);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.njcn.harmonic.service.upload.impl;
|
||||
|
||||
import com.njcn.harmonic.service.upload.PointStatisticalDataService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author xuyang
|
||||
*/
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
@Slf4j
|
||||
public class PointStatisticalDataServiceImpl implements PointStatisticalDataService {
|
||||
|
||||
@Override
|
||||
public void getPointStatisticalData(Object param) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user