1.oracle同步mysql代码,监测点运行状态

This commit is contained in:
wr
2024-06-05 15:21:17 +08:00
parent 3141eaa72b
commit 00d75598e4
15 changed files with 393 additions and 15 deletions

View File

@@ -0,0 +1,180 @@
package com.njcn.mysql.bo.po;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
/**
* <p>
*
* </p>
*
* @author wr
* @since 2024-06-05
*/
@Getter
@Setter
@TableName("pq_line_detail")
public class PqLineDetail {
private static final long serialVersionUID = 1L;
/**
* 监测点序号
*/
private String id;
/**
* 线路号(在同一台设备中的监测点号)
*/
private Integer num;
/**
* PT一次变比
*/
private Float pt1;
/**
* PT二次变比
*/
private Float pt2;
/**
* CT一次变比
*/
private Float ct1;
/**
* CT二次变比
*/
private Float ct2;
/**
* 设备容量
*/
private Float devCapacity;
/**
* 短路容量
*/
private Float shortCapacity;
/**
* 基准容量
*/
private Float standardCapacity;
/**
* 协议容量
*/
private Float dealCapacity;
/**
* 接线类型(0:星型接法;1:三角型接法;2:开口三角型接法)
*/
private Boolean ptType;
/**
* 测量间隔1-10分钟
*/
private Integer timeInterval;
/**
* 干扰源类型,字典表
*/
private String loadType;
/**
* 行业类型,字典表
*/
private String businessType;
/**
* 网公司谐波监测平台标志(0-否;1-是),默认否
*/
private Boolean monitorFlag;
/**
* 电网标志0-电网侧1-非电网侧)
*/
private Boolean powerFlag;
/**
* 国网谐波监测平台监测点号
*/
private String monitorId;
/**
* 监测点对象名称
*/
private String objName;
/**
* 人为干预是否参与统计0不参与1参与默认参与统计
*/
private Boolean statFlag;
/**
* 终端等级,关联字典表
*/
private String lineGrade;
/**
* 电网侧变电站
*/
private String powerSubstationName;
/**
* 分类等级
*/
private String calssificationGrade;
/**
* 上级变电站
*/
private String superiorsSubstation;
/**
* 挂接线路
*/
private String hangLine;
/**
* 用户联系人
*/
private String owner;
/**
* 联系人职务
*/
private String ownerDuty;
/**
* 联系人号码
*/
private String ownerTel;
private String remark;
/**
* 主接线图路径
*/
private String wiringDiagram;
/**
* 监测点接线相别0单相,1三相默认三相
*/
private Boolean ptPhaseType;
/**
* 监测点实际安装位置
*/
private String actualArea;
/**
* 监测点运行状态0运行1检修2停运3调试4退运
*/
private Boolean runFlag;
}

View File

@@ -81,4 +81,12 @@ public interface OracleDataService {
* @return
*/
List<DayInharmV> getDayInHarmV(String time);
/**
* 查询oracle中PQ_Line数据
* @param
* @return
*/
List<Line> getLineList();
}

View File

@@ -28,6 +28,7 @@ public class OracleDataServiceImpl implements OracleDataService {
private final DayPltMapper dayPltMapper;
private final DayFlickerMapper dayFlickerMapper;
private final DayInharmVMapper dayInharmVMapper;
private final LineMapper lineMapper;
@@ -108,4 +109,9 @@ public class OracleDataServiceImpl implements OracleDataService {
lambdaQueryWrapper.apply("TIMEID = to_date({0},'yyyy-mm-dd')",time);
return dayInharmVMapper.selectList(lambdaQueryWrapper);
}
@Override
public List<Line> getLineList() {
return lineMapper.selectList(new LambdaQueryWrapper<>());
}
}