预处理模块调整

This commit is contained in:
2023-03-16 09:24:36 +08:00
parent 61216a0b37
commit 2daa140eb6
265 changed files with 2 additions and 142 deletions

View File

@@ -0,0 +1,26 @@
package com.njcn.prepare.harmonic;
import com.github.jeffreyning.mybatisplus.conf.EnableMPP;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
/**
* @author hongawen
* @version 1.0.0
* @date 2021年12月14日 20:33
*/
@Slf4j
@MapperScan("com.njcn.**.mapper")
@EnableFeignClients(basePackages = "com.njcn")
@SpringBootApplication(scanBasePackages = "com.njcn")
@EnableMPP
public class PrepareHarmonicApplication {
public static void main(String[] args) {
SpringApplication.run(PrepareHarmonicApplication.class,args);
}
}

View File

@@ -0,0 +1,46 @@
package com.njcn.prepare.harmonic.constant;
/**
* @author qijian
*/
public interface AlgorithmParam {
/**
* 暂态/稳态
*/
Integer TEMPORARY_STATE = 0;
Integer STEADY_STATE = 1;
/**
* 主网/配网
*/
Integer MAIN_NET = 1;
Integer DIS_NET = 2;
/**
* 数据来源Oracle/InfluxDB
*/
Integer ORACLE_DATA = 0;
Integer INFLUX_DATA = 1;
/**
* 监测点数据完整率 统计间隔
*/
Integer TIME_INTERVAL = 15;
/*
* 监测点暂态指标超标事件类型
* 0扰动1暂降2暂升3中断4其他5录波
*/
Integer DISTURBANCE= 0;
Integer SAG= 1;
Integer RISE= 2;
Integer INTERRUPT= 3;
Integer other= 4;
Integer RECORDING_WAVE= 5;
}

View File

@@ -0,0 +1,85 @@
/*
package com.njcn.prepare.harmonic.constant;
import com.njcn.redis.utils.RedisUtil;
import com.njcn.system.api.DicDataFeignClient;
import com.njcn.system.enums.DicDataTypeEnum;
import com.njcn.system.pojo.po.DictData;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import java.util.List;
import java.util.Set;
*/
/**
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/11/25 16:21【需求编号】
*
* @author clam
* @version V1.0.0
*//*
@Component
@Slf4j
public class DictCache {
public static final String NAME_KEY = "DicCache:";
public static final String SPLIT_SIGN = "-";
private @Autowired
DicDataFeignClient dicDataFeignClient;
private @Autowired
RedisUtil redisUtil;
private @Autowired
RedisTemplate<String, Object> redisTemplate;
@PostConstruct
public void init(){
log.info("系统启动中。。。加载dictDataMap");
*/
/*todo 后续将字典表全部加载*//*
List<DictData> data = dicDataFeignClient.getDicDataByTypeCode (DicDataTypeEnum.LINE_STATE.getCode ( )).getData ( );
List<DictData> data2 = dicDataFeignClient.getDicDataByTypeCode (DicDataTypeEnum.DEV_STATUS.getCode ( )).getData ( );
List<DictData> data3 = dicDataFeignClient.getDicDataByTypeCode (DicDataTypeEnum.LINE_SORT.getCode ( )).getData ( );
*/
/*
* key:NAME_KEY前缀清缓存使用+SPLIT_SIGN拼接符号+DicDataTypeEnum+SPLIT_SIGN拼接符号+Code
* Value:id
* *//*
data.forEach (temp->{
redisUtil.saveByKey (NAME_KEY+SPLIT_SIGN+DicDataTypeEnum.LINE_STATE.getCode ( )+SPLIT_SIGN+temp.getCode (),temp.getId ());
});
data2.forEach (temp->{
redisUtil.saveByKey (NAME_KEY+SPLIT_SIGN+DicDataTypeEnum.DEV_STATUS.getCode ( )+SPLIT_SIGN+temp.getCode (),temp.getId ());
});
data3.forEach (temp->{
redisUtil.saveByKey (NAME_KEY+SPLIT_SIGN+DicDataTypeEnum.LINE_SORT.getCode ( )+SPLIT_SIGN+temp.getCode (),temp.getId ());
});
}
@PreDestroy
public void destroy(){
log.info("系统运行结束");
Set<String> keys = redisTemplate.keys(NAME_KEY + "*");
redisTemplate.delete(keys);
}
}
*/

View File

@@ -0,0 +1,29 @@
package com.njcn.prepare.harmonic.constant;
import lombok.Getter;
/**
* 异常处理类
* @author qijian
* @version 1.0.0
* @date 2022年11月11日 09:56
*/
@Getter
public enum PqsPrepareExceptionEnum {
/**
* 过程监督异常响应码的范围:
* A00550 ~ A00649
*/
REDIS_NULL_EXCEPTION("A0001","redis缓存异常重新加载redis"),
;
private final String code;
private final String message;
PqsPrepareExceptionEnum(String code, String message) {
this.code = code;
this.message = message;
}
}

View File

@@ -0,0 +1,71 @@
package com.njcn.prepare.harmonic.controller;
import com.njcn.harmonic.pojo.po.ExcelRptTemp;
import com.njcn.influxdb.utils.InfluxDbUtils;
import com.njcn.prepare.harmonic.mapper.mysql.line.ExcelRptTempMapper;
import com.njcn.prepare.harmonic.pojo.influxdb.po.DataVPO;
import com.njcn.prepare.harmonic.service.mysql.Impl.line.LimitRateService;
import org.influxdb.dto.QueryResult;
import org.influxdb.impl.InfluxDBResultMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.context.web.WebAppConfiguration;
import java.text.ParseException;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/10/18 20:15【需求编号】
*
* @author clam
* @version V1.0.0
*/
@RunWith(SpringRunner.class)
@WebAppConfiguration
@SpringBootTest
public class LimitRateServiceTest {
private @Autowired
LimitRateService limitRateService;
private @Autowired
InfluxDbUtils influxDbUtils;
private @Autowired
ExcelRptTempMapper excelRptTempMapper;
@Test
public void test() throws ParseException {
System.out.println("spring test start");
limitRateService.limitRateJobHandler (Stream.of ("8696be1d170e05b7d848accc059f4558" ).collect(Collectors.toList()), "2022-10-15 00:00:00", "2022-10-15 23:59:59");
}
@Test
public void test1(){
System.out.println("spring test start");
String sql ="SELECT * FROM data_v where time >= '2022-10-15 00:00:00' and time <= '2022-10-15 23:59:59' ";
influxDbUtils.setDbName ("pqsbase_test");
QueryResult sqlResult = influxDbUtils.query (sql);
InfluxDBResultMapper resultMapper = new InfluxDBResultMapper ( );
List<DataVPO> list = resultMapper.toPOJO (sqlResult, DataVPO.class);
System.out.println ("spring test end" );
}
@Test
public void test3(){
System.out.println("spring test start");
ExcelRptTemp excelRptTemp = excelRptTempMapper.selectById ("8c7f0cb540904ddeb8fbedef288579d7");
System.out.println (excelRptTemp.getId () );
// limitRateService.limitRateJobHandler (Stream.of ("8696be1d170e05b7d848accc059f4558" ).collect(Collectors.toList()), "2022-10-15 00:00:00", "2022-10-15 23:59:59");
}
}

View File

@@ -0,0 +1,75 @@
package com.njcn.prepare.harmonic.controller.area;
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.prepare.harmonic.pojo.param.PrimaryGridParam;
import com.njcn.prepare.harmonic.service.mysql.area.AreaCountService;
import com.njcn.user.api.DeptFeignClient;
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.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.CollectionUtils;
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.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
/**
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/12/13 11:14【需求编号】
*
* @author clam
* @version V1.0.0
*/
@Slf4j
@Api(tags = "区域统计(r_stat_org_d表数据需要先生成r_stat_abnormal_dr_mp_integrity_d表)")
@RestController
@RequestMapping("AreaCount")
@RequiredArgsConstructor
public class AreaCountController extends BaseController {
private @Autowired
DeptFeignClient deptFeignClient;
private @Autowired
AreaCountService areaCountService;
@ApiOperation("区域统计有效接入监测点个数计算(r_stat_org_d表数据)")
@ApiImplicitParam(value = "primaryGridParam",name = "primaryGridParam",required = true)
@PostMapping("areaCountHanlder")
@OperateInfo(info = LogEnum.BUSINESS_MEDIUM)
public HttpResult<Boolean> areaCountHanlder(@RequestBody PrimaryGridParam primaryGridParam ){
log.info(LocalDateTime.now()+"areaCountHanlder开始执行");
String methodDescribe = getMethodDescribe("areaCountHanlder");
Boolean result = true;
List<String> orgIdList = new ArrayList<> ();
if(CollectionUtils.isEmpty (primaryGridParam.getOrgIdList ())){
List<PvTerminalTreeVO> dept = deptFeignClient.allDeptList().getData();
orgIdList = dept.stream ( ).map (PvTerminalTreeVO::getId).collect (Collectors.toList ( ));
}else{
orgIdList = primaryGridParam.getOrgIdList ();
}
primaryGridParam.setOrgIdList (orgIdList);
areaCountService.areaCountHanlder (primaryGridParam);
if (result){
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, true, methodDescribe);
} else {
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, false, methodDescribe);
}
}
}

View File

@@ -0,0 +1,75 @@
package com.njcn.prepare.harmonic.controller.area;
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.prepare.harmonic.pojo.param.PrimaryGridParam;
import com.njcn.prepare.harmonic.service.mysql.area.EffectiveMinuteCountService;
import com.njcn.user.api.DeptFeignClient;
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.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.util.CollectionUtils;
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.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
/**
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2023/2/23 14:18【需求编号】
*
* @author clam
* @version V1.0.0
*/
@Slf4j
@Api(tags = "主网有效监测时长)")
@RestController
@RequestMapping("EffectiveCount")
@RequiredArgsConstructor
public class EffectiveMinuteCountController extends BaseController {
private final
DeptFeignClient deptFeignClient;
private final
EffectiveMinuteCountService effectiveMinuteCount;
@ApiOperation("主网有效监测时长")
@ApiImplicitParam(value = "primaryGridParam",name = "primaryGridParam",required = true)
@PostMapping("effectiveMinuteCount")
@OperateInfo(info = LogEnum.BUSINESS_MEDIUM)
public HttpResult<Boolean> effectiveMinuteCount(@RequestBody PrimaryGridParam primaryGridParam ){
log.info(LocalDateTime.now()+"effectiveMinuteCount开始执行");
String methodDescribe = getMethodDescribe("effectiveMinuteCount");
Boolean result = true;
List<String> orgIdList = new ArrayList<> ();
if(CollectionUtils.isEmpty (primaryGridParam.getOrgIdList ())){
List<PvTerminalTreeVO> dept = deptFeignClient.allDeptList().getData();
orgIdList = dept.stream ( ).map (PvTerminalTreeVO::getId).collect (Collectors.toList ( ));
}else{
orgIdList = primaryGridParam.getOrgIdList ();
}
primaryGridParam.setOrgIdList (orgIdList);
effectiveMinuteCount.effectiveMinuteCount (primaryGridParam);
if (result){
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, true, methodDescribe);
} else {
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, false, methodDescribe);
}
}
}

View File

@@ -0,0 +1,115 @@
package com.njcn.prepare.harmonic.controller.area;
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.api.PmsTerminalClient;
import com.njcn.device.pms.pojo.param.PmsBaseParam;
import com.njcn.device.pms.pojo.po.PmsTerminal;
import com.njcn.prepare.harmonic.pojo.param.PrimaryGridDataIntegrityParam;
import com.njcn.prepare.harmonic.pojo.param.PrimaryGridParam;
import com.njcn.prepare.harmonic.service.mysql.area.PrimaryGridDataService;
import com.njcn.user.api.DeptFeignClient;
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.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.CollectionUtils;
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.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
/**
* Description:r_operating_index_d
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/11/24 14:31【需求编号】
*
* @author clam
* @version V1.0.0
*/
@Slf4j
@Api(tags = "主网单位数据统计(r_operating_index_d表数据需要先生成r_stat_abnormal_dr_mp_integrity_d表)")
@RestController
@RequestMapping("primaryGridData")
@RequiredArgsConstructor
public class PrimaryGridDataController extends BaseController {
private @Autowired
PrimaryGridDataService primaryGridDataService;
private @Autowired
DeptFeignClient deptFeignClient;
private @Autowired
PmsTerminalClient pmsTerminalClient;
@ApiOperation("主网单位数据同步(r_operating_index_d表数据)")
@ApiImplicitParam(value = "primaryGridParam",name = "primaryGridParam",required = true)
@PostMapping("primaryGridDataHanlder")
@OperateInfo(info = LogEnum.BUSINESS_MEDIUM)
public HttpResult<Boolean> primaryGridDataHanlder(@RequestBody PrimaryGridParam primaryGridParam ){
log.info(LocalDateTime.now()+"primaryGridDataHanlder开始执行");
String methodDescribe = getMethodDescribe("primaryGridDataHanlder");
Boolean result = true;
List<String> orgIdList = new ArrayList<> ();
if(CollectionUtils.isEmpty (primaryGridParam.getOrgIdList ())){
/*todo 不知道是否需要补招*/
List<PvTerminalTreeVO> dept = deptFeignClient.allDeptList().getData();
orgIdList = dept.stream ( ).map (PvTerminalTreeVO::getId).collect (Collectors.toList ( ));
}else{
orgIdList = primaryGridParam.getOrgIdList ();
}
primaryGridParam.setOrgIdList (orgIdList);
primaryGridDataService.primaryGridDataHanlder (primaryGridParam);
if (result){
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, true, methodDescribe);
} else {
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, false, methodDescribe);
}
}
@ApiOperation("主网终端数据完整率月统计")
@ApiImplicitParam(value = "primaryGridDataIntegrityParam",name = "primaryGridDataIntegrityParam",required = true)
@PostMapping("primaryGridDataIntegrityHanlder")
@OperateInfo(info = LogEnum.BUSINESS_MEDIUM)
public HttpResult<Boolean> primaryGridDataIntegrityHanlder(@RequestBody PrimaryGridDataIntegrityParam primaryGridDataIntegrityParam ){
log.info(LocalDateTime.now()+"primaryGridDataIntegrityHanlder开始执行");
String methodDescribe = getMethodDescribe("primaryGridDataIntegrityHanlder");
Boolean result = true;
List<String> orgIdList = new ArrayList<> ();
if(CollectionUtils.isEmpty (primaryGridDataIntegrityParam.getDeviceId ())){
/*todo 不知道是否需要补招*/
List<PmsTerminal> data = pmsTerminalClient.getTerminalSelectList (new PmsBaseParam()).getData ( );
orgIdList = data.stream ().map (PmsTerminal::getId).collect(Collectors.toList());
}else{
orgIdList = primaryGridDataIntegrityParam.getDeviceId ();
}
primaryGridDataIntegrityParam.setDeviceId (orgIdList);
primaryGridDataService.primaryGridDataIntegrityHanlder (primaryGridDataIntegrityParam);
if (result){
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, true, methodDescribe);
} else {
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, false, methodDescribe);
}
}
}

View File

@@ -0,0 +1,68 @@
package com.njcn.prepare.harmonic.controller.area;
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.prepare.harmonic.pojo.param.PrimaryGridParam;
import com.njcn.prepare.harmonic.service.mysql.area.RStatAbnormalDPOService;
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.beans.factory.annotation.Autowired;
import org.springframework.util.CollectionUtils;
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.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
/**
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/11/28 19:27【需求编号】
*
* @author clam
* @version V1.0.0
*/
@Slf4j
@Api(tags = "主网单位数据统计(r_stat_abnormal_d表数据)")
@RestController
@RequestMapping("AbnormalData")
@RequiredArgsConstructor
public class RStatAbnormalDDataHanlderController extends BaseController {
private @Autowired
RStatAbnormalDPOService rStatAbnormalDPOService;
@ApiOperation("主网单位数据同步(r_stat_abnormal_d表数据)")
@ApiImplicitParam(value = "primaryGridParam",name = "primaryGridParam",required = true)
@PostMapping("(rStatAbnormalDDataHanlder")
@OperateInfo(info = LogEnum.BUSINESS_MEDIUM)
public HttpResult<Boolean> rStatAbnormalDDataHanlder(@RequestBody PrimaryGridParam primaryGridParam ){
log.info(LocalDateTime.now()+"rStatAbnormalDDataHanlder开始执行");
String methodDescribe = getMethodDescribe("rStatAbnormalDDataHanlder");
Boolean result = true;
List<String> orgIdList = new ArrayList<> ();
if(CollectionUtils.isEmpty (primaryGridParam.getOrgIdList ())){
/*todo 不知道是否需要补招*/
//orgIdList = lineFeignClient.getLineList ( ).getData ( );
}else{
orgIdList = primaryGridParam.getOrgIdList ();
}
primaryGridParam.setOrgIdList (orgIdList);
rStatAbnormalDPOService.rStatAbnormalDDataHanlder(primaryGridParam);
if (result){
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, true, methodDescribe);
} else {
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, false, methodDescribe);
}
}
}

View File

@@ -0,0 +1,79 @@
package com.njcn.prepare.harmonic.controller.area;
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.api.PmsPowerDistributionareaClient;
import com.njcn.device.pms.pojo.param.PowerDistributionareaParam;
import com.njcn.device.pms.pojo.po.PowerDistributionarea;
import com.njcn.prepare.harmonic.pojo.param.LineParam;
import com.njcn.prepare.harmonic.service.influxdb.RStatWorkOrderCreateService;
import com.njcn.redis.utils.RedisUtil;
import com.njcn.user.api.DeptFeignClient;
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.util.CollectionUtils;
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.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
/**
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2023/2/9 9:16【需求编号】
*
* @author clam
* @version V1.0.0
*/
@Slf4j
@Api(tags = "工单生成批处理逻辑")
@RestController
@RequestMapping("RStatWorkOrderCreate")
@RequiredArgsConstructor
public class RStatWorkOrderCreateController extends BaseController {
private final PmsPowerDistributionareaClient pmsPowerDistributionareaClient;
private final RStatWorkOrderCreateService rStatWorkOrderCreateService;
private final DeptFeignClient deptFeignClient;
private final RedisUtil redisUtil;
@ApiOperation("工单生成批处理逻辑(台区测点)")
@ApiImplicitParam(value = "lineParam",name = "lineParam",required = true)
@PostMapping("workOrderCreate")
@OperateInfo(info = LogEnum.BUSINESS_MEDIUM)
public HttpResult<Boolean> workOrderCreate(@RequestBody LineParam lineParam ){
log.info(LocalDateTime.now()+"workOrderCreate开始执行");
String methodDescribe = getMethodDescribe("workOrderCreate");
Boolean result = true;
List<String> lineIds= new ArrayList<> ();
if(CollectionUtils.isEmpty (lineParam.getLineIds ())){
PowerDistributionareaParam powerDistributionareaParam = new PowerDistributionareaParam();
List<PowerDistributionarea> data = pmsPowerDistributionareaClient.getPowerDistributionList (powerDistributionareaParam).getData ( );
lineIds = data.stream ().map (PowerDistributionarea::getId).collect(Collectors.toList());
}else{
lineIds = lineParam.getLineIds ( );
}
lineParam.setLineIds (lineIds);
rStatWorkOrderCreateService.workOrderCreate(lineParam);
if (result){
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, true, methodDescribe);
} else {
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, false, methodDescribe);
}
}
}

View File

@@ -0,0 +1,51 @@
package com.njcn.prepare.harmonic.controller.line;
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.prepare.harmonic.pojo.param.LineParam;
import com.njcn.prepare.harmonic.service.mysql.line.AlarmDetailService;
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 qijian
* @date 2022/12/28
* 监测点指标告警明细
*/
@Validated
@Slf4j
@RestController
@RequestMapping("/alarmDetail")
@Api(tags = "监测点指标告警明细")
@AllArgsConstructor
public class AlarmDetailController extends BaseController {
private final AlarmDetailService alarmDetailService;
@OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.ADD)
@PostMapping("/alarmDetailAlarm")
@ApiOperation("监测点指标告警日统计")
@ApiImplicitParam(name = "lineParam", value = "算法通用查询参数", required = true)
public HttpResult<Boolean> alarmDetailAlarm(@RequestBody @Validated LineParam lineParam) {
String methodDescribe = getMethodDescribe("alarmDetailAlarm");
boolean res = alarmDetailService.alarmDetailAlarm(lineParam);
if(res){
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
}else {
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
}
}
}

View File

@@ -0,0 +1,53 @@
package com.njcn.prepare.harmonic.controller.line;
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.pq.enums.DeviceResponseEnum;
import com.njcn.prepare.harmonic.pojo.param.LineParam;
import com.njcn.prepare.harmonic.service.mysql.line.DataExceptionService;
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 qijian
* @date 2022/10/26
* 数据是否异常
*/
@Validated
@Slf4j
@RestController
@RequestMapping("/dataException")
@Api(tags = "数据是否异常")
@AllArgsConstructor
public class DataExceptionController extends BaseController {
private final DataExceptionService dataExceptionService;
@OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.ADD)
@PostMapping("/lineDataException")
@ApiOperation("监测点数据是否异常")
@ApiImplicitParam(name = "lineParam", value = "算法通用查询参数", required = true)
public HttpResult<String> lineDataException(@RequestBody @Validated LineParam lineParam) {
String methodDescribe = getMethodDescribe("lineDataException");
DeviceResponseEnum deviceResponseEnum = dataExceptionService.lineDataException(lineParam);
if(deviceResponseEnum != null){
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, deviceResponseEnum.getMessage(), methodDescribe);
}else {
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, "不存在数据异常!", methodDescribe);
}
}
}

View File

@@ -0,0 +1,52 @@
package com.njcn.prepare.harmonic.controller.line;
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.prepare.harmonic.pojo.param.LineParam;
import com.njcn.prepare.harmonic.service.mysql.line.DataIntegrityRateService;
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 qijian
* @date 2022/10/26
* 数据完整率算法
*/
@Validated
@Slf4j
@RestController
@RequestMapping("/dataIntegrityRate")
@Api(tags = "数据完整率算法")
@AllArgsConstructor
public class DataIntegrityRateController extends BaseController {
private final DataIntegrityRateService dataIntegrityRateService;
@OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.ADD)
@PostMapping("/lineDataIntegrityRate")
@ApiOperation("监测点日数据完整率")
@ApiImplicitParam(name = "lineParam", value = "算法通用查询参数", required = true)
public HttpResult<Boolean> lineDataIntegrityRate(@RequestBody @Validated LineParam lineParam) {
String methodDescribe = getMethodDescribe("lineDataIntegrityRate");
boolean res = dataIntegrityRateService.lineDataIntegrityRate(lineParam);
if(res){
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
}else {
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
}
}
}

View File

@@ -0,0 +1,71 @@
package com.njcn.prepare.harmonic.controller.line;
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.pq.api.LineFeignClient;
import com.njcn.prepare.harmonic.pojo.param.LineParam;
import com.njcn.prepare.harmonic.service.mysql.line.DayDataService;
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.util.CollectionUtils;
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.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
/**
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/10/24 9:26【需求编号】
*
* @author clam
* @version V1.0.0
*/
@Slf4j
@Api(tags = "日表数据处理")
@RestController
@RequestMapping("daydata")
@RequiredArgsConstructor
public class DayDataController extends BaseController {
private final LineFeignClient lineFeignClient;
private final DayDataService dayDataService;
@ApiOperation("day表定时任务")
@ApiImplicitParam(value = "jobParam",name = "jobParam",required = true)
@PostMapping("dayDataHanlder")
@OperateInfo(info = LogEnum.BUSINESS_MEDIUM)
public HttpResult<Boolean> dayDataHanlder(@RequestBody LineParam jobParam ){
log.info(LocalDateTime.now()+"dayDataHanlder开始执行");
String methodDescribe = getMethodDescribe("dayDataHanlder");
Boolean result = true;
List<String> indexLists = new ArrayList<> ();
if(CollectionUtils.isEmpty (jobParam.getLineIds ())){
indexLists = lineFeignClient.getLineList ( ).getData ( );
}else{
indexLists = jobParam.getLineIds ();
}
String startTime = jobParam.getDataDate ()+" "+"00:00:00";
String endTime = jobParam.getDataDate ()+" "+"23:59:59";
dayDataService.dayDataJobHandler (indexLists,startTime,endTime);
if (result){
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, true, methodDescribe);
} else {
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, false, methodDescribe);
}
}
}

View File

@@ -0,0 +1,73 @@
package com.njcn.prepare.harmonic.controller.line;
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.pq.api.LineFeignClient;
import com.njcn.prepare.harmonic.pojo.param.LineParam;
import com.njcn.prepare.harmonic.service.mysql.line.DistortionRateService;
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.util.CollectionUtils;
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.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
/**
* @author xiaoyao
* @version 1.0.0
* @createTime 2022/11/4 15:58
*/
@Slf4j
@Api(tags = "谐波畸变率")
@RestController
@RequestMapping("/distortion")
@RequiredArgsConstructor
public class DistortionRateController extends BaseController {
private final DistortionRateService distortionRateService;
private final LineFeignClient lineFeignClient;
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
@PostMapping("/distortionRate")
@ApiOperation("谐波畸变率排名")
@ApiImplicitParam(name = "lineParam", value = "参数", required = true)
public HttpResult<String> distortionRate(@RequestBody @Validated LineParam lineParam){
String methodDescribe = getMethodDescribe("distortionRate");
distortionRateService.distortionRate(lineParam);
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
}
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
@PostMapping("/distortionRateBySource")
@ApiOperation("谐波畸变率排名")
@ApiImplicitParam(name = "lineParam", value = "参数", required = true)
public HttpResult<String> distortionRateBySource(@RequestBody @Validated LineParam lineParam){
log.info(LocalDateTime.now()+"distortionRateBySource开始执行");
String methodDescribe = getMethodDescribe("distortionRateBySource");
List<String> indexLists = new ArrayList<> ();
if(CollectionUtils.isEmpty (lineParam.getLineIds ())){
indexLists = lineFeignClient.getLineList ( ).getData ( );
}else{
indexLists = lineParam.getLineIds ();
}
lineParam.setLineIds (indexLists);
distortionRateService.distortionRateBySource (lineParam);
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
}
}

View File

@@ -0,0 +1,45 @@
package com.njcn.prepare.harmonic.controller.line;
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.prepare.harmonic.pojo.param.LineParam;
import com.njcn.prepare.harmonic.service.mysql.line.HarmonicGeneralService;
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;
/**
* @author xiaoyao
* @version 1.0.0
* @createTime 2022/11/3 9:00
*/
@Slf4j
@Api(tags = "稳态综合评估")
@RestController
@RequestMapping("/general")
@RequiredArgsConstructor
public class HarmonicGeneralController extends BaseController {
private final HarmonicGeneralService harmonicGeneralService;
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
@PostMapping("/generalData")
@ApiOperation("稳态综合评估日数据计算")
@ApiImplicitParam(name = "lineParam", value = "参数", required = true)
public HttpResult<String> generalData(@RequestBody @Validated LineParam lineParam){
String methodDescribe = getMethodDescribe("generalData");
harmonicGeneralService.generalData(lineParam);
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
}
}

View File

@@ -0,0 +1,46 @@
package com.njcn.prepare.harmonic.controller.line;
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.prepare.harmonic.pojo.param.LineParam;
import com.njcn.prepare.harmonic.service.mysql.line.HarmonicMetricService;
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;
/**
* @author xiaoyao
* @version 1.0.0
* @createTime 2022/11/3 8:59
*/
@Slf4j
@Api(tags = "稳态指标评估")
@RestController
@RequestMapping("/metric")
@RequiredArgsConstructor
public class HarmonicMetricController extends BaseController {
private final HarmonicMetricService harmonicMetricService;
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
@PostMapping("/metricData")
@ApiOperation("稳态指标评估日数据计算")
@ApiImplicitParam(name = "lineParam", value = "参数", required = true)
public HttpResult<String> metricData(@RequestBody @Validated LineParam lineParam){
String methodDescribe = getMethodDescribe("metricData");
harmonicMetricService.metricData(lineParam);
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
}
}

View File

@@ -0,0 +1,46 @@
package com.njcn.prepare.harmonic.controller.line;
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.prepare.harmonic.pojo.param.LineParam;
import com.njcn.prepare.harmonic.service.mysql.line.IntegrityService;
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;
/**
* @author xiaoyao
* @version 1.0.0
* @createTime 2022/10/24 20:03
*/
@Slf4j
@Api(tags = "数据完整性统计")
@RestController
@RequestMapping("/integrity")
@RequiredArgsConstructor
public class IntegrityController extends BaseController {
private final IntegrityService integrityService;
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
@PostMapping("/computeDataIntegrity")
@ApiOperation("数据完整性统计")
@ApiImplicitParam(name = "lineParam", value = "参数", required = true)
public HttpResult<String> computeDataIntegrity(@RequestBody @Validated LineParam lineParam){
String methodDescribe = getMethodDescribe("computeDataIntegrity");
String out = integrityService.computeDataIntegrity(lineParam);
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, out, methodDescribe);
}
}

View File

@@ -0,0 +1,46 @@
package com.njcn.prepare.harmonic.controller.line;
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.prepare.harmonic.pojo.param.LineParam;
import com.njcn.prepare.harmonic.service.mysql.line.LimitTargetService;
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;
/**
* @author xiaoyao
* @version 1.0.0
* @createTime 2022/10/26 13:32
*/
@Slf4j
@Api(tags = "监测点T相数据超限处理")
@RestController
@RequestMapping("/limitTarget")
@RequiredArgsConstructor
public class LimitTargetController extends BaseController {
private final LimitTargetService limitTargetService;
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
@PostMapping("/getLimitTargetData")
@ApiOperation("生成limit_target表")
@ApiImplicitParam(name = "lineParam", value = "参数", required = true)
public HttpResult<String> getLimitTargetData(@RequestBody @Validated LineParam lineParam){
String methodDescribe = getMethodDescribe("getLimitTargetData");
limitTargetService.getLimitTargetData(lineParam);
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
}
}

View File

@@ -0,0 +1,70 @@
package com.njcn.prepare.harmonic.controller.line;
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.pq.api.LineFeignClient;
import com.njcn.prepare.harmonic.pojo.param.LineParam;
import com.njcn.prepare.harmonic.service.mysql.Impl.line.LimitRateService;
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.util.CollectionUtils;
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.ArrayList;
import java.util.List;
/**
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/10/19 9:58【需求编号】
*
* @author clam
* @version V1.0.0
*/
@Slf4j
@Api(tags = "监测点数据超限处理")
@RestController
@RequestMapping("limitrate")
@RequiredArgsConstructor
public class LimitrateController extends BaseController {
private final LimitRateService limitRateService;
private final LineFeignClient lineFeignClient;
@ApiOperation("limitrate表定时任务")
@ApiImplicitParam(value = "limitRateHanlderParam",name = "limitRateHanlderParam",required = true)
@PostMapping("LimitRateHanlder")
@OperateInfo(info = LogEnum.BUSINESS_MEDIUM)
public HttpResult<Boolean> limitRateHanlder(@RequestBody LineParam limitRateHanlderParam ){
String methodDescribe = getMethodDescribe("limitRateHanlder");
Boolean result = true;
List<String> indexLists = new ArrayList<> ();
if(CollectionUtils.isEmpty (limitRateHanlderParam.getLineIds ())){
indexLists = lineFeignClient.getLineList ( ).getData ( );
}else{
indexLists = limitRateHanlderParam.getLineIds ();
}
String startTime = limitRateHanlderParam.getDataDate ()+" "+"00:00:00";
String endTime = limitRateHanlderParam.getDataDate ()+" "+"23:59:59";
limitRateService.limitRateJobHandler (indexLists,startTime,endTime);
if (result){
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, true, methodDescribe);
} else {
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, false, methodDescribe);
}
}
}

View File

@@ -0,0 +1,42 @@
package com.njcn.prepare.harmonic.controller.line;
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.prepare.harmonic.pojo.param.LineParam;
import com.njcn.prepare.harmonic.service.mysql.line.NormalLimitService;
import com.njcn.web.controller.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
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;
/**
* @author denghuajun
* @version 1.0.0
* @date 2022年10月17日 19:56
*/
@Slf4j
@RestController
@RequestMapping("/normalLimit")
@Api(tags = "告警数据预处理")
@AllArgsConstructor
public class NormalLimitController extends BaseController {
private final NormalLimitService normLimitService;
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
@PostMapping("/getNormLimitData")
@ApiOperation("告警数据预处理")
public HttpResult<String> getNormLimitData(@RequestBody LineParam lineParam) {
String methodDescribe = getMethodDescribe("getNormLimitData");
normLimitService.AbnormalLineData(lineParam);
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
}
}

View File

@@ -0,0 +1,49 @@
package com.njcn.prepare.harmonic.controller.line;
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.prepare.harmonic.pojo.param.LineParam;
import com.njcn.prepare.harmonic.service.mysql.line.OnlineRateService;
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;
/**
* 生成在线率数据表
*
* @author xiaoyao
* @version 1.0.0
* @createTime 2022/10/27 9:17
*/
@Slf4j
@Api(tags = "生成在线率数据表")
@RestController
@RequestMapping("/onlineRate")
@RequiredArgsConstructor
public class OnlineRateController extends BaseController {
private final OnlineRateService onlineRateService;
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
@PostMapping("/getOnlineRateData")
@ApiOperation("生成在线率数据")
@ApiImplicitParam(name = "lineParam", value = "参数", required = true)
public HttpResult<String> getOnlineRateData(@RequestBody @Validated LineParam lineParam){
String methodDescribe = getMethodDescribe("getOnlineRateData");
onlineRateService.getOnlineRateData(lineParam);
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
}
}

View File

@@ -0,0 +1,50 @@
package com.njcn.prepare.harmonic.controller.line;
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.prepare.harmonic.pojo.param.LineParam;
import com.njcn.prepare.harmonic.service.mysql.line.PollutionService;
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;
/**
* 监测点污染指标
*
* @author xiaoyao
* @version 1.0.0
* @createTime 2022/10/18 8:54
*/
@Slf4j
@Api(tags = "监测点污染指标")
@RestController
@RequestMapping("/pollution")
@RequiredArgsConstructor
public class PollutionController extends BaseController {
private final PollutionService pollutionService;
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
@PostMapping("/processPollutionData")
@ApiOperation("处理监测点污染指标")
@ApiImplicitParam(name = "lineParam", value = "参数", required = true)
public HttpResult<String> processPollutionData(@RequestBody @Validated LineParam lineParam){
String methodDescribe = getMethodDescribe("processPollutionData");
pollutionService.processPollutionData(lineParam);
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
}
}

View File

@@ -0,0 +1,64 @@
package com.njcn.prepare.harmonic.controller.line;
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.pq.api.LineFeignClient;
import com.njcn.prepare.harmonic.pojo.param.LineParam;
import com.njcn.prepare.harmonic.service.mysql.line.PqsEventdetailHandlerService;
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.util.CollectionUtils;
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.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
/**
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/12/28 13:47【需求编号】
*
* @author clam
* @version V1.0.0
*/
@Slf4j
@Api(tags = "监测点暂态指标超标明细")
@RestController
@RequestMapping("/eventdetail")
@RequiredArgsConstructor
public class PqsEventdetailController extends BaseController {
private final LineFeignClient lineFeignClient;
private final PqsEventdetailHandlerService pqsEventdetailHandlerService;
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
@PostMapping("/eventdetailHandler")
@ApiOperation("监测点暂态指标处理")
@ApiImplicitParam(name = "lineParam", value = "参数", required = true)
public HttpResult<String> eventdetailHandler(@RequestBody @Validated LineParam lineParam){
log.info(LocalDateTime.now()+"eventdetailHandler始执行");
String methodDescribe = getMethodDescribe("eventdetailHandler");
List<String> indexLists = new ArrayList<> ();
if(CollectionUtils.isEmpty (lineParam.getLineIds ())){
indexLists = lineFeignClient.getLineList ( ).getData ( );
}else{
indexLists = lineParam.getLineIds ();
}
lineParam.setLineIds (indexLists);
pqsEventdetailHandlerService.eventdetailHandler (lineParam);
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
}
}

View File

@@ -0,0 +1,53 @@
package com.njcn.prepare.harmonic.controller.line;
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.prepare.harmonic.pojo.param.LineParam;
import com.njcn.prepare.harmonic.service.mysql.line.ReportService;
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 qijian
* @date 2022/10/20
*/
@Slf4j
@RestController
@RequestMapping("/report")
@Api(tags = "自定义报表")
@AllArgsConstructor
public class ReportController extends BaseController {
private final ReportService reportService;
/**
* 批量处理报表
* @author qijian
* @date 2022/10/19
*/
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
@PostMapping("/batchReport")
@ApiOperation("批量处理报表")
@ApiImplicitParam(name = "reportParam", value = "查询体", required = true)
public HttpResult<Boolean> batchReport(@RequestBody @Validated LineParam reportParam){
String methodDescribe = getMethodDescribe("batchReport");
reportService.batchReport(reportParam);
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
}
}

View File

@@ -0,0 +1,65 @@
package com.njcn.prepare.harmonic.controller.line;
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.pq.api.LineFeignClient;
import com.njcn.prepare.harmonic.pojo.param.LineParam;
import com.njcn.prepare.harmonic.service.mysql.line.RmpPassRateService;
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.util.CollectionUtils;
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.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
/**
* @author qijian
* @date 2022/10/26
* 数据是否异常
*/
@Validated
@Slf4j
@RestController
@RequestMapping("/RmpPassRate")
@Api(tags = "监测点稳态指标合格率")
@AllArgsConstructor
public class RmpPassRateController extends BaseController {
private final LineFeignClient lineFeignClient;
private final RmpPassRateService rmpPassRateService;
@OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.ADD)
@PostMapping("/RmpPassRateD")
@ApiOperation("监测点稳态指标合格率-日计算")
@ApiImplicitParam(name = "lineParam", value = "算法通用查询参数", required = true)
public HttpResult<Boolean> rmpPassRateDHandler(@RequestBody @Validated LineParam lineParam) {
log.info(LocalDateTime.now()+"rmpPassRateDHandler开始执行");
String methodDescribe = getMethodDescribe("rmpPassRateDHandler");
Boolean result = true;
List<String> indexLists = new ArrayList<> ();
if(CollectionUtils.isEmpty (lineParam.getLineIds ())){
indexLists = lineFeignClient.getLineList ( ).getData ( );
}else{
indexLists = lineParam.getLineIds ();
}
rmpPassRateService.rmpPassRateDHandler (lineParam);
if (result){
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, true, methodDescribe);
} else {
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, false, methodDescribe);
}
}
}

View File

@@ -0,0 +1,96 @@
package com.njcn.prepare.harmonic.controller.line;
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.prepare.harmonic.pojo.param.LineParam;
import com.njcn.prepare.harmonic.service.mysql.line.SteadyIndexExceedService;
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 qijian
* @date 2022/12/02
* 监测点稳态指标超标明细
*/
@Validated
@Slf4j
@RestController
@RequestMapping("/steadyIndexExceed")
@Api(tags = "监测点稳态指标超标明细")
@AllArgsConstructor
public class SteadyIndexExceedController extends BaseController {
private final SteadyIndexExceedService steadyIndexExceedService;
@OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.ADD)
@PostMapping("/isValueExceedID")
@ApiOperation("日统计I、II、III类监测点是否超标限值")
@ApiImplicitParam(name = "lineParam", value = "算法通用查询参数", required = true)
public HttpResult<Boolean> isValueExceedID(@RequestBody @Validated LineParam lineParam) {
String methodDescribe = getMethodDescribe("isValueExceedID");
boolean res = steadyIndexExceedService.isValueExceedID(lineParam);
if(res){
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
}else {
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
}
}
@OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.ADD)
@PostMapping("/isValueExceedIID")
@ApiOperation("日统计I、II类监测点是否超标限值")
@ApiImplicitParam(name = "lineParam", value = "算法通用查询参数", required = true)
public HttpResult<Boolean> isValueExceedIID(@RequestBody @Validated LineParam lineParam) {
String methodDescribe = getMethodDescribe("isValueExceedIID");
boolean res = steadyIndexExceedService.isValueExceedIID(lineParam);
if(res){
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
}else {
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
}
}
@OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.ADD)
@PostMapping("/isValueExceedIM")
@ApiOperation("月统计I、II、III类监测点是否超标限值")
@ApiImplicitParam(name = "lineParam", value = "算法通用查询参数", required = true)
public HttpResult<Boolean> isValueExceedIM(@RequestBody @Validated LineParam lineParam) {
String methodDescribe = getMethodDescribe("isValueExceedIM");
boolean res = steadyIndexExceedService.isValueExceedIM(lineParam);
if(res){
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
}else {
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
}
}
@OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.ADD)
@PostMapping("/isValueExceedIIM")
@ApiOperation("月统计I、II类监测点是否超标限值")
@ApiImplicitParam(name = "lineParam", value = "算法通用查询参数", required = true)
public HttpResult<Boolean> isValueExceedIIM(@RequestBody @Validated LineParam lineParam) {
String methodDescribe = getMethodDescribe("isValueExceedIIM");
boolean res = steadyIndexExceedService.isValueExceedIIM(lineParam);
if(res){
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
}else {
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
}
}
}

View File

@@ -0,0 +1,18 @@
package com.njcn.prepare.harmonic.mapper.mysql.area;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.harmonic.pojo.po.PmsMonitorPO;
import org.apache.ibatis.annotations.Mapper;
/**
*
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/11/25 10:10【需求编号】
*
* @author clam
* @version V1.0.0
*/
@Mapper
public interface PmsMonitorPOMapper extends BaseMapper<PmsMonitorPO> {
}

View File

@@ -0,0 +1,18 @@
package com.njcn.prepare.harmonic.mapper.mysql.area;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.harmonic.pojo.po.PmsTerminalPO;
import org.apache.ibatis.annotations.Mapper;
/**
*
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/11/25 10:11【需求编号】
*
* @author clam
* @version V1.0.0
*/
@Mapper
public interface PmsTerminalPOMapper extends BaseMapper<PmsTerminalPO> {
}

View File

@@ -0,0 +1,18 @@
package com.njcn.prepare.harmonic.mapper.mysql.area;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.prepare.harmonic.pojo.oracle.PqsEventdetailPO;
import org.apache.ibatis.annotations.Mapper;
/**
*
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/12/28 13:46【需求编号】
*
* @author clam
* @version V1.0.0
*/
@Mapper
public interface PqsEventdetailMapper extends MppBaseMapper<PqsEventdetailPO> {
}

View File

@@ -0,0 +1,18 @@
package com.njcn.prepare.harmonic.mapper.mysql.area;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.harmonic.pojo.po.RMpDevEvaluateDetailPO;
import org.apache.ibatis.annotations.Mapper;
/**
*
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/12/1 9:18【需求编号】
*
* @author clam
* @version V1.0.0
*/
@Mapper
public interface RMpDevEvaluateDetailPOMapper extends MppBaseMapper<RMpDevEvaluateDetailPO> {
}

View File

@@ -0,0 +1,18 @@
package com.njcn.prepare.harmonic.mapper.mysql.area;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.harmonic.pojo.po.RMpIntegrityDPO;
import org.apache.ibatis.annotations.Mapper;
/**
*
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/11/25 14:33【需求编号】
*
* @author clam
* @version V1.0.0
*/
@Mapper
public interface RMpIntegrityDPOMapper extends BaseMapper<RMpIntegrityDPO> {
}

View File

@@ -0,0 +1,18 @@
package com.njcn.prepare.harmonic.mapper.mysql.area;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.harmonic.pojo.po.RMpTargetWarnDPO;
import org.apache.ibatis.annotations.Mapper;
/**
*
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/12/15 11:00【需求编号】
*
* @author clam
* @version V1.0.0
*/
@Mapper
public interface RMpTargetWarnDMapper extends MppBaseMapper<RMpTargetWarnDPO> {
}

View File

@@ -0,0 +1,19 @@
package com.njcn.prepare.harmonic.mapper.mysql.area;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.harmonic.pojo.po.ROperatingIndexDPO;
import org.apache.ibatis.annotations.Mapper;
/**
*
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/11/25 10:01【需求编号】
*
* @author clam
* @version V1.0.0
*/
@Mapper
public interface ROperatingIndexDPOMapper extends MppBaseMapper<ROperatingIndexDPO> {
}

View File

@@ -0,0 +1,18 @@
package com.njcn.prepare.harmonic.mapper.mysql.area;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.harmonic.pojo.po.ROperatingIndexMPO;
import org.apache.ibatis.annotations.Mapper;
/**
*
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/11/30 13:59【需求编号】
*
* @author clam
* @version V1.0.0
*/
@Mapper
public interface ROperatingIndexMPOMapper extends MppBaseMapper<ROperatingIndexMPO> {
}

View File

@@ -0,0 +1,18 @@
package com.njcn.prepare.harmonic.mapper.mysql.area;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.harmonic.pojo.po.ROperatingIndexQPO;
import org.apache.ibatis.annotations.Mapper;
/**
*
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/11/30 15:58【需求编号】
*
* @author clam
* @version V1.0.0
*/
@Mapper
public interface ROperatingIndexQPOMapper extends MppBaseMapper<ROperatingIndexQPO> {
}

View File

@@ -0,0 +1,18 @@
package com.njcn.prepare.harmonic.mapper.mysql.area;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.harmonic.pojo.po.ROperatingIndexYPO;
import org.apache.ibatis.annotations.Mapper;
/**
*
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/11/30 15:58【需求编号】
*
* @author clam
* @version V1.0.0
*/
@Mapper
public interface ROperatingIndexYPOMapper extends MppBaseMapper<ROperatingIndexYPO> {
}

View File

@@ -0,0 +1,17 @@
package com.njcn.prepare.harmonic.mapper.mysql.area;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.harmonic.pojo.po.RStatAbnormalDPO;
import org.apache.ibatis.annotations.Mapper;
/**
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/11/28 19:31【需求编号】
*
* @author clam
* @version V1.0.0
*/
@Mapper
public interface RStatAbnormalDPOMapper extends MppBaseMapper<RStatAbnormalDPO> {
}

View File

@@ -0,0 +1,18 @@
package com.njcn.prepare.harmonic.mapper.mysql.area;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.harmonic.pojo.po.RStatOrgDPO;
import org.apache.ibatis.annotations.Mapper;
/**
*
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/12/13 15:39【需求编号】
*
* @author clam
* @version V1.0.0
*/
@Mapper
public interface RStatOrgDMapper extends MppBaseMapper<RStatOrgDPO> {
}

View File

@@ -0,0 +1,18 @@
package com.njcn.prepare.harmonic.mapper.mysql.area;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.harmonic.pojo.po.RStatOrgMPO;
import org.apache.ibatis.annotations.Mapper;
/**
*
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/12/14 16:17【需求编号】
*
* @author clam
* @version V1.0.0
*/
@Mapper
public interface RStatOrgMMapper extends MppBaseMapper<RStatOrgMPO> {
}

View File

@@ -0,0 +1,37 @@
<?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.prepare.harmonic.mapper.mysql.area.PqsEventdetailMapper">
<resultMap id="BaseResultMap" type="com.njcn.prepare.harmonic.pojo.oracle.PqsEventdetailPO">
<!--@mbg.generated-->
<!--@Table PQS_EVENTDETAIL-->
<id column="EVENTDETAIL_INDEX" jdbcType="VARCHAR" property="eventdetailIndex" />
<result column="LINEID" jdbcType="DECIMAL" property="lineid" />
<result column="TIMEID" jdbcType="TIMESTAMP" property="timeid" />
<result column="MS" jdbcType="DECIMAL" property="ms" />
<result column="DESCRIBE" jdbcType="VARCHAR" property="describe" />
<result column="WAVETYPE" jdbcType="DECIMAL" property="wavetype" />
<result column="PERSISTTIME" jdbcType="FLOAT" property="persisttime" />
<result column="EVENTVALUE" jdbcType="FLOAT" property="eventvalue" />
<result column="EVENTREASON" jdbcType="VARCHAR" property="eventreason" />
<result column="EVENTTYPE" jdbcType="VARCHAR" property="eventtype" />
<result column="EVENTASS_INDEX" jdbcType="VARCHAR" property="eventassIndex" />
<result column="DQTIME" jdbcType="FLOAT" property="dqtime" />
<result column="DEALTIME" jdbcType="TIMESTAMP" property="dealtime" />
<result column="DEALFLAG" jdbcType="DECIMAL" property="dealflag" />
<result column="NUM" jdbcType="DECIMAL" property="num" />
<result column="FILEFLAG" jdbcType="DECIMAL" property="fileflag" />
<result column="FIRSTTIME" jdbcType="TIMESTAMP" property="firsttime" />
<result column="FIRSTTYPE" jdbcType="VARCHAR" property="firsttype" />
<result column="FIRSTMS" jdbcType="DECIMAL" property="firstms" />
<result column="WAVENAME" jdbcType="VARCHAR" property="wavename" />
<result column="ENERGY" jdbcType="FLOAT" property="energy" />
<result column="SEVERITY" jdbcType="FLOAT" property="severity" />
<result column="SAGSOURCE" jdbcType="VARCHAR" property="sagsource" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
EVENTDETAIL_INDEX, LINEID, TIMEID, MS, "DESCRIBE", WAVETYPE, PERSISTTIME, EVENTVALUE,
EVENTREASON, EVENTTYPE, EVENTASS_INDEX, DQTIME, DEALTIME, DEALFLAG, NUM, FILEFLAG,
FIRSTTIME, FIRSTTYPE, FIRSTMS, WAVENAME, ENERGY, SEVERITY, SAGSOURCE
</sql>
</mapper>

View File

@@ -0,0 +1,18 @@
<?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.prepare.harmonic.mapper.mysql.area.RMpDevEvaluateDetailPOMapper">
<resultMap id="BaseResultMap" type="com.njcn.harmonic.pojo.po.RMpDevEvaluateDetailPO">
<!--@mbg.generated-->
<!--@Table r_mp_dev_evaluate_detail-->
<id column="data_date" jdbcType="TIMESTAMP" property="dataDate" />
<id column="device_id" jdbcType="VARCHAR" property="deviceId" />
<result column="dev_target_rate" jdbcType="FLOAT" property="devTargetRate" />
<result column="dev_data_rate" jdbcType="FLOAT" property="devDataRate" />
<result column="dev_score" jdbcType="FLOAT" property="devScore" />
<result column="dev_effective_rate" jdbcType="FLOAT" property="devEffectiveRate" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
data_date, device_id, dev_target_rate, dev_data_rate, dev_score, dev_effective_rate
</sql>
</mapper>

View File

@@ -0,0 +1,26 @@
<?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.prepare.harmonic.mapper.mysql.area.RMpTargetWarnDMapper">
<resultMap id="BaseResultMap" type="com.njcn.harmonic.pojo.po.RMpTargetWarnDPO">
<!--@mbg.generated-->
<!--@Table r_mp_target_warn_d-->
<id column="measurement_point_id" jdbcType="VARCHAR" property="measurementPointId" />
<id column="data_date" jdbcType="DATE" property="dataDate" />
<result column="is_effective" jdbcType="TINYINT" property="isEffective" />
<result column="is_harmonic" jdbcType="TINYINT" property="isHarmonic" />
<result column="is_event" jdbcType="TINYINT" property="isEvent" />
<result column="is_warn" jdbcType="TINYINT" property="isWarn" />
<result column="is_v_dev_warn" jdbcType="TINYINT" property="isVDevWarn" />
<result column="is_freq_warn" jdbcType="TINYINT" property="isFreqWarn" />
<result column="is_unbalance_warn" jdbcType="TINYINT" property="isUnbalanceWarn" />
<result column="is_v_warn" jdbcType="TINYINT" property="isVWarn" />
<result column="is_flicker_warn" jdbcType="TINYINT" property="isFlickerWarn" />
<result column="is_sag_warn" jdbcType="TINYINT" property="isSagWarn" />
<result column="is_interrupt_warn" jdbcType="TINYINT" property="isInterruptWarn" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
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>

View File

@@ -0,0 +1,27 @@
<?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.prepare.harmonic.mapper.mysql.area.ROperatingIndexMPOMapper">
<resultMap id="BaseResultMap" type="com.njcn.harmonic.pojo.po.ROperatingIndexMPO">
<!--@mbg.generated-->
<!--@Table r_operating_index_m-->
<id column="org_no" jdbcType="VARCHAR" property="orgNo" />
<id column="data_date" jdbcType="TIMESTAMP" property="dataDate" />
<result column="measurement_run_points" jdbcType="INTEGER" property="measurementRunPoints" />
<result column="transit_measurement_points" jdbcType="INTEGER" property="transitMeasurementPoints" />
<result column="effective_access_measurement_count" jdbcType="INTEGER" property="effectiveAccessMeasurementCount" />
<result column="online_measurement_points" jdbcType="INTEGER" property="onlineMeasurementPoints" />
<result column="online_measurement_count" jdbcType="INTEGER" property="onlineMeasurementCount" />
<result column="should_count" jdbcType="INTEGER" property="shouldCount" />
<result column="should_point_coverage" jdbcType="FLOAT" property="shouldPointCoverage" />
<result column="data_integrity_rate" jdbcType="FLOAT" property="dataIntegrityRate" />
<result column="data_right_rate" jdbcType="FLOAT" property="dataRightRate" />
<result column="index_integrity_rate" jdbcType="FLOAT" property="indexIntegrityRate" />
<result column="is_unusual" jdbcType="INTEGER" property="isUnusual" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
org_no, data_date, measurement_run_points, transit_measurement_points, effective_access_measurement_count,
online_measurement_points, online_measurement_count, should_count, should_point_coverage,
data_integrity_rate, data_right_rate, index_integrity_rate, is_unusual
</sql>
</mapper>

View File

@@ -0,0 +1,27 @@
<?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.prepare.harmonic.mapper.mysql.area.ROperatingIndexQPOMapper">
<resultMap id="BaseResultMap" type="com.njcn.harmonic.pojo.po.ROperatingIndexQPO">
<!--@mbg.generated-->
<!--@Table r_operating_index_q-->
<id column="org_no" jdbcType="VARCHAR" property="orgNo" />
<id column="data_date" jdbcType="TIMESTAMP" property="dataDate" />
<result column="measurement_run_points" jdbcType="INTEGER" property="measurementRunPoints" />
<result column="transit_measurement_points" jdbcType="INTEGER" property="transitMeasurementPoints" />
<result column="effective_access_measurement_count" jdbcType="INTEGER" property="effectiveAccessMeasurementCount" />
<result column="online_measurement_points" jdbcType="INTEGER" property="onlineMeasurementPoints" />
<result column="online_measurement_count" jdbcType="INTEGER" property="onlineMeasurementCount" />
<result column="should_count" jdbcType="INTEGER" property="shouldCount" />
<result column="should_point_coverage" jdbcType="FLOAT" property="shouldPointCoverage" />
<result column="data_integrity_rate" jdbcType="FLOAT" property="dataIntegrityRate" />
<result column="data_right_rate" jdbcType="FLOAT" property="dataRightRate" />
<result column="index_integrity_rate" jdbcType="FLOAT" property="indexIntegrityRate" />
<result column="is_unusual" jdbcType="INTEGER" property="isUnusual" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
org_no, data_date, measurement_run_points, transit_measurement_points, effective_access_measurement_count,
online_measurement_points, online_measurement_count, should_count, should_point_coverage,
data_integrity_rate, data_right_rate, index_integrity_rate, is_unusual
</sql>
</mapper>

View File

@@ -0,0 +1,27 @@
<?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.prepare.harmonic.mapper.mysql.area.ROperatingIndexYPOMapper">
<resultMap id="BaseResultMap" type="com.njcn.harmonic.pojo.po.ROperatingIndexYPO">
<!--@mbg.generated-->
<!--@Table r_operating_index_y-->
<id column="org_no" jdbcType="VARCHAR" property="orgNo" />
<id column="data_date" jdbcType="TIMESTAMP" property="dataDate" />
<result column="measurement_run_points" jdbcType="INTEGER" property="measurementRunPoints" />
<result column="transit_measurement_points" jdbcType="INTEGER" property="transitMeasurementPoints" />
<result column="effective_access_measurement_count" jdbcType="INTEGER" property="effectiveAccessMeasurementCount" />
<result column="online_measurement_points" jdbcType="INTEGER" property="onlineMeasurementPoints" />
<result column="online_measurement_count" jdbcType="INTEGER" property="onlineMeasurementCount" />
<result column="should_count" jdbcType="INTEGER" property="shouldCount" />
<result column="should_point_coverage" jdbcType="FLOAT" property="shouldPointCoverage" />
<result column="data_integrity_rate" jdbcType="FLOAT" property="dataIntegrityRate" />
<result column="data_right_rate" jdbcType="FLOAT" property="dataRightRate" />
<result column="index_integrity_rate" jdbcType="FLOAT" property="indexIntegrityRate" />
<result column="is_unusual" jdbcType="INTEGER" property="isUnusual" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
org_no, data_date, measurement_run_points, transit_measurement_points, effective_access_measurement_count,
online_measurement_points, online_measurement_count, should_count, should_point_coverage,
data_integrity_rate, data_right_rate, index_integrity_rate, is_unusual
</sql>
</mapper>

View File

@@ -0,0 +1,24 @@
<?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.prepare.harmonic.mapper.mysql.area.RStatOrgDMapper">
<resultMap id="BaseResultMap" type="com.njcn.harmonic.pojo.po.RStatOrgDPO">
<!--@mbg.generated-->
<!--@Table r_stat_org_d-->
<id column="org_no" jdbcType="VARCHAR" property="orgNo" />
<id column="data_date" jdbcType="TIMESTAMP" property="dataDate" />
<id column="measurement_type_class" jdbcType="VARCHAR" property="measurementTypeClass" />
<id column="data_type" jdbcType="VARCHAR" property="dataType" />
<result column="all_count" jdbcType="INTEGER" property="allCount" />
<result column="effective_measurement" jdbcType="INTEGER" property="effectiveMeasurement" />
<result column="harmonic_measurement" jdbcType="INTEGER" property="harmonicMeasurement" />
<result column="event_measurement" jdbcType="INTEGER" property="eventMeasurement" />
<result column="event_count" jdbcType="INTEGER" property="eventCount" />
<result column="should_count" jdbcType="INTEGER" property="shouldCount" />
<result column="warn_count" jdbcType="INTEGER" property="warnCount" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
org_no, data_date, measurement_type_class, data_type, all_count, effective_measurement,
harmonic_measurement, event_measurement, event_count, should_count, warn_count
</sql>
</mapper>

View File

@@ -0,0 +1,37 @@
<?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.prepare.harmonic.mapper.mysql.area.RStatOrgMMapper">
<resultMap id="BaseResultMap" type="com.njcn.harmonic.pojo.po.RStatOrgMPO">
<!--@mbg.generated-->
<!--@Table r_stat_org_m-->
<id column="org_no" jdbcType="VARCHAR" property="orgNo" />
<result column="data_date" jdbcType="TIMESTAMP" property="dataDate" />
<result column="measurement_type_class" jdbcType="VARCHAR" property="measurementTypeClass" />
<result column="all_count" jdbcType="INTEGER" property="allCount" />
<result column="effective_measurement_average" jdbcType="INTEGER" property="effectiveMeasurementAverage" />
<result column="effective_measurement_accrued" jdbcType="INTEGER" property="effectiveMeasurementAccrued" />
<result column="harmonic_measurement_average" jdbcType="INTEGER" property="harmonicMeasurementAverage" />
<result column="harmonic_measurement_accrued" jdbcType="INTEGER" property="harmonicMeasurementAccrued" />
<result column="harmonic_measurement_ratio_average" jdbcType="FLOAT" property="harmonicMeasurementRatioAverage" />
<result column="over_day_accrued" jdbcType="INTEGER" property="overDayAccrued" />
<result column="freq_pass_rate" jdbcType="FLOAT" property="freqPassRate" />
<result column="v_dev_pass_rate" jdbcType="FLOAT" property="vDevPassRate" />
<result column="flicker_pass_rate" jdbcType="FLOAT" property="flickerPassRate" />
<result column="event_measurement_average" jdbcType="INTEGER" property="eventMeasurementAverage" />
<result column="event_measurement_accrued" jdbcType="INTEGER" property="eventMeasurementAccrued" />
<result column="event_measurement_ratio_average" jdbcType="FLOAT" property="eventMeasurementRatioAverage" />
<result column="event_freq" jdbcType="FLOAT" property="eventFreq" />
<result column="event_count" jdbcType="INTEGER" property="eventCount" />
<result column="should_count" jdbcType="INTEGER" property="shouldCount" />
<result column="warn_count" jdbcType="INTEGER" property="warnCount" />
<result column="data_type" jdbcType="VARCHAR" property="dataType" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
org_no, data_date, measurement_type_class, all_count, effective_measurement_average,
effective_measurement_accrued, harmonic_measurement_average, harmonic_measurement_accrued,
harmonic_measurement_ratio_average, over_day_accrued, freq_pass_rate, v_dev_pass_rate,
flicker_pass_rate, event_measurement_average, event_measurement_accrued, event_measurement_ratio_average,
event_freq, event_count, should_count, warn_count, data_type
</sql>
</mapper>

View File

@@ -0,0 +1,12 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.prepare.harmonic.pojo.mysql.po.line.MpSurplusAbnormalD;
/**
* @author denghuajun
* @version 1.0.0
* @date 2022年10月18日 11:12
*/
public interface AbnormalMapper extends BaseMapper<MpSurplusAbnormalD> {
}

View File

@@ -0,0 +1,14 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.harmonic.pojo.po.ExcelRpt;
/**
* ExcelRptMapper
*
* @author qijian
* @date 2022/10/14
*/
public interface ExcelRptMapper extends BaseMapper<ExcelRpt> {
}

View File

@@ -0,0 +1,16 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.harmonic.pojo.po.ExcelRptTemp;
import java.util.List;
/**
* @author qijian
* @date 2022/10/20
*/
public interface ExcelRptTempMapper extends BaseMapper<ExcelRptTemp> {
List<ExcelRptTemp> getActiveTempList();
}

View File

@@ -0,0 +1,18 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.harmonic.pojo.po.LimitRatePO;
/**
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/10/20 18:25【需求编号】
*
* @author clam
* @version V1.0.0
*/
public interface LimitRatePOMapper extends MppBaseMapper<LimitRatePO> {
// int updateBatch(List<LimitRatePO> list);
// int batchInsert(@Param("list") List<LimitRatePO> list);
}

View File

@@ -0,0 +1,20 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.prepare.harmonic.pojo.mysql.po.line.LimitTargetPO;
/**
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/10/20 18:26【需求编号】
*
* @author clam
* @version V1.0.0
*/
public interface LimitTargetPOMapper extends BaseMapper<LimitTargetPO> {
// int updateBatch(List<LimitTargetPO> list);
//
// int updateBatchSelective(List<LimitTargetPO> list);
//
// int batchInsert(@Param("list") List<LimitTargetPO> list);
}

View File

@@ -0,0 +1,9 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
/**
* @author denghuajun
* @version 1.0.0
* @date 2022年10月17日 20:11
*/
public interface NormLimitMapper {
}

View File

@@ -0,0 +1,13 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.device.pq.pojo.po.PmsAbnormalRules;
/**
* PmsAbnormalRulesMapper
*
* @author qijian
* @date 2022/10/26
*/
public interface PmsAbnormalRulesMapper extends BaseMapper<PmsAbnormalRules> {
}

View File

@@ -0,0 +1,27 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.harmonic.pojo.po.RMpEventDetailDPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.time.LocalDate;
import java.time.LocalDateTime;
/**
*
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/12/28 14:58【需求编号】
*
* @author clam
* @version V1.0.0
*/
@Mapper
public interface RMpEventDetailDMapper extends MppBaseMapper<RMpEventDetailDPO> {
int getSagTimes(@Param("lineId") String lineId, @Param("date") LocalDate date);
int getInterruptTimes(@Param("lineId") String lineId, @Param("date") LocalDate date);
}

View File

@@ -0,0 +1,18 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.harmonic.pojo.po.RMpEventDetailMPO;
import org.apache.ibatis.annotations.Mapper;
/**
*
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/12/28 14:58【需求编号】
*
* @author clam
* @version V1.0.0
*/
@Mapper
public interface RMpEventDetailMMapper extends MppBaseMapper<RMpEventDetailMPO> {
}

View File

@@ -0,0 +1,18 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.harmonic.pojo.po.RMpEventDetailQPO;
import org.apache.ibatis.annotations.Mapper;
/**
*
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/12/28 14:58【需求编号】
*
* @author clam
* @version V1.0.0
*/
@Mapper
public interface RMpEventDetailQMapper extends MppBaseMapper<RMpEventDetailQPO> {
}

View File

@@ -0,0 +1,18 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.harmonic.pojo.po.RMpEventDetailYPO;
import org.apache.ibatis.annotations.Mapper;
/**
*
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/12/28 14:58【需求编号】
*
* @author clam
* @version V1.0.0
*/
@Mapper
public interface RMpEventDetailYMapper extends MppBaseMapper<RMpEventDetailYPO> {
}

View File

@@ -0,0 +1,24 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.prepare.harmonic.pojo.mysql.po.line.RMpFlickerReportDPO;
import org.apache.ibatis.annotations.Select;
import java.util.List;
/**
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/10/26 14:15【需求编号】
*
* @author clam
* @version V1.0.0
*/
public interface RMpFlickerReportDPOMapper extends MppBaseMapper<RMpFlickerReportDPO> {
@Select("select name from sys_user")
List<String> testMysql();
@Select("select name from pqs_user")
List<String> testOracle();
}

View File

@@ -0,0 +1,16 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.harmonic.pojo.po.RMpHarmonicIMagReportD;
/**
*
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/10/26 9:50【需求编号】
*
* @author clam
* @version V1.0.0
*/
public interface RMpHarmonicIMagReportDPOMapper extends MppBaseMapper<RMpHarmonicIMagReportD> {
}

View File

@@ -0,0 +1,16 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.harmonic.pojo.po.RMpHarmonicIRateReportD;
/**
*
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/10/26 18:33【需求编号】
*
* @author clam
* @version V1.0.0
*/
public interface RMpHarmonicIRateReportDPOMapper extends MppBaseMapper<RMpHarmonicIRateReportD> {
}

View File

@@ -0,0 +1,15 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.prepare.harmonic.pojo.mysql.po.line.RMpHarmonicPReportDPO;
/**
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/10/25 10:33【需求编号】
*
* @author clam
* @version V1.0.0
*/
public interface RMpHarmonicPReportDPOMapper extends MppBaseMapper<RMpHarmonicPReportDPO> {
}

View File

@@ -0,0 +1,22 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.harmonic.pojo.po.RMpHarmonicVRateReportD;
import org.apache.ibatis.annotations.Param;
import java.time.LocalDate;
/**
*
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/10/25 11:11【需求编号】
*
* @author clam
* @version V1.0.0
*/
public interface RMpHarmonicVRateReportDPOMapper extends MppBaseMapper<RMpHarmonicVRateReportD> {
double getMaxVoltageHarmonicThd95(@Param("lineId") String lineId, @Param("date") LocalDate date);
}

View File

@@ -0,0 +1,15 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.prepare.harmonic.pojo.mysql.po.line.RMpInharmonicIMagReportDPO;
/**
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/10/27 13:52【需求编号】
*
* @author clam
* @version V1.0.0
*/
public interface RMpInharmonicIMagReportDPOMapper extends MppBaseMapper<RMpInharmonicIMagReportDPO> {
}

View File

@@ -0,0 +1,16 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.harmonic.pojo.po.RMpInharmonicIRateReportD;
/**
*
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/10/26 19:36【需求编号】
*
* @author clam
* @version V1.0.0
*/
public interface RMpInharmonicIRateReportDPOMapper extends MppBaseMapper<RMpInharmonicIRateReportD> {
}

View File

@@ -0,0 +1,15 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.harmonic.pojo.po.RMpInharmonicVRateReportD;
/**
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/10/27 13:52【需求编号】
*
* @author clam
* @version V1.0.0
*/
public interface RMpInharmonicVRateReportDPOMapper extends MppBaseMapper<RMpInharmonicVRateReportD> {
}

View File

@@ -0,0 +1,14 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.device.pq.pojo.po.RMpIntegrityD;
/**
* RMpIntegrityDMapper
*
* @author qijian
* @date 2022/10/26
*/
public interface RMpIntegrityDMapper extends BaseMapper<RMpIntegrityD> {
}

View File

@@ -0,0 +1,21 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.harmonic.pojo.po.RMpMeasurePhaseReportD;
import org.apache.ibatis.annotations.Param;
import java.time.LocalDate;
/**
*
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/10/28 10:53【需求编号】
*
* @author clam
* @version V1.0.0
*/
public interface RMpMeasurePhaseReportDPOMapper extends MppBaseMapper<RMpMeasurePhaseReportD> {
double getMaxVDeUp(@Param("lineId") String lineId, @Param("date") LocalDate date);
}

View File

@@ -0,0 +1,23 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.harmonic.pojo.po.RMpMeasureReportD;
import org.apache.ibatis.annotations.Param;
import java.time.LocalDate;
/**
*
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/10/28 10:54【需求编号】
*
* @author clam
* @version V1.0.0
*/
public interface RMpMeasureReportDPOMapper extends MppBaseMapper<RMpMeasureReportD> {
double getMaxFrequencyDeviation(@Param("lineId") String lineId, @Param("date") LocalDate date);
double getMaxUnbalance95(@Param("lineId") String lineId, @Param("date") LocalDate date);
}

View File

@@ -0,0 +1,20 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.harmonic.pojo.po.RMpPartHarmonicDetailD;
import com.njcn.harmonic.pojo.po.RMpPartHarmonicDetailM;
import org.apache.ibatis.annotations.Param;
import java.time.LocalDate;
/**
* RMpPartHarmonicDetailDMapper
*
* @author qijian
* @version 1.0.0
* @createTime 2022/12/5 - 15:21
*/
public interface RMpPartHarmonicDetailDMapper extends BaseMapper<RMpPartHarmonicDetailD> {
RMpPartHarmonicDetailM getPartSumByData(@Param("lineId") String lineId, @Param("startTime") LocalDate startTime, @Param("endTime") LocalDate endTime);
}

View File

@@ -0,0 +1,15 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.harmonic.pojo.po.RMpPartHarmonicDetailM;
/**
* RMpPartHarmonicDetailMMapper
*
* @author qijian
* @version 1.0.0
* @createTime 2022/12/12 - 15:21
*/
public interface RMpPartHarmonicDetailMMapper extends BaseMapper<RMpPartHarmonicDetailM> {
}

View File

@@ -0,0 +1,15 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.prepare.harmonic.pojo.mysql.po.line.RMpPassRateDPO;
/**
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2023/2/28 15:39【需求编号】
*
* @author clam
* @version V1.0.0
*/
public interface RMpPassRateDMapper extends MppBaseMapper<RMpPassRateDPO> {
}

View File

@@ -0,0 +1,15 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.prepare.harmonic.pojo.mysql.po.line.RMpPassRateMPO;
/**
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2023/2/28 15:39【需求编号】
*
* @author clam
* @version V1.0.0
*/
public interface RMpPassRateMMapper extends MppBaseMapper<RMpPassRateMPO> {
}

View File

@@ -0,0 +1,15 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.prepare.harmonic.pojo.mysql.po.line.RMpPassRateQPO;
/**
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2023/2/28 15:38【需求编号】
*
* @author clam
* @version V1.0.0
*/
public interface RMpPassRateQMapper extends MppBaseMapper<RMpPassRateQPO> {
}

View File

@@ -0,0 +1,15 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.prepare.harmonic.pojo.mysql.po.line.RMpPassRateYPO;
/**
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2023/2/28 15:36【需求编号】
*
* @author clam
* @version V1.0.0
*/
public interface RMpPassRateYMapper extends MppBaseMapper<RMpPassRateYPO> {
}

View File

@@ -0,0 +1,22 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.prepare.harmonic.pojo.mysql.po.line.RMpPltReportDPO;
import org.apache.ibatis.annotations.Param;
import java.time.LocalDate;
/**
*
* Description:
* 接口文档访问地址http://serverIP:port/swagger-ui.html
* Date: 2022/10/26 15:26【需求编号】
*
* @author clam
* @version V1.0.0
*/
public interface RMpPltReportDPOMapper extends MppBaseMapper<RMpPltReportDPO> {
double getMaxFlashing(@Param("lineId") String lineId, @Param("date") LocalDate date);
}

View File

@@ -0,0 +1,21 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.harmonic.pojo.po.RMpPollutionDPO;
import org.apache.ibatis.annotations.Param;
import java.util.Map;
/**
* <p>
* 监测点污区图统计日表 Mapper 接口
* </p>
*
* @author xiaoyao
* @since 2022-10-20
*/
public interface RMpPollutionDMapper extends BaseMapper<RMpPollutionDPO> {
int insertPollution(@Param("item") Map<String, Object> item);
}

View File

@@ -0,0 +1,20 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.harmonic.pojo.po.RMpSurplusHarmonicDetailD;
import com.njcn.harmonic.pojo.po.RMpSurplusHarmonicDetailM;
import org.apache.ibatis.annotations.Param;
import java.time.LocalDate;
/**
* RMpSurplusHarmonicDetailDMapper
*
* @author qijian
* @version 1.0.0
* @createTime 2022/12/8 - 15:21
*/
public interface RMpSurplusHarmonicDetailDMapper extends BaseMapper<RMpSurplusHarmonicDetailD> {
RMpSurplusHarmonicDetailM getSurplusSumByData(@Param("lineId") String lineId, @Param("startTime") LocalDate startTime, @Param("endTime") LocalDate endTime);
}

View File

@@ -0,0 +1,15 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.harmonic.pojo.po.RMpSurplusHarmonicDetailM;
/**
* RMpSurplusHarmonicDetailMMapper
*
* @author qijian
* @version 1.0.0
* @createTime 2022/12/12 - 15:21
*/
public interface RMpSurplusHarmonicDetailMMapper extends BaseMapper<RMpSurplusHarmonicDetailM> {
}

View File

@@ -0,0 +1,20 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.harmonic.pojo.po.RMpVThd;
import org.apache.ibatis.annotations.Param;
import java.util.Map;
/**
* <p>
* 谐波畸变率排名 Mapper 接口
* </p>
*
* @author xiaoyao
* @since 2022-11-07
*/
public interface RMpVThdMapper extends BaseMapper<RMpVThd> {
int insertRate(@Param("item") Map<String, Object> item);
}

View File

@@ -0,0 +1,14 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.device.pq.pojo.po.RStatAbnormalD;
/**
* RStatAbnormalDMapper
*
* @author qijian
* @date 2022/10/26
*/
public interface RStatAbnormalDMapper extends BaseMapper<RStatAbnormalD> {
}

View File

@@ -0,0 +1,21 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.harmonic.pojo.po.RStatPollutionOrgDPO;
import org.apache.ibatis.annotations.Param;
import java.util.Map;
/**
* <p>
* 单位污区图统计日表 Mapper 接口
* </p>
*
* @author xiaoyao
* @since 2022-10-20
*/
public interface RStatPollutionOrgDMapper extends BaseMapper<RStatPollutionOrgDPO> {
int insertPollution(@Param("item") Map<String, Object> item);
}

View File

@@ -0,0 +1,20 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.harmonic.pojo.po.RStatPollutionOrgMPO;
import org.apache.ibatis.annotations.Param;
import java.util.Map;
/**
* <p>
* 单位污区图统计月表 Mapper 接口
* </p>
*
* @author xiaoyao
* @since 2022-10-20
*/
public interface RStatPollutionOrgMMapper extends BaseMapper<RStatPollutionOrgMPO> {
int insertPollution(@Param("item") Map<String, Object> item);
}

View File

@@ -0,0 +1,20 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.harmonic.pojo.po.RStatPollutionOrgQPO;
import org.apache.ibatis.annotations.Param;
import java.util.Map;
/**
* <p>
* 单位污区图统计季表 Mapper 接口
* </p>
*
* @author xiaoyao
* @since 2022-10-20
*/
public interface RStatPollutionOrgQMapper extends BaseMapper<RStatPollutionOrgQPO> {
int insertPollution(@Param("item") Map<String, Object> item);
}

View File

@@ -0,0 +1,20 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.harmonic.pojo.po.RStatPollutionOrgYPO;
import org.apache.ibatis.annotations.Param;
import java.util.Map;
/**
* <p>
* 单位污区图统计年表 Mapper 接口
* </p>
*
* @author xiaoyao
* @since 2022-10-20
*/
public interface RStatPollutionOrgYMapper extends BaseMapper<RStatPollutionOrgYPO> {
int insertPollution(@Param("item") Map<String, Object> item);
}

View File

@@ -0,0 +1,21 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.harmonic.pojo.po.RStatPollutionSubstationDPO;
import org.apache.ibatis.annotations.Param;
import java.util.Map;
/**
* <p>
* 变电站污区图统计日表 Mapper 接口
* </p>
*
* @author xiaoyao
* @since 2022-10-20
*/
public interface RStatPollutionSubstationDMapper extends BaseMapper<RStatPollutionSubstationDPO> {
int insertPollution(@Param("item") Map<String, Object> item);
}

View File

@@ -0,0 +1,21 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.harmonic.pojo.po.RStatPollutionSubstationDPO;
import com.njcn.harmonic.pojo.po.RStatPollutionSubstationM;
import org.apache.ibatis.annotations.Param;
import java.util.Map;
/**
* <p>
* 变电站污区图统计月表 Mapper 接口
* </p>
*
* @author xiaoyao
* @since 2022-10-20
*/
public interface RStatPollutionSubstationMMapper extends BaseMapper<RStatPollutionSubstationM> {
int insertPollution(@Param("item") Map<String, Object> item);
}

View File

@@ -0,0 +1,20 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.harmonic.pojo.po.RStatPollutionSubstationQPO;
import org.apache.ibatis.annotations.Param;
import java.util.Map;
/**
* <p>
* 变电站污区图统计季表 Mapper 接口
* </p>
*
* @author xiaoyao
* @since 2022-10-20
*/
public interface RStatPollutionSubstationQMapper extends BaseMapper<RStatPollutionSubstationQPO> {
int insertPollution(@Param("item") Map<String, Object> item);
}

View File

@@ -0,0 +1,20 @@
package com.njcn.prepare.harmonic.mapper.mysql.line;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.harmonic.pojo.po.RStatPollutionSubstationYPO;
import org.apache.ibatis.annotations.Param;
import java.util.Map;
/**
* <p>
* 变电站污区图统计年表 Mapper 接口
* </p>
*
* @author xiaoyao
* @since 2022-10-20
*/
public interface RStatPollutionSubstationYMapper extends BaseMapper<RStatPollutionSubstationYPO> {
int insertPollution(@Param("item") Map<String, Object> item);
}

View File

@@ -0,0 +1,14 @@
<?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.prepare.harmonic.mapper.mysql.line.ExcelRptTempMapper">
<select id="getActiveTempList" resultType="com.njcn.harmonic.pojo.po.ExcelRptTemp">
SELECT
DISTINCT t1.*
FROM
sys_excel_rpt_temp t1
LEFT JOIN sys_dept_temp t2 on t1.Id = t2.temp_id
and t2.activation = '1'
</select>
</mapper>

View File

@@ -0,0 +1,514 @@
<?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.prepare.harmonic.mapper.mysql.line.LimitRatePOMapper">
<resultMap id="BaseResultMap" type="com.njcn.harmonic.pojo.po.LimitRatePO">
<!--@mbg.generated-->
<!--@Table limit_rate-->
<id column="line_id" property="lineId" />
<id column="phasic_type" property="phasicType" />
<id column="time" property="time" />
<result column="all_time" property="allTime" />
<result column="flicker_overtime" property="flickerOverTime" />
<result column="flicker_all_time" property="flickerAllTime" />
<result column="freq_dev_overtime" property="freqDevOverTime" />
<result column="voltage_dev_overtime" property="voltageDevOverTime" />
<result column="ubalance_overtime" property="uBalanceOverTime" />
<result column="uaberrance_overtime" property="uaberranceOverTime" />
<result column="i_neg_overtime" property="iNegOverTime" />
<result column="uharm_2_overtime" property="uHarm2OverTime" />
<result column="uharm_3_overtime" property="uharm3OverTime" />
<result column="uharm_4_overtime" property="uharm4OverTime" />
<result column="uharm_5_overtime" property="uharm5OverTime" />
<result column="uharm_6_overtime" property="uharm6OverTime" />
<result column="uharm_7_overtime" property="uharm7OverTime" />
<result column="uharm_8_overtime" property="uharm8OverTime" />
<result column="uharm_9_overtime" property="uharm9OverTime" />
<result column="uharm_10_overtime" property="uharm10OverTime" />
<result column="uharm_11_overtime" property="uharm11OverTime" />
<result column="uharm_12_overtime" property="uharm12OverTime" />
<result column="uharm_13_overtime" property="uharm13OverTime" />
<result column="uharm_14_overtime" property="uharm14OverTime" />
<result column="uharm_15_overtime" property="uharm15OverTime" />
<result column="uharm_16_overtime" property="uharm16OverTime" />
<result column="uharm_17_overtime" property="uharm17OverTime" />
<result column="uharm_18_overtime" property="uharm18OverTime" />
<result column="uharm_19_overtime" property="uharm19OverTime" />
<result column="uharm_20_overtime" property="uharm20OverTime" />
<result column="uharm_21_overtime" property="uharm21OverTime" />
<result column="uharm_22_overtime" property="uharm22OverTime" />
<result column="uharm_23_overtime" property="uharm23OverTime" />
<result column="uharm_24_overtime" property="uharm24OverTime" />
<result column="uharm_25_overtime" property="uharm25OverTime" />
<result column="iharm_2_overtime" property="iharm2OverTime" />
<result column="iharm_3_overtime" property="iharm3OverTime" />
<result column="iharm_4_overtime" property="iharm4OverTime" />
<result column="iharm_5_overtime" property="iharm5OverTime" />
<result column="iharm_6_overtime" property="iharm6OverTime" />
<result column="iharm_7_overtime" property="iharm7OverTime" />
<result column="iharm_8_overtime" property="iharm8OverTime" />
<result column="iharm_9_overtime" property="iharm9OverTime" />
<result column="iharm_10_overtime" property="iharm10OverTime" />
<result column="iharm_11_overtime" property="iharm11OverTime" />
<result column="iharm_12_overtime" property="iharm12OverTime" />
<result column="iharm_13_overtime" property="iharm13OverTime" />
<result column="iharm_14_overtime" property="iharm14OverTime" />
<result column="iharm_15_overtime" property="iharm15OverTime" />
<result column="iharm_16_overtime" property="iharm16OverTime" />
<result column="iharm_17_overtime" property="iharm17OverTime" />
<result column="iharm_18_overtime" property="iharm18OverTime" />
<result column="iharm_19_overtime" property="iharm19OverTime" />
<result column="iharm_20_overtime" property="iharm20OverTime" />
<result column="iharm_21_overtime" property="iharm21OverTime" />
<result column="iharm_22_overtime" property="iharm22OverTime" />
<result column="iharm_23_overtime" property="iharm23OverTime" />
<result column="iharm_24_overtime" property="iharm24OverTime" />
<result column="iharm_25_overtime" property="iharm25OverTime" />
<result column="inuharm_1_overtime" property="inuharm1OverTime" />
<result column="inuharm_2_overtime" property="inuharm2OverTime" />
<result column="inuharm_3_overtime" property="inuharm3OverTime" />
<result column="inuharm_4_overtime" property="inuharm4OverTime" />
<result column="inuharm_5_overtime" property="inuharm5OverTime" />
<result column="inuharm_6_overtime" property="inuharm6OverTime" />
<result column="inuharm_7_overtime" property="inuharm7OverTime" />
<result column="inuharm_8_overtime" property="inuharm8OverTime" />
<result column="inuharm_9_overtime" property="inuharm9OverTime" />
<result column="inuharm_10_overtime" property="inuharm10OverTime" />
<result column="inuharm_11_overtime" property="inuharm11OverTime" />
<result column="inuharm_12_overtime" property="inuharm12OverTime" />
<result column="inuharm_13_overtime" property="inuharm13OverTime" />
<result column="inuharm_14_overtime" property="inuharm14OverTime" />
<result column="inuharm_15_overtime" property="inuharm15OverTime" />
<result column="inuharm_16_overtime" property="inuharm16OverTime" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
line_id, phasic_type, `time`, all_time, flicker_overtime, flicker_all_time, freq_dev_overtime,
voltage_dev_overtime, ubalance_overtime, uaberrance_overtime, i_neg_overtime, uharm_2_overtime,
uharm_3_overtime, uharm_4_overtime, uharm_5_overtime, uharm_6_overtime, uharm_7_overtime,
uharm_8_overtime, uharm_9_overtime, uharm_10_overtime, uharm_11_overtime, uharm_12_overtime,
uharm_13_overtime, uharm_14_overtime, uharm_15_overtime, uharm_16_overtime, uharm_17_overtime,
uharm_18_overtime, uharm_19_overtime, uharm_20_overtime, uharm_21_overtime, uharm_22_overtime,
uharm_23_overtime, uharm_24_overtime, uharm_25_overtime, iharm_2_overtime, iharm_3_overtime,
iharm_4_overtime, iharm_5_overtime, iharm_6_overtime, iharm_7_overtime, iharm_8_overtime,
iharm_9_overtime, iharm_10_overtime, iharm_11_overtime, iharm_12_overtime, iharm_13_overtime,
iharm_14_overtime, iharm_15_overtime, iharm_16_overtime, iharm_17_overtime, iharm_18_overtime,
iharm_19_overtime, iharm_20_overtime, iharm_21_overtime, iharm_22_overtime, iharm_23_overtime,
iharm_24_overtime, iharm_25_overtime, inuharm_1_overtime, inuharm_2_overtime, inuharm_3_overtime,
inuharm_4_overtime, inuharm_5_overtime, inuharm_6_overtime, inuharm_7_overtime, inuharm_8_overtime,
inuharm_9_overtime, inuharm_10_overtime, inuharm_11_overtime, inuharm_12_overtime,
inuharm_13_overtime, inuharm_14_overtime, inuharm_15_overtime, inuharm_16_overtime
</sql>
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update limit_rate
<trim prefix="set" suffixOverrides=",">
<trim prefix="all_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.allTime}
</foreach>
</trim>
<trim prefix="flicker_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.flickerOverTime}
</foreach>
</trim>
<trim prefix="flicker_all_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.flickerAllTime}
</foreach>
</trim>
<trim prefix="freq_dev_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.freqDevOverTime}
</foreach>
</trim>
<trim prefix="voltage_dev_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.voltageDevOverTime}
</foreach>
</trim>
<trim prefix="ubalance_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.ubalanceOverTime}
</foreach>
</trim>
<trim prefix="uaberrance_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.uAberranceOverTime}
</foreach>
</trim>
<trim prefix="i_neg_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.iNegOverTime}
</foreach>
</trim>
<trim prefix="uharm_2_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.uharm2OverTime}
</foreach>
</trim>
<trim prefix="uharm_3_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.uharm3OverTime}
</foreach>
</trim>
<trim prefix="uharm_4_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.uharm4OverTime}
</foreach>
</trim>
<trim prefix="uharm_5_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.uharm5OverTime}
</foreach>
</trim>
<trim prefix="uharm_6_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.uharm6OverTime}
</foreach>
</trim>
<trim prefix="uharm_7_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.uharm7OverTime}
</foreach>
</trim>
<trim prefix="uharm_8_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.uharm8OverTime}
</foreach>
</trim>
<trim prefix="uharm_9_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.uharm9OverTime}
</foreach>
</trim>
<trim prefix="uharm_10_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.uharm10OverTime}
</foreach>
</trim>
<trim prefix="uharm_11_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.uharm11OverTime}
</foreach>
</trim>
<trim prefix="uharm_12_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.uharm12OverTime}
</foreach>
</trim>
<trim prefix="uharm_13_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.uharm13OverTime}
</foreach>
</trim>
<trim prefix="uharm_14_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.uharm14OverTime}
</foreach>
</trim>
<trim prefix="uharm_15_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.uharm15OverTime}
</foreach>
</trim>
<trim prefix="uharm_16_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.uharm16OverTime}
</foreach>
</trim>
<trim prefix="uharm_17_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.uharm17OverTime}
</foreach>
</trim>
<trim prefix="uharm_18_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.uharm18OverTime}
</foreach>
</trim>
<trim prefix="uharm_19_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.uharm19OverTime}
</foreach>
</trim>
<trim prefix="uharm_20_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.uharm20OverTime}
</foreach>
</trim>
<trim prefix="uharm_21_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.uharm21OverTime}
</foreach>
</trim>
<trim prefix="uharm_22_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.uharm22OverTime}
</foreach>
</trim>
<trim prefix="uharm_23_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.uharm23OverTime}
</foreach>
</trim>
<trim prefix="uharm_24_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.uharm24OverTime}
</foreach>
</trim>
<trim prefix="uharm_25_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.uharm25OverTime}
</foreach>
</trim>
<trim prefix="iharm_2_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.iharm2OverTime}
</foreach>
</trim>
<trim prefix="iharm_3_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.iharm3OverTime}
</foreach>
</trim>
<trim prefix="iharm_4_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.iharm4OverTime}
</foreach>
</trim>
<trim prefix="iharm_5_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.iharm5OverTime}
</foreach>
</trim>
<trim prefix="iharm_6_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.iharm6OverTime}
</foreach>
</trim>
<trim prefix="iharm_7_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.iharm7OverTime}
</foreach>
</trim>
<trim prefix="iharm_8_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.iharm8OverTime}
</foreach>
</trim>
<trim prefix="iharm_9_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.iharm9OverTime}
</foreach>
</trim>
<trim prefix="iharm_10_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.iharm10OverTime}
</foreach>
</trim>
<trim prefix="iharm_11_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.iharm11OverTime}
</foreach>
</trim>
<trim prefix="iharm_12_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.iharm12OverTime}
</foreach>
</trim>
<trim prefix="iharm_13_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.iharm13OverTime}
</foreach>
</trim>
<trim prefix="iharm_14_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.iharm14OverTime}
</foreach>
</trim>
<trim prefix="iharm_15_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.iharm15OverTime}
</foreach>
</trim>
<trim prefix="iharm_16_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.iharm16OverTime}
</foreach>
</trim>
<trim prefix="iharm_17_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.iharm17OverTime}
</foreach>
</trim>
<trim prefix="iharm_18_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.iharm18OverTime}
</foreach>
</trim>
<trim prefix="iharm_19_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.iharm19OverTime}
</foreach>
</trim>
<trim prefix="iharm_20_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.iharm20OverTime}
</foreach>
</trim>
<trim prefix="iharm_21_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.iharm21OverTime}
</foreach>
</trim>
<trim prefix="iharm_22_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.iharm22OverTime}
</foreach>
</trim>
<trim prefix="iharm_23_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.iharm23OverTime}
</foreach>
</trim>
<trim prefix="iharm_24_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.iharm24OverTime}
</foreach>
</trim>
<trim prefix="iharm_25_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.iharm25OverTime}
</foreach>
</trim>
<trim prefix="inuharm_1_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.inuharm1OverTime}
</foreach>
</trim>
<trim prefix="inuharm_2_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.inuharm2OverTime}
</foreach>
</trim>
<trim prefix="inuharm_3_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.inuharm3OverTime}
</foreach>
</trim>
<trim prefix="inuharm_4_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.inuharm4OverTime}
</foreach>
</trim>
<trim prefix="inuharm_5_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.inuharm5OverTime}
</foreach>
</trim>
<trim prefix="inuharm_6_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.inuharm6OverTime}
</foreach>
</trim>
<trim prefix="inuharm_7_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.inuharm7OverTime}
</foreach>
</trim>
<trim prefix="inuharm_8_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.inuharm8OverTime}
</foreach>
</trim>
<trim prefix="inuharm_9_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.inuharm9OverTime}
</foreach>
</trim>
<trim prefix="inuharm_10_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.inuharm10OverTime}
</foreach>
</trim>
<trim prefix="inuharm_11_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.inuharm11OverTime}
</foreach>
</trim>
<trim prefix="inuharm_12_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.inuharm12OverTime}
</foreach>
</trim>
<trim prefix="inuharm_13_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.inuharm13OverTime}
</foreach>
</trim>
<trim prefix="inuharm_14_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.inuharm14OverTime}
</foreach>
</trim>
<trim prefix="inuharm_15_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.inuharm15OverTime}
</foreach>
</trim>
<trim prefix="inuharm_16_overtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when line_id = #{item.lineId} then #{item.inuharm16OverTime}
</foreach>
</trim>
</trim>
where line_id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.lineId}
</foreach>
</update>
<insert id="batchInsert" parameterType="map">
<!--@mbg.generated-->
insert into limit_rate
(line_id, phasic_type, `time`, all_time, flicker_overtime, flicker_all_time, freq_dev_overtime,
voltage_dev_overtime, ubalance_overtime, uaberrance_overtime, i_neg_overtime, uharm_2_overtime,
uharm_3_overtime, uharm_4_overtime, uharm_5_overtime, uharm_6_overtime, uharm_7_overtime,
uharm_8_overtime, uharm_9_overtime, uharm_10_overtime, uharm_11_overtime, uharm_12_overtime,
uharm_13_overtime, uharm_14_overtime, uharm_15_overtime, uharm_16_overtime, uharm_17_overtime,
uharm_18_overtime, uharm_19_overtime, uharm_20_overtime, uharm_21_overtime, uharm_22_overtime,
uharm_23_overtime, uharm_24_overtime, uharm_25_overtime, iharm_2_overtime, iharm_3_overtime,
iharm_4_overtime, iharm_5_overtime, iharm_6_overtime, iharm_7_overtime, iharm_8_overtime,
iharm_9_overtime, iharm_10_overtime, iharm_11_overtime, iharm_12_overtime, iharm_13_overtime,
iharm_14_overtime, iharm_15_overtime, iharm_16_overtime, iharm_17_overtime, iharm_18_overtime,
iharm_19_overtime, iharm_20_overtime, iharm_21_overtime, iharm_22_overtime, iharm_23_overtime,
iharm_24_overtime, iharm_25_overtime, inuharm_1_overtime, inuharm_2_overtime, inuharm_3_overtime,
inuharm_4_overtime, inuharm_5_overtime, inuharm_6_overtime, inuharm_7_overtime,
inuharm_8_overtime, inuharm_9_overtime, inuharm_10_overtime, inuharm_11_overtime,
inuharm_12_overtime, inuharm_13_overtime, inuharm_14_overtime, inuharm_15_overtime,
inuharm_16_overtime)
values
<foreach collection="list" item="item" separator=",">
(#{item.lineId}, #{item.phasicType}, #{item.time}, #{item.allTime}, #{item.flickerOverTime},
#{item.flickerAllTime}, #{item.freqDevOverTime}, #{item.voltageDevOverTime}, #{item.ubalanceOverTime},
#{item.uaberranceOverTime}, #{item.iNegOverTime}, #{item.uharm2OverTime}, #{item.uharm3OverTime},
#{item.uharm4OverTime}, #{item.uharm5OverTime}, #{item.uharm6OverTime}, #{item.uharm7OverTime},
#{item.uharm8OverTime}, #{item.uharm9OverTime}, #{item.uharm10OverTime}, #{item.uharm11OverTime},
#{item.uharm12OverTime}, #{item.uharm13OverTime}, #{item.uharm14OverTime}, #{item.uharm15OverTime},
#{item.uharm16OverTime}, #{item.uharm17OverTime}, #{item.uharm18OverTime}, #{item.uharm19OverTime},
#{item.uharm20OverTime}, #{item.uharm21OverTime}, #{item.uharm22OverTime}, #{item.uharm23OverTime},
#{item.uharm24OverTime}, #{item.uharm25OverTime}, #{item.iharm2OverTime}, #{item.iharm3OverTime},
#{item.iharm4OverTime}, #{item.iharm5OverTime}, #{item.iharm6OverTime}, #{item.iharm7OverTime},
#{item.iharm8OverTime}, #{item.iharm9OverTime}, #{item.iharm10OverTime}, #{item.iharm11OverTime},
#{item.iharm12OverTime}, #{item.iharm13OverTime}, #{item.iharm14OverTime}, #{item.iharm15OverTime},
#{item.iharm16OverTime}, #{item.iharm17OverTime}, #{item.iharm18OverTime}, #{item.iharm19OverTime},
#{item.iharm20OverTime}, #{item.iharm21OverTime}, #{item.iharm22OverTime}, #{item.iharm23OverTime},
#{item.iharm24OverTime}, #{item.iharm25OverTime}, #{item.inuharm1OverTime}, #{item.inuharm2OverTime},
#{item.inuharm3OverTime}, #{item.inuharm4OverTime}, #{item.inuharm5OverTime}, #{item.inuharm6OverTime},
#{item.inuharm7OverTime}, #{item.inuharm8OverTime}, #{item.inuharm9OverTime}, #{item.inuharm10OverTime},
#{item.inuharm11OverTime}, #{item.inuharm12OverTime}, #{item.inuharm13OverTime},
#{item.inuharm14OverTime}, #{item.inuharm15OverTime}, #{item.inuharm16OverTime}
)
</foreach>
</insert>
</mapper>

View File

@@ -0,0 +1,24 @@
<?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.prepare.harmonic.mapper.mysql.line.RMpEventDetailDMapper">
<select id="getSagTimes" resultType="int">
SELECT
IFNULL( MAX( sag_times ), 0 )
FROM
`r_mp_event_detail_d`
WHERE
measurement_point_id = #{lineId}
<![CDATA[AND DATE_FORMAT(data_date, '%Y-%m-%d') = #{date}]]>
</select>
<select id="getInterruptTimes" resultType="int">
SELECT
IFNULL( MAX( interrupt_times ), 0 )
FROM
`r_mp_event_detail_d`
WHERE
measurement_point_id = #{lineId}
<![CDATA[AND DATE_FORMAT(data_date, '%Y-%m-%d') = #{date}]]>
</select>
</mapper>

View File

@@ -0,0 +1,17 @@
<?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.prepare.harmonic.mapper.mysql.line.RMpEventDetailMMapper">
<resultMap id="BaseResultMap" type="com.njcn.harmonic.pojo.po.RMpEventDetailMPO">
<!--@mbg.generated-->
<!--@Table r_mp_event_detail_m-->
<id column="measurement_point_id" jdbcType="VARCHAR" property="measurementPointId" />
<id column="data_date" jdbcType="TIMESTAMP" property="dataDate" />
<result column="swell_times" jdbcType="INTEGER" property="swellTimes" />
<result column="sag_times" jdbcType="INTEGER" property="sagTimes" />
<result column="interrupt_times" jdbcType="INTEGER" property="interruptTimes" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
measurement_point_id, data_date, swell_times, sag_times, interrupt_times
</sql>
</mapper>

View File

@@ -0,0 +1,17 @@
<?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.prepare.harmonic.mapper.mysql.line.RMpEventDetailQMapper">
<resultMap id="BaseResultMap" type="com.njcn.harmonic.pojo.po.RMpEventDetailQPO">
<!--@mbg.generated-->
<!--@Table r_mp_event_detail_q-->
<id column="measurement_point_id" jdbcType="VARCHAR" property="measurementPointId" />
<id column="data_date" jdbcType="TIMESTAMP" property="dataDate" />
<result column="swell_times" jdbcType="INTEGER" property="swellTimes" />
<result column="sag_times" jdbcType="INTEGER" property="sagTimes" />
<result column="interrupt_times" jdbcType="INTEGER" property="interruptTimes" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
measurement_point_id, data_date, swell_times, sag_times, interrupt_times
</sql>
</mapper>

View File

@@ -0,0 +1,17 @@
<?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.prepare.harmonic.mapper.mysql.line.RMpEventDetailYMapper">
<resultMap id="BaseResultMap" type="com.njcn.harmonic.pojo.po.RMpEventDetailYPO">
<!--@mbg.generated-->
<!--@Table r_mp_event_detail_y-->
<id column="measurement_point_id" jdbcType="VARCHAR" property="measurementPointId" />
<id column="data_date" jdbcType="TIMESTAMP" property="dataDate" />
<result column="swell_times" jdbcType="INTEGER" property="swellTimes" />
<result column="sag_times" jdbcType="INTEGER" property="sagTimes" />
<result column="interrupt_times" jdbcType="INTEGER" property="interruptTimes" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
measurement_point_id, data_date, swell_times, sag_times, interrupt_times
</sql>
</mapper>

View File

@@ -0,0 +1,25 @@
<?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.prepare.harmonic.mapper.mysql.line.RMpFlickerReportDPOMapper">
<resultMap id="BaseResultMap" type="com.njcn.prepare.harmonic.pojo.mysql.po.line.RMpFlickerReportDPO">
<!--@mbg.generated-->
<!--@Table r_mp_flicker_report_d-->
<id column="measurement_point_id" jdbcType="VARCHAR" property="measurementPointId" />
<id column="data_date" jdbcType="DATE" property="dataDate" />
<id column="phase" jdbcType="VARCHAR" property="phase" />
<result column="VOLTAGE_FLUCTUATION_MAX" jdbcType="FLOAT" property="voltageFluctuationMax" />
<result column="VOLTAGE_FLUCTUATION_MIN" jdbcType="FLOAT" property="voltageFluctuationMin" />
<result column="VOLTAGE_FLUCTUATION_AVG" jdbcType="FLOAT" property="voltageFluctuationAvg" />
<result column="VOLTAGE_FLUCTUATION_95" jdbcType="FLOAT" property="voltageFluctuation95" />
<result column="SHORT_TERM_SEVERITY_MAX" jdbcType="FLOAT" property="shortTermSeverityMax" />
<result column="SHORT_TERM_SEVERITY_MIN" jdbcType="FLOAT" property="shortTermSeverityMin" />
<result column="SHORT_TERM_SEVERITY_AVG" jdbcType="FLOAT" property="shortTermSeverityAvg" />
<result column="SHORT_TERM_SEVERITY_95" jdbcType="FLOAT" property="shortTermSeverity95" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
measurement_point_id, data_date, phase, VOLTAGE_FLUCTUATION_MAX, VOLTAGE_FLUCTUATION_MIN,
VOLTAGE_FLUCTUATION_AVG, VOLTAGE_FLUCTUATION_95, SHORT_TERM_SEVERITY_MAX, SHORT_TERM_SEVERITY_MIN,
SHORT_TERM_SEVERITY_AVG, SHORT_TERM_SEVERITY_95
</sql>
</mapper>

View File

@@ -0,0 +1,286 @@
<?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.prepare.harmonic.mapper.mysql.line.RMpHarmonicIMagReportDPOMapper">
<resultMap id="BaseResultMap" type="com.njcn.harmonic.pojo.po.RMpHarmonicIMagReportD">
<!--@mbg.generated-->
<!--@Table r_mp_harmonic_i_mag_report_d-->
<id column="measurement_point_id" jdbcType="VARCHAR" property="measurementPointId" />
<id column="data_date" jdbcType="DATE" property="dataDate" />
<id column="phase" jdbcType="VARCHAR" property="phase" />
<result column="fundamental_current_max" jdbcType="FLOAT" property="fundamentalCurrentMax" />
<result column="fundamental_current_min" jdbcType="FLOAT" property="fundamentalCurrentMin" />
<result column="fundamental_current_avg" jdbcType="FLOAT" property="fundamentalCurrentAvg" />
<result column="fundamental_current_95" jdbcType="FLOAT" property="fundamentalCurrent95" />
<result column="harmonic_current_thd_max" jdbcType="FLOAT" property="harmonicCurrentThdMax" />
<result column="harmonic_current_thd_min" jdbcType="FLOAT" property="harmonicCurrentThdMin" />
<result column="harmonic_current_thd_avg" jdbcType="FLOAT" property="harmonicCurrentThdAvg" />
<result column="harmonic_current_thd_95" jdbcType="FLOAT" property="harmonicCurrentThd95" />
<result column="harmonic_current_effective_2_max" jdbcType="FLOAT" property="harmonicCurrentEffective2Max" />
<result column="harmonic_current_effective_2_min" jdbcType="FLOAT" property="harmonicCurrentEffective2Min" />
<result column="harmonic_current_effective_2_avg" jdbcType="FLOAT" property="harmonicCurrentEffective2Avg" />
<result column="harmonic_current_effective_2_95" jdbcType="FLOAT" property="harmonicCurrentEffective295" />
<result column="harmonic_current_effective_3_max" jdbcType="FLOAT" property="harmonicCurrentEffective3Max" />
<result column="harmonic_current_effective_3_min" jdbcType="FLOAT" property="harmonicCurrentEffective3Min" />
<result column="harmonic_current_effective_3_avg" jdbcType="FLOAT" property="harmonicCurrentEffective3Avg" />
<result column="harmonic_current_effective_3_95" jdbcType="FLOAT" property="harmonicCurrentEffective395" />
<result column="harmonic_current_effective_4_max" jdbcType="FLOAT" property="harmonicCurrentEffective4Max" />
<result column="harmonic_current_effective_4_min" jdbcType="FLOAT" property="harmonicCurrentEffective4Min" />
<result column="harmonic_current_effective_4_avg" jdbcType="FLOAT" property="harmonicCurrentEffective4Avg" />
<result column="harmonic_current_effective_4_95" jdbcType="FLOAT" property="harmonicCurrentEffective495" />
<result column="harmonic_current_effective_5_max" jdbcType="FLOAT" property="harmonicCurrentEffective5Max" />
<result column="harmonic_current_effective_5_min" jdbcType="FLOAT" property="harmonicCurrentEffective5Min" />
<result column="harmonic_current_effective_5_avg" jdbcType="FLOAT" property="harmonicCurrentEffective5Avg" />
<result column="harmonic_current_effective_5_95" jdbcType="FLOAT" property="harmonicCurrentEffective595" />
<result column="harmonic_current_effective_6_max" jdbcType="FLOAT" property="harmonicCurrentEffective6Max" />
<result column="harmonic_current_effective_6_min" jdbcType="FLOAT" property="harmonicCurrentEffective6Min" />
<result column="harmonic_current_effective_6_avg" jdbcType="FLOAT" property="harmonicCurrentEffective6Avg" />
<result column="harmonic_current_effective_6_95" jdbcType="FLOAT" property="harmonicCurrentEffective695" />
<result column="harmonic_current_effective_7_max" jdbcType="FLOAT" property="harmonicCurrentEffective7Max" />
<result column="harmonic_current_effective_7_min" jdbcType="FLOAT" property="harmonicCurrentEffective7Min" />
<result column="harmonic_current_effective_7_avg" jdbcType="FLOAT" property="harmonicCurrentEffective7Avg" />
<result column="harmonic_current_effective_7_95" jdbcType="FLOAT" property="harmonicCurrentEffective795" />
<result column="harmonic_current_effective_8_max" jdbcType="FLOAT" property="harmonicCurrentEffective8Max" />
<result column="harmonic_current_effective_8_min" jdbcType="FLOAT" property="harmonicCurrentEffective8Min" />
<result column="harmonic_current_effective_8_avg" jdbcType="FLOAT" property="harmonicCurrentEffective8Avg" />
<result column="harmonic_current_effective_8_95" jdbcType="FLOAT" property="harmonicCurrentEffective895" />
<result column="harmonic_current_effective_9_max" jdbcType="FLOAT" property="harmonicCurrentEffective9Max" />
<result column="harmonic_current_effective_9_min" jdbcType="FLOAT" property="harmonicCurrentEffective9Min" />
<result column="harmonic_current_effective_9_avg" jdbcType="FLOAT" property="harmonicCurrentEffective9Avg" />
<result column="harmonic_current_effective_9_95" jdbcType="FLOAT" property="harmonicCurrentEffective995" />
<result column="harmonic_current_effective_10_max" jdbcType="FLOAT" property="harmonicCurrentEffective10Max" />
<result column="harmonic_current_effective_10_min" jdbcType="FLOAT" property="harmonicCurrentEffective10Min" />
<result column="harmonic_current_effective_10_avg" jdbcType="FLOAT" property="harmonicCurrentEffective10Avg" />
<result column="harmonic_current_effective_10_95" jdbcType="FLOAT" property="harmonicCurrentEffective1095" />
<result column="harmonic_current_effective_11_max" jdbcType="FLOAT" property="harmonicCurrentEffective11Max" />
<result column="harmonic_current_effective_11_min" jdbcType="FLOAT" property="harmonicCurrentEffective11Min" />
<result column="harmonic_current_effective_11_avg" jdbcType="FLOAT" property="harmonicCurrentEffective11Avg" />
<result column="harmonic_current_effective_11_95" jdbcType="FLOAT" property="harmonicCurrentEffective1195" />
<result column="harmonic_current_effective_12_max" jdbcType="FLOAT" property="harmonicCurrentEffective12Max" />
<result column="harmonic_current_effective_12_min" jdbcType="FLOAT" property="harmonicCurrentEffective12Min" />
<result column="harmonic_current_effective_12_avg" jdbcType="FLOAT" property="harmonicCurrentEffective12Avg" />
<result column="harmonic_current_effective_12_95" jdbcType="FLOAT" property="harmonicCurrentEffective1295" />
<result column="harmonic_current_effective_13_max" jdbcType="FLOAT" property="harmonicCurrentEffective13Max" />
<result column="harmonic_current_effective_13_min" jdbcType="FLOAT" property="harmonicCurrentEffective13Min" />
<result column="harmonic_current_effective_13_avg" jdbcType="FLOAT" property="harmonicCurrentEffective13Avg" />
<result column="harmonic_current_effective_13_95" jdbcType="FLOAT" property="harmonicCurrentEffective1395" />
<result column="harmonic_current_effective_14_max" jdbcType="FLOAT" property="harmonicCurrentEffective14Max" />
<result column="harmonic_current_effective_14_min" jdbcType="FLOAT" property="harmonicCurrentEffective14Min" />
<result column="harmonic_current_effective_14_avg" jdbcType="FLOAT" property="harmonicCurrentEffective14Avg" />
<result column="harmonic_current_effective_14_95" jdbcType="FLOAT" property="harmonicCurrentEffective1495" />
<result column="harmonic_current_effective_15_max" jdbcType="FLOAT" property="harmonicCurrentEffective15Max" />
<result column="harmonic_current_effective_15_min" jdbcType="FLOAT" property="harmonicCurrentEffective15Min" />
<result column="harmonic_current_effective_15_avg" jdbcType="FLOAT" property="harmonicCurrentEffective15Avg" />
<result column="harmonic_current_effective_15_95" jdbcType="FLOAT" property="harmonicCurrentEffective1595" />
<result column="harmonic_current_effective_16_max" jdbcType="FLOAT" property="harmonicCurrentEffective16Max" />
<result column="harmonic_current_effective_16_min" jdbcType="FLOAT" property="harmonicCurrentEffective16Min" />
<result column="harmonic_current_effective_16_avg" jdbcType="FLOAT" property="harmonicCurrentEffective16Avg" />
<result column="harmonic_current_effective_16_95" jdbcType="FLOAT" property="harmonicCurrentEffective1695" />
<result column="harmonic_current_effective_17_max" jdbcType="FLOAT" property="harmonicCurrentEffective17Max" />
<result column="harmonic_current_effective_17_min" jdbcType="FLOAT" property="harmonicCurrentEffective17Min" />
<result column="harmonic_current_effective_17_avg" jdbcType="FLOAT" property="harmonicCurrentEffective17Avg" />
<result column="harmonic_current_effective_17_95" jdbcType="FLOAT" property="harmonicCurrentEffective1795" />
<result column="harmonic_current_effective_18_max" jdbcType="FLOAT" property="harmonicCurrentEffective18Max" />
<result column="harmonic_current_effective_18_min" jdbcType="FLOAT" property="harmonicCurrentEffective18Min" />
<result column="harmonic_current_effective_18_avg" jdbcType="FLOAT" property="harmonicCurrentEffective18Avg" />
<result column="harmonic_current_effective_18_95" jdbcType="FLOAT" property="harmonicCurrentEffective1895" />
<result column="harmonic_current_effective_19_max" jdbcType="FLOAT" property="harmonicCurrentEffective19Max" />
<result column="harmonic_current_effective_19_min" jdbcType="FLOAT" property="harmonicCurrentEffective19Min" />
<result column="harmonic_current_effective_19_avg" jdbcType="FLOAT" property="harmonicCurrentEffective19Avg" />
<result column="harmonic_current_effective_19_95" jdbcType="FLOAT" property="harmonicCurrentEffective1995" />
<result column="harmonic_current_effective_20_max" jdbcType="FLOAT" property="harmonicCurrentEffective20Max" />
<result column="harmonic_current_effective_20_min" jdbcType="FLOAT" property="harmonicCurrentEffective20Min" />
<result column="harmonic_current_effective_20_avg" jdbcType="FLOAT" property="harmonicCurrentEffective20Avg" />
<result column="harmonic_current_effective_20_95" jdbcType="FLOAT" property="harmonicCurrentEffective2095" />
<result column="harmonic_current_effective_21_max" jdbcType="FLOAT" property="harmonicCurrentEffective21Max" />
<result column="harmonic_current_effective_21_min" jdbcType="FLOAT" property="harmonicCurrentEffective21Min" />
<result column="harmonic_current_effective_21_avg" jdbcType="FLOAT" property="harmonicCurrentEffective21Avg" />
<result column="harmonic_current_effective_21_95" jdbcType="FLOAT" property="harmonicCurrentEffective2195" />
<result column="harmonic_current_effective_22_max" jdbcType="FLOAT" property="harmonicCurrentEffective22Max" />
<result column="harmonic_current_effective_22_min" jdbcType="FLOAT" property="harmonicCurrentEffective22Min" />
<result column="harmonic_current_effective_22_avg" jdbcType="FLOAT" property="harmonicCurrentEffective22Avg" />
<result column="harmonic_current_effective_22_95" jdbcType="FLOAT" property="harmonicCurrentEffective2295" />
<result column="harmonic_current_effective_23_max" jdbcType="FLOAT" property="harmonicCurrentEffective23Max" />
<result column="harmonic_current_effective_23_min" jdbcType="FLOAT" property="harmonicCurrentEffective23Min" />
<result column="harmonic_current_effective_23_avg" jdbcType="FLOAT" property="harmonicCurrentEffective23Avg" />
<result column="harmonic_current_effective_23_95" jdbcType="FLOAT" property="harmonicCurrentEffective2395" />
<result column="harmonic_current_effective_24_max" jdbcType="FLOAT" property="harmonicCurrentEffective24Max" />
<result column="harmonic_current_effective_24_min" jdbcType="FLOAT" property="harmonicCurrentEffective24Min" />
<result column="harmonic_current_effective_24_avg" jdbcType="FLOAT" property="harmonicCurrentEffective24Avg" />
<result column="harmonic_current_effective_24_95" jdbcType="FLOAT" property="harmonicCurrentEffective2495" />
<result column="harmonic_current_effective_25_max" jdbcType="FLOAT" property="harmonicCurrentEffective25Max" />
<result column="harmonic_current_effective_25_min" jdbcType="FLOAT" property="harmonicCurrentEffective25Min" />
<result column="harmonic_current_effective_25_avg" jdbcType="FLOAT" property="harmonicCurrentEffective25Avg" />
<result column="harmonic_current_effective_25_95" jdbcType="FLOAT" property="harmonicCurrentEffective2595" />
<result column="harmonic_current_effective_26_max" jdbcType="FLOAT" property="harmonicCurrentEffective26Max" />
<result column="harmonic_current_effective_26_min" jdbcType="FLOAT" property="harmonicCurrentEffective26Min" />
<result column="harmonic_current_effective_26_avg" jdbcType="FLOAT" property="harmonicCurrentEffective26Avg" />
<result column="harmonic_current_effective_26_95" jdbcType="FLOAT" property="harmonicCurrentEffective2695" />
<result column="harmonic_current_effective_27_max" jdbcType="FLOAT" property="harmonicCurrentEffective27Max" />
<result column="harmonic_current_effective_27_min" jdbcType="FLOAT" property="harmonicCurrentEffective27Min" />
<result column="harmonic_current_effective_27_avg" jdbcType="FLOAT" property="harmonicCurrentEffective27Avg" />
<result column="harmonic_current_effective_27_95" jdbcType="FLOAT" property="harmonicCurrentEffective2795" />
<result column="harmonic_current_effective_28_max" jdbcType="FLOAT" property="harmonicCurrentEffective28Max" />
<result column="harmonic_current_effective_28_min" jdbcType="FLOAT" property="harmonicCurrentEffective28Min" />
<result column="harmonic_current_effective_28_avg" jdbcType="FLOAT" property="harmonicCurrentEffective28Avg" />
<result column="harmonic_current_effective_28_95" jdbcType="FLOAT" property="harmonicCurrentEffective2895" />
<result column="harmonic_current_effective_29_max" jdbcType="FLOAT" property="harmonicCurrentEffective29Max" />
<result column="harmonic_current_effective_29_min" jdbcType="FLOAT" property="harmonicCurrentEffective29Min" />
<result column="harmonic_current_effective_29_avg" jdbcType="FLOAT" property="harmonicCurrentEffective29Avg" />
<result column="harmonic_current_effective_29_95" jdbcType="FLOAT" property="harmonicCurrentEffective2995" />
<result column="harmonic_current_effective_30_max" jdbcType="FLOAT" property="harmonicCurrentEffective30Max" />
<result column="harmonic_current_effective_30_min" jdbcType="FLOAT" property="harmonicCurrentEffective30Min" />
<result column="harmonic_current_effective_30_avg" jdbcType="FLOAT" property="harmonicCurrentEffective30Avg" />
<result column="harmonic_current_effective_30_95" jdbcType="FLOAT" property="harmonicCurrentEffective3095" />
<result column="harmonic_current_effective_31_max" jdbcType="FLOAT" property="harmonicCurrentEffective31Max" />
<result column="harmonic_current_effective_31_min" jdbcType="FLOAT" property="harmonicCurrentEffective31Min" />
<result column="harmonic_current_effective_31_avg" jdbcType="FLOAT" property="harmonicCurrentEffective31Avg" />
<result column="harmonic_current_effective_31_95" jdbcType="FLOAT" property="harmonicCurrentEffective3195" />
<result column="harmonic_current_effective_32_max" jdbcType="FLOAT" property="harmonicCurrentEffective32Max" />
<result column="harmonic_current_effective_32_min" jdbcType="FLOAT" property="harmonicCurrentEffective32Min" />
<result column="harmonic_current_effective_32_avg" jdbcType="FLOAT" property="harmonicCurrentEffective32Avg" />
<result column="harmonic_current_effective_32_95" jdbcType="FLOAT" property="harmonicCurrentEffective3295" />
<result column="harmonic_current_effective_33_max" jdbcType="FLOAT" property="harmonicCurrentEffective33Max" />
<result column="harmonic_current_effective_33_min" jdbcType="FLOAT" property="harmonicCurrentEffective33Min" />
<result column="harmonic_current_effective_33_avg" jdbcType="FLOAT" property="harmonicCurrentEffective33Avg" />
<result column="harmonic_current_effective_33_95" jdbcType="FLOAT" property="harmonicCurrentEffective3395" />
<result column="harmonic_current_effective_34_max" jdbcType="FLOAT" property="harmonicCurrentEffective34Max" />
<result column="harmonic_current_effective_34_min" jdbcType="FLOAT" property="harmonicCurrentEffective34Min" />
<result column="harmonic_current_effective_34_avg" jdbcType="FLOAT" property="harmonicCurrentEffective34Avg" />
<result column="harmonic_current_effective_34_95" jdbcType="FLOAT" property="harmonicCurrentEffective3495" />
<result column="harmonic_current_effective_35_max" jdbcType="FLOAT" property="harmonicCurrentEffective35Max" />
<result column="harmonic_current_effective_35_min" jdbcType="FLOAT" property="harmonicCurrentEffective35Min" />
<result column="harmonic_current_effective_35_avg" jdbcType="FLOAT" property="harmonicCurrentEffective35Avg" />
<result column="harmonic_current_effective_35_95" jdbcType="FLOAT" property="harmonicCurrentEffective3595" />
<result column="harmonic_current_effective_36_max" jdbcType="FLOAT" property="harmonicCurrentEffective36Max" />
<result column="harmonic_current_effective_36_min" jdbcType="FLOAT" property="harmonicCurrentEffective36Min" />
<result column="harmonic_current_effective_36_avg" jdbcType="FLOAT" property="harmonicCurrentEffective36Avg" />
<result column="harmonic_current_effective_36_95" jdbcType="FLOAT" property="harmonicCurrentEffective3695" />
<result column="harmonic_current_effective_37_max" jdbcType="FLOAT" property="harmonicCurrentEffective37Max" />
<result column="harmonic_current_effective_37_min" jdbcType="FLOAT" property="harmonicCurrentEffective37Min" />
<result column="harmonic_current_effective_37_avg" jdbcType="FLOAT" property="harmonicCurrentEffective37Avg" />
<result column="harmonic_current_effective_37_95" jdbcType="FLOAT" property="harmonicCurrentEffective3795" />
<result column="harmonic_current_effective_38_max" jdbcType="FLOAT" property="harmonicCurrentEffective38Max" />
<result column="harmonic_current_effective_38_min" jdbcType="FLOAT" property="harmonicCurrentEffective38Min" />
<result column="harmonic_current_effective_38_avg" jdbcType="FLOAT" property="harmonicCurrentEffective38Avg" />
<result column="harmonic_current_effective_38_95" jdbcType="FLOAT" property="harmonicCurrentEffective3895" />
<result column="harmonic_current_effective_39_max" jdbcType="FLOAT" property="harmonicCurrentEffective39Max" />
<result column="harmonic_current_effective_39_min" jdbcType="FLOAT" property="harmonicCurrentEffective39Min" />
<result column="harmonic_current_effective_39_avg" jdbcType="FLOAT" property="harmonicCurrentEffective39Avg" />
<result column="harmonic_current_effective_39_95" jdbcType="FLOAT" property="harmonicCurrentEffective3995" />
<result column="harmonic_current_effective_40_max" jdbcType="FLOAT" property="harmonicCurrentEffective40Max" />
<result column="harmonic_current_effective_40_min" jdbcType="FLOAT" property="harmonicCurrentEffective40Min" />
<result column="harmonic_current_effective_40_avg" jdbcType="FLOAT" property="harmonicCurrentEffective40Avg" />
<result column="harmonic_current_effective_40_95" jdbcType="FLOAT" property="harmonicCurrentEffective4095" />
<result column="harmonic_current_effective_41_max" jdbcType="FLOAT" property="harmonicCurrentEffective41Max" />
<result column="harmonic_current_effective_41_min" jdbcType="FLOAT" property="harmonicCurrentEffective41Min" />
<result column="harmonic_current_effective_41_avg" jdbcType="FLOAT" property="harmonicCurrentEffective41Avg" />
<result column="harmonic_current_effective_41_95" jdbcType="FLOAT" property="harmonicCurrentEffective4195" />
<result column="harmonic_current_effective_42_max" jdbcType="FLOAT" property="harmonicCurrentEffective42Max" />
<result column="harmonic_current_effective_42_min" jdbcType="FLOAT" property="harmonicCurrentEffective42Min" />
<result column="harmonic_current_effective_42_avg" jdbcType="FLOAT" property="harmonicCurrentEffective42Avg" />
<result column="harmonic_current_effective_42_95" jdbcType="FLOAT" property="harmonicCurrentEffective4295" />
<result column="harmonic_current_effective_43_max" jdbcType="FLOAT" property="harmonicCurrentEffective43Max" />
<result column="harmonic_current_effective_43_min" jdbcType="FLOAT" property="harmonicCurrentEffective43Min" />
<result column="harmonic_current_effective_43_avg" jdbcType="FLOAT" property="harmonicCurrentEffective43Avg" />
<result column="harmonic_current_effective_43_95" jdbcType="FLOAT" property="harmonicCurrentEffective4395" />
<result column="harmonic_current_effective_44_max" jdbcType="FLOAT" property="harmonicCurrentEffective44Max" />
<result column="harmonic_current_effective_44_min" jdbcType="FLOAT" property="harmonicCurrentEffective44Min" />
<result column="harmonic_current_effective_44_avg" jdbcType="FLOAT" property="harmonicCurrentEffective44Avg" />
<result column="harmonic_current_effective_44_95" jdbcType="FLOAT" property="harmonicCurrentEffective4495" />
<result column="harmonic_current_effective_45_max" jdbcType="FLOAT" property="harmonicCurrentEffective45Max" />
<result column="harmonic_current_effective_45_min" jdbcType="FLOAT" property="harmonicCurrentEffective45Min" />
<result column="harmonic_current_effective_45_avg" jdbcType="FLOAT" property="harmonicCurrentEffective45Avg" />
<result column="harmonic_current_effective_45_95" jdbcType="FLOAT" property="harmonicCurrentEffective4595" />
<result column="harmonic_current_effective_46_max" jdbcType="FLOAT" property="harmonicCurrentEffective46Max" />
<result column="harmonic_current_effective_46_min" jdbcType="FLOAT" property="harmonicCurrentEffective46Min" />
<result column="harmonic_current_effective_46_avg" jdbcType="FLOAT" property="harmonicCurrentEffective46Avg" />
<result column="harmonic_current_effective_46_95" jdbcType="FLOAT" property="harmonicCurrentEffective4695" />
<result column="harmonic_current_effective_47_max" jdbcType="FLOAT" property="harmonicCurrentEffective47Max" />
<result column="harmonic_current_effective_47_min" jdbcType="FLOAT" property="harmonicCurrentEffective47Min" />
<result column="harmonic_current_effective_47_avg" jdbcType="FLOAT" property="harmonicCurrentEffective47Avg" />
<result column="harmonic_current_effective_47_95" jdbcType="FLOAT" property="harmonicCurrentEffective4795" />
<result column="harmonic_current_effective_48_max" jdbcType="FLOAT" property="harmonicCurrentEffective48Max" />
<result column="harmonic_current_effective_48_min" jdbcType="FLOAT" property="harmonicCurrentEffective48Min" />
<result column="harmonic_current_effective_48_avg" jdbcType="FLOAT" property="harmonicCurrentEffective48Avg" />
<result column="harmonic_current_effective_48_95" jdbcType="FLOAT" property="harmonicCurrentEffective4895" />
<result column="harmonic_current_effective_49_max" jdbcType="FLOAT" property="harmonicCurrentEffective49Max" />
<result column="harmonic_current_effective_49_min" jdbcType="FLOAT" property="harmonicCurrentEffective49Min" />
<result column="harmonic_current_effective_49_avg" jdbcType="FLOAT" property="harmonicCurrentEffective49Avg" />
<result column="harmonic_current_effective_49_95" jdbcType="FLOAT" property="harmonicCurrentEffective4995" />
<result column="harmonic_current_effective_50_max" jdbcType="FLOAT" property="harmonicCurrentEffective50Max" />
<result column="harmonic_current_effective_50_min" jdbcType="FLOAT" property="harmonicCurrentEffective50Min" />
<result column="harmonic_current_effective_50_avg" jdbcType="FLOAT" property="harmonicCurrentEffective50Avg" />
<result column="harmonic_current_effective_50_95" jdbcType="FLOAT" property="harmonicCurrentEffective5095" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
measurement_point_id, data_date, phase, fundamental_current_max, fundamental_current_min,
fundamental_current_avg, fundamental_current_95, harmonic_current_thd_max, harmonic_current_thd_min,
harmonic_current_thd_avg, harmonic_current_thd_95, harmonic_current_effective_2_max,
harmonic_current_effective_2_min, harmonic_current_effective_2_avg, harmonic_current_effective_2_95,
harmonic_current_effective_3_max, harmonic_current_effective_3_min, harmonic_current_effective_3_avg,
harmonic_current_effective_3_95, harmonic_current_effective_4_max, harmonic_current_effective_4_min,
harmonic_current_effective_4_avg, harmonic_current_effective_4_95, harmonic_current_effective_5_max,
harmonic_current_effective_5_min, harmonic_current_effective_5_avg, harmonic_current_effective_5_95,
harmonic_current_effective_6_max, harmonic_current_effective_6_min, harmonic_current_effective_6_avg,
harmonic_current_effective_6_95, harmonic_current_effective_7_max, harmonic_current_effective_7_min,
harmonic_current_effective_7_avg, harmonic_current_effective_7_95, harmonic_current_effective_8_max,
harmonic_current_effective_8_min, harmonic_current_effective_8_avg, harmonic_current_effective_8_95,
harmonic_current_effective_9_max, harmonic_current_effective_9_min, harmonic_current_effective_9_avg,
harmonic_current_effective_9_95, harmonic_current_effective_10_max, harmonic_current_effective_10_min,
harmonic_current_effective_10_avg, harmonic_current_effective_10_95, harmonic_current_effective_11_max,
harmonic_current_effective_11_min, harmonic_current_effective_11_avg, harmonic_current_effective_11_95,
harmonic_current_effective_12_max, harmonic_current_effective_12_min, harmonic_current_effective_12_avg,
harmonic_current_effective_12_95, harmonic_current_effective_13_max, harmonic_current_effective_13_min,
harmonic_current_effective_13_avg, harmonic_current_effective_13_95, harmonic_current_effective_14_max,
harmonic_current_effective_14_min, harmonic_current_effective_14_avg, harmonic_current_effective_14_95,
harmonic_current_effective_15_max, harmonic_current_effective_15_min, harmonic_current_effective_15_avg,
harmonic_current_effective_15_95, harmonic_current_effective_16_max, harmonic_current_effective_16_min,
harmonic_current_effective_16_avg, harmonic_current_effective_16_95, harmonic_current_effective_17_max,
harmonic_current_effective_17_min, harmonic_current_effective_17_avg, harmonic_current_effective_17_95,
harmonic_current_effective_18_max, harmonic_current_effective_18_min, harmonic_current_effective_18_avg,
harmonic_current_effective_18_95, harmonic_current_effective_19_max, harmonic_current_effective_19_min,
harmonic_current_effective_19_avg, harmonic_current_effective_19_95, harmonic_current_effective_20_max,
harmonic_current_effective_20_min, harmonic_current_effective_20_avg, harmonic_current_effective_20_95,
harmonic_current_effective_21_max, harmonic_current_effective_21_min, harmonic_current_effective_21_avg,
harmonic_current_effective_21_95, harmonic_current_effective_22_max, harmonic_current_effective_22_min,
harmonic_current_effective_22_avg, harmonic_current_effective_22_95, harmonic_current_effective_23_max,
harmonic_current_effective_23_min, harmonic_current_effective_23_avg, harmonic_current_effective_23_95,
harmonic_current_effective_24_max, harmonic_current_effective_24_min, harmonic_current_effective_24_avg,
harmonic_current_effective_24_95, harmonic_current_effective_25_max, harmonic_current_effective_25_min,
harmonic_current_effective_25_avg, harmonic_current_effective_25_95, harmonic_current_effective_26_max,
harmonic_current_effective_26_min, harmonic_current_effective_26_avg, harmonic_current_effective_26_95,
harmonic_current_effective_27_max, harmonic_current_effective_27_min, harmonic_current_effective_27_avg,
harmonic_current_effective_27_95, harmonic_current_effective_28_max, harmonic_current_effective_28_min,
harmonic_current_effective_28_avg, harmonic_current_effective_28_95, harmonic_current_effective_29_max,
harmonic_current_effective_29_min, harmonic_current_effective_29_avg, harmonic_current_effective_29_95,
harmonic_current_effective_30_max, harmonic_current_effective_30_min, harmonic_current_effective_30_avg,
harmonic_current_effective_30_95, harmonic_current_effective_31_max, harmonic_current_effective_31_min,
harmonic_current_effective_31_avg, harmonic_current_effective_31_95, harmonic_current_effective_32_max,
harmonic_current_effective_32_min, harmonic_current_effective_32_avg, harmonic_current_effective_32_95,
harmonic_current_effective_33_max, harmonic_current_effective_33_min, harmonic_current_effective_33_avg,
harmonic_current_effective_33_95, harmonic_current_effective_34_max, harmonic_current_effective_34_min,
harmonic_current_effective_34_avg, harmonic_current_effective_34_95, harmonic_current_effective_35_max,
harmonic_current_effective_35_min, harmonic_current_effective_35_avg, harmonic_current_effective_35_95,
harmonic_current_effective_36_max, harmonic_current_effective_36_min, harmonic_current_effective_36_avg,
harmonic_current_effective_36_95, harmonic_current_effective_37_max, harmonic_current_effective_37_min,
harmonic_current_effective_37_avg, harmonic_current_effective_37_95, harmonic_current_effective_38_max,
harmonic_current_effective_38_min, harmonic_current_effective_38_avg, harmonic_current_effective_38_95,
harmonic_current_effective_39_max, harmonic_current_effective_39_min, harmonic_current_effective_39_avg,
harmonic_current_effective_39_95, harmonic_current_effective_40_max, harmonic_current_effective_40_min,
harmonic_current_effective_40_avg, harmonic_current_effective_40_95, harmonic_current_effective_41_max,
harmonic_current_effective_41_min, harmonic_current_effective_41_avg, harmonic_current_effective_41_95,
harmonic_current_effective_42_max, harmonic_current_effective_42_min, harmonic_current_effective_42_avg,
harmonic_current_effective_42_95, harmonic_current_effective_43_max, harmonic_current_effective_43_min,
harmonic_current_effective_43_avg, harmonic_current_effective_43_95, harmonic_current_effective_44_max,
harmonic_current_effective_44_min, harmonic_current_effective_44_avg, harmonic_current_effective_44_95,
harmonic_current_effective_45_max, harmonic_current_effective_45_min, harmonic_current_effective_45_avg,
harmonic_current_effective_45_95, harmonic_current_effective_46_max, harmonic_current_effective_46_min,
harmonic_current_effective_46_avg, harmonic_current_effective_46_95, harmonic_current_effective_47_max,
harmonic_current_effective_47_min, harmonic_current_effective_47_avg, harmonic_current_effective_47_95,
harmonic_current_effective_48_max, harmonic_current_effective_48_min, harmonic_current_effective_48_avg,
harmonic_current_effective_48_95, harmonic_current_effective_49_max, harmonic_current_effective_49_min,
harmonic_current_effective_49_avg, harmonic_current_effective_49_95, harmonic_current_effective_50_max,
harmonic_current_effective_50_min, harmonic_current_effective_50_avg, harmonic_current_effective_50_95
</sql>
</mapper>

Some files were not shown because too many files have changed in this diff Show More