初始化项目
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package com.njcn.mapper.advanced;
|
||||
|
||||
import com.njcn.utils.GetBalance.Sarifi;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
//统计的数据事件持续时间需小于60s
|
||||
public interface GetBalanceMapper {
|
||||
Float getSarfiValue(@Param("start") Date startTime, @Param("end") Date endTime, @Param("id") int lineId,
|
||||
@Param("fvalue") float value);
|
||||
|
||||
Integer getSarfiCount(@Param("start") Date startTime, @Param("end") Date endTime, @Param("id") int lineId,
|
||||
@Param("fvalue") float sarfi);
|
||||
|
||||
List<Sarifi> getSarifiList(@Param("start") Date startTime, @Param("end") Date endTime, @Param("id") int lineId,
|
||||
@Param("fvalue") float value);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.njcn.mapper.advanced;
|
||||
|
||||
import com.njcn.pojo.advanced.EventAssObj;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface RangeMapper {
|
||||
// 范围分析获取归一化处理的暂降事件
|
||||
List<EventAssObj> queryEventsByTime(@Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("list") List<String> list);
|
||||
|
||||
// 更新范围查看记录
|
||||
void updatebRangeByGUID(String indexEventAss);
|
||||
|
||||
List<String> getEventAssIndex(@Param("list") List<Integer> list, @Param("start") Date start, @Param("end") Date end);
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.njcn.mapper.advanced;
|
||||
|
||||
import com.njcn.pojo.advanced.EntityPqsRelevance;
|
||||
import com.njcn.pojo.advanced.EventAssObj;
|
||||
import com.njcn.pojo.advanced.SagEvent;
|
||||
import com.njcn.pojo.advanced.SagEventsQueryCondition;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
|
||||
public interface RelevanceMapper {
|
||||
// 获取暂降事件描述
|
||||
List<SagEvent> querySagEvents(SagEventsQueryCondition sagEventsQueryCondition);
|
||||
|
||||
// 归一化事件插到数据库
|
||||
void insertEventAssData(List<EventAssObj> list);
|
||||
|
||||
//归一化事件策略表数据插入
|
||||
void insertRelevance(EntityPqsRelevance entityPqsRelevance);
|
||||
|
||||
// 更新暂降事件数据库
|
||||
void updateSagEventData(List<SagEvent> list);
|
||||
|
||||
// 查询监测点的线路ID
|
||||
Integer queryLineIdbyPointId(Integer pointId);
|
||||
|
||||
// 查询高级算法暂降类型对应编码
|
||||
Integer queryCodebyGuid(String guid);
|
||||
|
||||
List<EntityPqsRelevance> queryEvents();
|
||||
|
||||
void deleteEvent(Date date);
|
||||
|
||||
void updateEvent(Date date);
|
||||
|
||||
void updateFlag(Date date);
|
||||
|
||||
//获取未处理的事件个数
|
||||
Integer queryDealTotal(@Param("list") List<Integer> list);
|
||||
|
||||
//获取录波文件不存在的个数
|
||||
Integer queryFileTotal(@Param("list") List<Integer> list);
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.njcn.mapper.advanced;
|
||||
|
||||
import com.njcn.pojo.advanced.EventAssObj;
|
||||
import com.njcn.pojo.advanced.EventsQueryCondition;
|
||||
import com.njcn.pojo.advanced.SagEvent;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface WaveformMapper {
|
||||
List<SagEvent> queryEventsByGUID(@Param("eventsQueryCondition") EventsQueryCondition eventsQueryCondition, @Param("list") List<Integer> list);
|
||||
|
||||
void addNormalization(List<SagEvent> list);
|
||||
|
||||
List<SagEvent> queryDataByGuid(String indexEventAss);
|
||||
|
||||
void deleteDataByGuid(String indexEventAss);
|
||||
|
||||
void updateDataByGuid(List<EventAssObj> list);
|
||||
|
||||
void updateWaveForm(List<String> guidIndex);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.app;
|
||||
|
||||
import com.njcn.pojo.app.AppInfoSet;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date: 2019/10/25 15:17
|
||||
*/
|
||||
public interface AppInfoSetMapper extends Mapper<AppInfoSet> {
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.app;
|
||||
|
||||
import com.njcn.pojo.app.AppSendMsg;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date: 2019/10/29 10:25
|
||||
*/
|
||||
public interface AppSendMsgMapper extends Mapper<AppSendMsg> {
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.data.ComInformation;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface ComInformationMapper extends Mapper<ComInformation> {
|
||||
int delByIndex(@Param(value = "lineIndex") Long lineIndex);
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.ConstantValue;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/** @Author denghuajun
|
||||
* @Description //TODO 定值管理通用mapper
|
||||
* @Date 2018/10/15 21:30
|
||||
**/
|
||||
public interface ConstantValueMapper extends Mapper<ConstantValue> {
|
||||
List<ConstantValue> quarryOutValueBase(@Param("lineIndex")long lineIndex);
|
||||
List<ConstantValue> quarryInValueBase(@Param("devIndex")long devIndex);
|
||||
int quarryOutCount(@Param("devtype")String devtype,@Param("lineIndex")long lineIndex);
|
||||
int deleteWord(@Param("devtype")String devtype);
|
||||
int deleteValue(@Param("devtype")int devtype,@Param("type")String type);//删除内部定值
|
||||
int deleteOutValue(@Param("lineIndex")int lineIndex,@Param("type")String type);//删除外部定值
|
||||
int updateOut(@Param("cpuNo")int cpuNo,@Param("type")String type,@Param("sort")int sort,@Param("value")Float value);
|
||||
int updateIn(@Param("cpuNo")int cpuNo,@Param("type")String type,@Param("sort")int sort,@Param("value")int
|
||||
value);
|
||||
ConstantValue getConvId(@Param("cpuNo")int cpuNo,@Param("type")String type,@Param("sort")int sort);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.njcn.pojo.configuration.DevFunction;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface DevFunctionMapper extends Mapper<DevFunction>{
|
||||
int insertData(List<DevFunction> list);
|
||||
|
||||
List<DevFunction> queryByDevIndex(Long devIndex);
|
||||
|
||||
int deleteByIndex(Long devIndex);
|
||||
|
||||
int delNodeIp(@Param("nodeIp") String nodeIp);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.DeviceDetailInfo;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface DeviceDetailInfoMapper extends Mapper<DeviceDetailInfo>{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.commons.device.DeviceDetail;
|
||||
import com.njcn.pojo.excelBody.DeviceDetailExcelBody;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface DeviceDetailMapper extends Mapper<DeviceDetail> {
|
||||
List<DeviceDetail> getDevtype(@Param("list") List<Integer> list);
|
||||
List<DeviceDetail> getManufacturer(@Param("list") List<Integer> list);
|
||||
List<DeviceDetail> getScale(@Param("list") List<Integer> list);
|
||||
List<DeviceDetail> getDeviceDetail(@Param("status") String status, @Param("devflag") String devflag, @Param
|
||||
("list") List<Integer> list);
|
||||
List<DeviceDetail> getDeviceDetails(@Param("status") String status, @Param("devflag") String devflag,@Param
|
||||
("gdName")String gdName,@Param("manufacturer")String
|
||||
manufacturer, @Param("list") List<Integer> list);
|
||||
List<DeviceDetail> queryDeviceDetailById(@Param("devIndex") Long devIndex);
|
||||
DeviceDetail queryDeviceDetailByLineId(@Param("lineIndex") Long devIndex);
|
||||
List<DeviceDetail> getSelName(@Param("name") String name);
|
||||
List<DeviceDetail> getGdname(@Param("list") List<Integer> list);
|
||||
List<DeviceDetail> getManufacturers(@Param("list") List<Integer> list);
|
||||
List<DeviceDetail> getSbyc(@Param("list") List<Integer> list);
|
||||
List<DeviceDetail> getTj(@Param("list") List<Integer> list);
|
||||
|
||||
List<DeviceDetail> selState(@Param("devIndex")Integer devIndex,@Param("list")List<Integer> list);
|
||||
//获取该表所有数据,提供excel导出
|
||||
List<DeviceDetailExcelBody> selectAllExcelData();
|
||||
|
||||
/**
|
||||
* 根据监测点ID获取各级名称
|
||||
*/
|
||||
DeviceDetail queryNameBylineId(Integer lineIndex);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.commons.device.LineInfo;
|
||||
import com.njcn.pojo.data.ComInformation;
|
||||
import com.njcn.pojo.pointInfo.PointInfo;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface DeviceInfoMapper extends Mapper<LineInfo> {
|
||||
LineInfo getDeviceInfo(Long line_index);
|
||||
|
||||
List<ComInformation> getRunInfo(@Param(value = "line_index") Long line_index, @Param(value = "startTime") Date startTime, @Param(value = "endTime") Date endTime);
|
||||
|
||||
LineInfo getFlowInfo(@Param("pointIndex") Long pointIndex);
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.commons.device.DeviceDetail;
|
||||
import com.njcn.pojo.commons.device.DeviceInfo;
|
||||
import com.njcn.pojo.commons.device.DeviceOnline;
|
||||
import com.njcn.pojo.commons.device.DeviceValue;
|
||||
import com.njcn.pojo.configuration.Device;
|
||||
import com.njcn.pojo.excelBody.DeviceExcelBody;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface DeviceMapper extends Mapper<Device>{
|
||||
|
||||
|
||||
//获取指定终端的终端状态
|
||||
List<Device> getDevicesByDevIndexs(@Param("list") List<Integer> devIndex);
|
||||
|
||||
//根据供电公司获取终端索引
|
||||
List<Integer> getDeviceIndexs(@Param("list") List<Integer> gdIndexsTemp,@Param("devModel") Integer devModel,@Param("type")List<Integer> dataType);
|
||||
|
||||
//根据供电公司获取终端索引
|
||||
List<Integer> getDeviceIndex(@Param("list") List<Integer> gdIndexsTemp);
|
||||
|
||||
|
||||
//根据终端厂家获取合理的终端索引
|
||||
List<Integer> getDeviceIndexsByCompanyName(@Param("comIndex") String dicIndex, @Param("devModel") Integer devModel, @Param("type") List<Integer> dataType,@Param("list") List<Integer>devIndexs);
|
||||
|
||||
int updateDevice(@Param("name")Integer name,@Param("devflag")Integer devflag);
|
||||
|
||||
Long selectMaxIndex();
|
||||
|
||||
List<Device> testName(@Param("name")String name,@Param("subIndex")Long subIndex,@Param("devIndex")Long devIndex);
|
||||
|
||||
List<Device> testIP(@Param("ip")String ip,@Param("portid")Long portid,@Param("gdIndex")Long gdIndex,@Param("devIndex")Long devIndex);
|
||||
|
||||
Device devNameType(@Param("devName")String devName);
|
||||
|
||||
Device devIndexType(@Param("devIndex")Long devIndex);
|
||||
|
||||
Device devIndexsType(@Param("lineIndex")Long lineIndex);
|
||||
|
||||
//获取该表所有数据,提供excel导出
|
||||
List<DeviceExcelBody> selectAllExcelData();
|
||||
|
||||
//根据事件索引获取装置IP
|
||||
String getIPByEventIndex(String index);
|
||||
|
||||
List<String> getPushNodes();
|
||||
|
||||
List<Integer> getRunDeviceIndex(@Param("list") List<Integer> deviceIndexs);
|
||||
|
||||
//根据监测点id查询装置ip
|
||||
String getIpByLineIndex(int index);
|
||||
|
||||
int getStates(@Param("devIndex") int devIndex,@Param("timeId") String timeId);
|
||||
|
||||
List<Integer> getDeviceIndexByLineIndex(@Param("list")List<Integer> lineIndex);
|
||||
|
||||
int getState(@Param("list") List<Integer> devIndex,@Param("timeId") String timeId);
|
||||
|
||||
//查询当前监测点的接线方式
|
||||
int getConnect(@Param("lineIndex") Long lineIndex);
|
||||
|
||||
//将终端的详细信息组合
|
||||
String deviceDescribe(@Param("devIndex") Integer devIndex);
|
||||
|
||||
List<Integer> getDevIndex(@Param("list") List<Integer> dataType);
|
||||
|
||||
DeviceDetail getDevAndParent(@Param("devIndex")String devIndex);
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.DicData;
|
||||
import com.njcn.pojo.excelBody.DicDataExcelBody;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface DicDataMapper extends Mapper<DicData> {
|
||||
// 删除
|
||||
int deleteData(DicData dic);
|
||||
|
||||
// 修改
|
||||
int updateData(DicData dic);
|
||||
|
||||
// 根據id查詢
|
||||
DicData selectId(String dicIndex);
|
||||
|
||||
// 查询区域
|
||||
List<DicData> setArea(@Param("sysType") String sysType,@Param("dicTypeName")String dicTypeName);
|
||||
|
||||
// 查询区域
|
||||
List<DicData> setAreaNo(@Param("deptIndex") String deptIndex, @Param("sysType") String sysType,@Param("dicTypeName")String dicTypeName);
|
||||
|
||||
// 查找接线方式
|
||||
List<DicData> selectWring(@Param("dicTypeName")String dicTypeName);
|
||||
|
||||
// 查询排序的最大
|
||||
int selNumMax();
|
||||
|
||||
// 查询除此之外的所有名称
|
||||
List<DicData> selectName(@Param(value = "dicIndex") String dicIndex, @Param(value = "dicType") String dicType);
|
||||
|
||||
// 查询总条数
|
||||
int selCount(String dicTypeIndex);
|
||||
|
||||
// 根据typeID查询所有
|
||||
List<DicData> selAll(@Param("typeId") String typeId);
|
||||
|
||||
// 查询省份区域
|
||||
List<DicData> queryDicPro(@Param("typeId") String typeId);
|
||||
|
||||
//根据字典名称查询省份区域index
|
||||
DicData queryProIdByname(String dicName);
|
||||
|
||||
// 查询所有
|
||||
List<DicData> seleAll(@Param("name") String name);
|
||||
|
||||
List<DicData> selAllId(@Param("typeId") String typeId);
|
||||
|
||||
List<DicData> selAllType(@Param("typeId")List<String> typeId);
|
||||
|
||||
List<DicData> selectDataName(@Param(value = "dicIndex") String dicIndex);
|
||||
|
||||
DicData getSelName(String name);
|
||||
|
||||
List<DicData> selectWiring(@Param(value = "typeId") String typeId,@Param("dicTypeName")String dicTypeName);
|
||||
|
||||
// 查询重复
|
||||
List<DicData> selectdicName(String dicName);
|
||||
|
||||
//获取该表所有数据,提供excel导出
|
||||
List<DicDataExcelBody> selectAllExcelData();
|
||||
|
||||
//查询资源类目
|
||||
List<DicData> getMangType(@Param("dicTypeName")String dicTypeName);
|
||||
|
||||
//获取出字典表指定索引
|
||||
String getDicDataIndex(@Param("type") String type, @Param("temp")int temp);
|
||||
|
||||
List<DicData> getOffTreeType(List<Integer> index);
|
||||
|
||||
List<DicData> getTreeScale(List<Integer> index);
|
||||
List<DicData> getTreeManc(List<Integer> index);
|
||||
List<DicData> getTreeLoadType(List<Integer> index);
|
||||
|
||||
//更新字典表
|
||||
void updateByPrimaryKeyBySql(DicData dicDataTemp);
|
||||
|
||||
String getDicName(@Param("dicIndex")String dicIndex);
|
||||
|
||||
//根据类型获取所有类型数据
|
||||
List<DicData> getTartgetTypeForDic(String type);
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.DicType;
|
||||
import com.njcn.pojo.excelBody.DicTypeExcelBody;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface DicDataTypeMapper extends Mapper<DicType> {
|
||||
|
||||
// 查
|
||||
List<DicType> All(@Param(value = "typeId") String typeId);
|
||||
|
||||
// 查
|
||||
List<DicType> selectIndexAll();
|
||||
|
||||
// 添加
|
||||
int insertType(DicType dt);
|
||||
|
||||
//查询除此之外的名称
|
||||
List<DicType> selectName(@Param(value = "dicTypeIndex") String dicTypeIndex);
|
||||
|
||||
//删除
|
||||
int deleteType(DicType dt);
|
||||
|
||||
List<DicType> getLog(@Param("list")List<String> list);
|
||||
|
||||
//修改
|
||||
int updateType(DicType dt);
|
||||
|
||||
DicType selectTypeName(@Param(value = "typeId") String typeId);
|
||||
|
||||
// 查询最大的
|
||||
int selNumMax();
|
||||
|
||||
//根据dictype_name查询
|
||||
DicType querybyname(@Param(value = "dicTypename") String dicTypename);
|
||||
|
||||
//获取该表所有数据,提供excel导出
|
||||
List<DicTypeExcelBody> selectAllExcelData();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.DicTypeTree;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface DicTypeTreeMapper extends Mapper<DicTypeTree> {
|
||||
public List<DicTypeTree> getfirstData();
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.commons.device.EventDataList;
|
||||
import com.njcn.pojo.commons.device.EventTypeList;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface EventDataMapper extends Mapper<EventDataList> {
|
||||
List<EventDataList> getEventDataList(@Param("lineIndex") Integer lineIndex, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
Integer getCountsByInterval(@Param("lineIndex") Integer lineIndex, @Param("interTime") String interTime);
|
||||
|
||||
List<EventDataList> areaEventDataList(@Param("list") List<Integer> lineIndexs, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
Integer getCountByIndex(@Param("lineIndex") Integer lineindex, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
List<EventTypeList> getEventTypeCount(@Param("lineIndex") Integer lineindex, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
Integer getGdcounts(@Param("gdIndex") Integer gdIndex, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.EventPushLogsDetail;
|
||||
import com.njcn.pojo.configuration.TerminalLogs;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Auther denghuajun
|
||||
* @Date 2021/8/18
|
||||
* @describe 暂降事件推送记录日志Mapper
|
||||
*/
|
||||
public interface EventPushLogsDetailMapper extends Mapper<EventPushLogsDetail> {
|
||||
List<EventPushLogsDetail> getEventPushLogsDetail(@Param("result") int result, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
List<EventPushLogsDetail> getEventPushLogsDetails(@Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
int updatEventPushLog(@Param("eventDetailIndex") String eventDetailIndex, @Param("lineId") Integer lineId, @Param("userUpdateTime") Date userUpdateTime);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.commons.device.ExportDev;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface ExportDevMapper extends Mapper<ExportDev> {
|
||||
List<ExportDev> getExportDev(@Param("systype")String systype,@Param("list")List<Integer> datatype);
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.GDInformation;
|
||||
import com.njcn.pojo.excelBody.GDExcelBody;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface GDInforMapper extends Mapper<GDInformation> {
|
||||
|
||||
List<GDInformation> selectAll();
|
||||
/**
|
||||
* 根据供电公司索引获取供电公司名称
|
||||
*/
|
||||
String getGdName(Long gdIndex);
|
||||
|
||||
Long selectMaxIndex();
|
||||
|
||||
List<GDInformation> selectNoGd(@Param("sysType")String sysType);
|
||||
|
||||
List<GDInformation> selectOthersNoGd(@Param("deptsIndex")String deptsIndex,@Param("sysType")String sysType);
|
||||
|
||||
List<GDInformation> testName(@Param("name") String name, @Param("proIndex") Long proIndex);
|
||||
|
||||
//获取该表所有数据,提供excel导出
|
||||
List<GDExcelBody> selectAllExcelData();
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.LineDetail;
|
||||
import com.njcn.pojo.excelBody.LineDetailExcelBody;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface LineDetailMapper extends Mapper<LineDetail> {
|
||||
|
||||
Integer getAmounts(String time);
|
||||
|
||||
//获取该表所有数据,提供excel导出
|
||||
List<LineDetailExcelBody> selectAllExcelData();
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,185 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import com.njcn.pojo.commons.device.LineDetailInfo;
|
||||
import com.njcn.pojo.commons.device.LineInfo;
|
||||
import com.njcn.pojo.configuration.LineDetail;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.commons.DeviceType;
|
||||
import com.njcn.pojo.commons.device.MachineAccount;
|
||||
import com.njcn.pojo.commons.device.Tree;
|
||||
import com.njcn.pojo.configuration.Line;
|
||||
import com.njcn.pojo.data.Detailed;
|
||||
import com.njcn.pojo.data.IndexsCount;
|
||||
import com.njcn.pojo.data.InfoData;
|
||||
import com.njcn.pojo.data.Legder;
|
||||
import com.njcn.pojo.excelBody.LineExcelBody;
|
||||
import com.njcn.pojo.responsibility.ResponsibilityData;
|
||||
import com.njcn.pojo.user.Depts;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface LineMapper extends Mapper<Line> {
|
||||
|
||||
|
||||
//根据终端索引获取所有的监测点索引
|
||||
List<Integer> getLineIndex(@Param("list") List<Integer> devIndexs);
|
||||
|
||||
//根据终端索引获取所有的监测点索引
|
||||
List<Integer> getLineIndexSingle(@Param("devIndexs") Integer devIndexs, @Param("lineIndex") List<Integer> lineIndex);
|
||||
|
||||
//根据电压等级,终端索引获取合理的监测点索引
|
||||
List<Integer> getLineIndexs(@Param("list") List<Integer> devLindexs, @Param("dicIndex") String dicIndex);
|
||||
|
||||
//根据电压等级,终端索引获取合理的终端索引
|
||||
List<Integer> getDeviceIndexs(@Param("list") List<Integer> devLindexs, @Param("dicIndex") String dicIndex);
|
||||
|
||||
//根据干扰源类型终,终端索引获取合理的监测点索引
|
||||
List<Integer> getLineIndexsByLoadType(@Param("list") List<Integer> devIndexs, @Param("dicIndex") String dicIndex);
|
||||
|
||||
//根据干扰源类型终,终端索引获取合理的终端索引
|
||||
List<Integer> getDeviceIndexsByLoadType(@Param("list") List<Integer> devIndexs, @Param("dicIndex") String dicIndex);
|
||||
|
||||
Line queryLineData(Long lineid);
|
||||
|
||||
int updateScale(@Param("scale") String scale,@Param("jzCmp") Float jzCmp,@Param("pt") Float pt, @Param("subvName") String subvName, @Param("subvIndex") Long subvIndex);
|
||||
|
||||
//根据现有的监测点筛选出国网监测点
|
||||
List<Integer> getGWLines(@Param("list") List<Integer> subList);
|
||||
|
||||
String selectLineName(String name);
|
||||
|
||||
//获取该表所有数据,提供excel导出
|
||||
List<LineExcelBody> selectAllExcelData();
|
||||
|
||||
//根据事件获取监测点数据
|
||||
Line getLineByEventDetailIndex(String eventIndex);
|
||||
|
||||
String getNodeIpbylineIndex(@Param("lineIndex") Long lineIndex);
|
||||
|
||||
String getNodeIpbyDevIndex(@Param("lineIndex") Long lineIndex);
|
||||
|
||||
List<Line> testName(@Param("name") String name, @Param("subvIndex") Long subvIndex, @Param("lineIndex") Long lineIndex);
|
||||
|
||||
//根据监测点获取测量间隔
|
||||
int getIntervalByIndex(Integer lineIndex);
|
||||
|
||||
//根据监测点查询该监测点的所有信息,比如 供电公司名 变电站名 装置名 IP等
|
||||
ResponsibilityData queryByLineIndex(Integer lineIndex);
|
||||
|
||||
List<Line> getLinesByPro(@Param("proIndex") int proIndex);
|
||||
|
||||
//稳态离线管理监测点
|
||||
List<Integer> getOffLineIndexWT(String systype);
|
||||
|
||||
int getRole(@Param("url") String url, @Param("role") List<String> role);
|
||||
|
||||
List<Integer> listAllIndex();
|
||||
|
||||
MachineAccount getLineName(@Param("lineId") Integer lineId);
|
||||
|
||||
/**
|
||||
* 根据系统类型获取所有的国网监测点索引
|
||||
*/
|
||||
List<Integer> getGwLinesByDeviceType(@Param("type") List<Integer> dataType);
|
||||
|
||||
List<Integer> getDeptsLineIndex(@Param("deptsIndex") String deptsIndex, @Param("sysIndex") String sysIndex, @Param("flag") boolean flag);
|
||||
|
||||
List<Integer> getDeptsLineIndexs(@Param("deptsIndex") String deptsIndex, @Param("sysIndex") String sysIndex, @Param("flag") boolean flag);
|
||||
|
||||
List<Depts> getSubDeptsIndex(@Param("parentDeptsIndex") String parentDeptsIndex, @Param("listArea") List<String> listArea);
|
||||
|
||||
List<Legder.Data> getVoltageData(@Param("list") List<Integer> list, @Param("listVoltage") List<String> listVoltage, @Param("nature") Integer nature);
|
||||
|
||||
List<Legder.Data> getTypeData(@Param("list") List<Integer> list, @Param("listType") List<String> listType, @Param("nature") Integer nature);
|
||||
|
||||
List<Legder.Data> getFactoryData(@Param("list") List<Integer> list, @Param("listFactory") List<String> listFactory, @Param("nature") Integer nature);
|
||||
|
||||
List<Legder.Data> getMonitorData(@Param("list") List<Integer> list, @Param("appear") String appear, @Param("nature") Integer nature);
|
||||
|
||||
List<Integer> siftLineIndexs(@Param("list") List<Integer> list, @Param("scale") String scale, @Param("manc") String manc, @Param("loadtype") String loadtype);
|
||||
|
||||
List<Integer> siftLineIndexsByLineGrade(@Param("list") List<Integer> list, @Param("scale") String scale, @Param("manc") String manc, @Param("loadtype") String loadtype,@Param("lineGrade") Integer lineGrade);
|
||||
|
||||
List<IndexsCount> siftAllIndexs(@Param("list") List<Integer> list, @Param("scale") String scale, @Param("manc") String manc, @Param("loadtype") String loadtype);
|
||||
|
||||
List<IndexsCount> siftAllIndexsByLineGrade(@Param("list") List<Integer> list, @Param("scale") String scale, @Param("manc") String manc, @Param("loadtype") String loadtype,@Param("lineGrade") Integer lineGrade);
|
||||
|
||||
List<Integer> getPointIndexbyVoltage(@Param("deptsIndex") String deptsIndex, @Param("sysIndex") String sysType, @Param("guid") String guid);
|
||||
|
||||
List<Integer> getPointIndexbyType(@Param("deptsIndex") String deptsIndex, @Param("sysIndex") String sysType, @Param("guid") String guid);
|
||||
|
||||
List<Integer> getPointbyMonitor(@Param("deptsIndex") String deptsIndex, @Param("sysIndex") String sysType, @Param("guid") String guid);
|
||||
|
||||
List<Detailed> getDetailed(@Param("start") Date start, @Param("end") Date end, @Param("listLine") List<Integer> listLine, @Param("list") List<Integer> list);
|
||||
|
||||
List<Tree> getTreeBySubv(@Param("subvIndex") Long subvIndex, @Param("list") List<Integer> list);
|
||||
|
||||
List<InfoData> getAreaBytimeOne(@Param("list") List<Integer> list, @Param("typeName") String typName, @Param("start") Date start, @Param("end") Date end, @Param("sysType") Integer sysType, @Param("index") String index);
|
||||
|
||||
List<InfoData> getAreaBytimeZero(@Param("list") List<Integer> list, @Param("typeName") String typName, @Param("start") Date start, @Param("end") Date end, @Param("sysType") Integer sysType, @Param("index") String index);
|
||||
|
||||
List<InfoData> getVoltage(@Param("list") List<Integer> list);
|
||||
|
||||
List<InfoData> getLoadType(@Param("list") List<Integer> list);
|
||||
|
||||
List<InfoData> getVoltageBytimeOne(@Param("list") List<Integer> list, @Param("typeName") String typName, @Param("start") Date start, @Param("end") Date end, @Param("sysType") Integer sysType);
|
||||
|
||||
List<InfoData> getVoltageBytimeZero(@Param("list") List<Integer> list, @Param("typeName") String typName, @Param("start") Date start, @Param("end") Date end, @Param("sysType") Integer sysType);
|
||||
|
||||
List<InfoData> getLoadTypeBytimeOne(@Param("list") List<Integer> list, @Param("typeName") String typName, @Param("start") Date start, @Param("end") Date end, @Param("sysType") Integer sysType);
|
||||
|
||||
List<InfoData> getLoadTypeBytimeZero(@Param("list") List<Integer> list, @Param("typeName") String typName, @Param("start") Date start, @Param("end") Date end, @Param("sysType") Integer sysType);
|
||||
|
||||
List<InfoData> getMonitorBytimeOne(@Param("list") List<Integer> list, @Param("typeName") String typName, @Param("start") Date start, @Param("end") Date end, @Param("sysType") Integer sysType);
|
||||
|
||||
List<InfoData> getMonitorBytimeZero(@Param("list") List<Integer> list, @Param("typeName") String typName, @Param("start") Date start, @Param("end") Date end, @Param("sysType") Integer sysType);
|
||||
|
||||
//根据变电站id获取变电站名称
|
||||
String getSubNameById(@Param("id") Long id);
|
||||
|
||||
/**
|
||||
* 根据系统类型获取所有的国网监测点索引(电度)
|
||||
*/
|
||||
List<Integer> getGwLinesByDevicePlateType(@Param("type") List<Integer> dataType);
|
||||
|
||||
/**
|
||||
* 根据监测点id集合判断设备号是否重复
|
||||
* @author cdf
|
||||
* @date 2021/8/12
|
||||
*/
|
||||
Integer getDevSumForLine(@Param("list") Set<Integer> list);
|
||||
|
||||
LineInfo getLineObject(@Param("lineIndex")Integer lineIndex);
|
||||
|
||||
Integer getDeviceIndex(@Param("lineIndex")Integer lineIndex);
|
||||
|
||||
/**
|
||||
* 根据母线id获取母线下所有监测点
|
||||
* @author cdf
|
||||
* @date 2021/11/17
|
||||
*/
|
||||
List<Line> getLineListBySubVId(@Param("subVindex")Long subVindex);
|
||||
|
||||
/***
|
||||
* 获取监测点等级
|
||||
* @author hongawen
|
||||
* @date 2023/7/31 10:35
|
||||
*/
|
||||
String getLineGradeById(@Param("lineIndex") Long lineIndex);
|
||||
|
||||
/**
|
||||
* 装置调整状态时,将监测点状态也调整为装置状态
|
||||
* @param status 装置状态
|
||||
* @param devIndex 装置ID
|
||||
* @return
|
||||
*/
|
||||
int updateLineStatus(@Param("status") Integer status, @Param("devIndex") Long devIndex);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.commons.device.MachineAccount;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface MacAccountMapper extends Mapper<MachineAccount> {
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
|
||||
import com.njcn.pojo.configuration.Monitor;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
|
||||
public interface MonitorMapper extends Mapper<Monitor> {
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.NodeInformation;
|
||||
import com.njcn.pojo.excelBody.NodeInformationExcelBody;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface NodeInformationMapper extends Mapper<NodeInformation>{
|
||||
Long selectMaxIndex();
|
||||
|
||||
List<NodeInformation> testName(@Param("nodeName") String nodeName, @Param("nodeIndex") Long nodeIndex);
|
||||
|
||||
NodeInformation setIp(@Param("nodeIndex")int nodeIndex);
|
||||
|
||||
//获取该表所有数据,提供excel导出
|
||||
List<NodeInformationExcelBody> selectAllExcelData();
|
||||
|
||||
NodeInformation selByName(@Param("nodeName")String nodeName);
|
||||
|
||||
//获取最大排序号
|
||||
Integer getMaxOrder();
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.OverLimit;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface OverLimitMapper extends Mapper<OverLimit> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.configuration.Project;
|
||||
import com.njcn.pojo.configuration.Province;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface ProjectMapper extends Mapper<Project> {
|
||||
List<Project> checkName(@Param("name")String name);
|
||||
|
||||
Long selectMaxIndex();
|
||||
|
||||
List<Project> testName(@Param("name")String name,@Param("projIndex")Long projIndex);
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.ProtectControlWord;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ProtectControlWordMapper extends Mapper<ProtectControlWord> {
|
||||
List<ProtectControlWord> getAll(@Param("pvIndex")String pvIndex);
|
||||
int updateWord(@Param("pvIndex")String pvIndex,@Param("flag")int flag,@Param("typeNum")int typeNum);
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.njcn.pojo.excelBody.ProvinceExcelBody;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.configuration.Province;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface ProvinceMapper extends Mapper<Province> {
|
||||
Long selectMaxIndex();
|
||||
|
||||
List<Province> testName(@Param("name")String name,@Param("proIndex")Long proIndex);
|
||||
|
||||
List<Province> checkName(@Param("name")String name,@Param("projectIndex")Long projectIndex);
|
||||
|
||||
//获取该表所有数据,提供excel导出
|
||||
List<ProvinceExcelBody> selectAllExcelData();
|
||||
|
||||
|
||||
//根据area查询
|
||||
List<Province> getArea(@Param("area")String area);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.configuration.PushInfo;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface PushInfoMapper extends Mapper<PushInfo> {
|
||||
public List<PushInfo> selAll();
|
||||
|
||||
public int delByIP(@Param("nodeip")String nodeip);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.RPTree;
|
||||
import com.njcn.pojo.configuration.RptData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface RPTreeMapper extends Mapper<RPTree> {
|
||||
public List<RPTree> getfirstData(@Param("dataType") Integer dataType);
|
||||
|
||||
public List<RPTree> getsecondData(@Param("first") List<Integer> first,@Param("dataType") Integer dataType);
|
||||
|
||||
List<RptData> getExcelSetting();
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.njcn.pojo.configuration.Report;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface ReportMapper extends Mapper<Report> {
|
||||
List<Report> getAll();
|
||||
|
||||
int insertData(Report report);
|
||||
|
||||
int updateData(Report report);
|
||||
|
||||
Report testName(String name);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.ReportModel;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface ReportModelMapper extends Mapper<ReportModel> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.RptAss;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface RptAssMapper extends Mapper<RptAss>{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.RptData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface RptDataMapper extends Mapper<RptData> {
|
||||
|
||||
int getMaxDesc();
|
||||
|
||||
List<RptData> testName(@Param("name") String name, @Param("rdIndex") String rdIndex);
|
||||
|
||||
List<RptData> getDatasByPloy(String rpIndex);
|
||||
|
||||
int deleteData(@Param("rdIndex") String rdIndex, @Param("updateTime") Date time);
|
||||
|
||||
int updateData(@Param("shortName") String shortName, @Param("fullName") String fullName, @Param("rdIndex") String rdIndex, @Param("updateTime") Date time);
|
||||
|
||||
List<RptData> getNodeData(@Param("parent") Integer parent,@Param("dataType") Integer dataType);
|
||||
|
||||
List<String> getTreeState(@Param("rpIndex") String rpIndex);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.RptPloy;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface RptPloyMapper extends Mapper<RptPloy>{
|
||||
List<RptPloy> testName(@Param("rpIndex") String rpIndex, @Param("name") String name);
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.njcn.pojo.excelBody.SubStationExcelBody;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.commons.device.SubInfo;
|
||||
import com.njcn.pojo.configuration.SubStation;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface SubStationMapper extends Mapper<SubStation>{
|
||||
|
||||
Long selectMaxIndex();
|
||||
|
||||
List<SubStation> testName(@Param("name") String name, @Param("subIndex") Long subIndex, @Param("gdIndex") Long gdIndex);
|
||||
|
||||
SubInfo getSubDetail(@Param("subIndex")Long subIndex);
|
||||
|
||||
//获取该表所有数据,提供excel导出
|
||||
List<SubStationExcelBody> selectAllExcelData();
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.SubVoltage;
|
||||
import com.njcn.pojo.excelBody.DeviceDetailExcelBody;
|
||||
import com.njcn.pojo.excelBody.SubVoltageExcelBody;
|
||||
import com.njcn.pojo.user.LogicNext;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface SubVoltageMapper extends Mapper<SubVoltage> {
|
||||
public Long selectMaxSubvIndex();
|
||||
|
||||
List<SubVoltage> testName(@Param("name")String name,@Param("devIndex")Long devIndex,@Param("subvIndex")Long subvIndex);
|
||||
//查询所有
|
||||
List<SubVoltage> selectIndexAll(@Param("subIndex")int subIndex);
|
||||
//根据id查询除此之外的数据
|
||||
List<LogicNext> selectExAll(@Param("subvIndex")int subvIndex, @Param("subIndex")int subIndex, @Param(value = "tfIndex") String tfIndex);
|
||||
|
||||
//获取该表所有数据,提供excel导出
|
||||
List<SubVoltageExcelBody> selectAllExcelData();
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.SysSet;
|
||||
import com.njcn.pojo.data.FunctionPloyEntity;
|
||||
import com.njcn.pojo.data.MenuEntity;
|
||||
import com.njcn.pojo.data.TimerManage;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
|
||||
public interface SysMapper extends Mapper<SysSet> {
|
||||
|
||||
int update(SysSet set);
|
||||
|
||||
List<MenuEntity> listMenu(@Param("systype") String systype);
|
||||
|
||||
List<MenuEntity> parentMenulist(@Param("systype") String systype);
|
||||
|
||||
List<MenuEntity> menuTypeList(@Param("name") String name);
|
||||
|
||||
void insertData(@Param("menuEntity") MenuEntity menuEntity, @Param("userIndex") String userIndex, @Param("sysType") String sysType);
|
||||
|
||||
void updateData(@Param("menuEntity") MenuEntity menuEntity, @Param("userIndex") String userIndex);
|
||||
|
||||
void deleteMenu(@Param("id") String id, @Param("userIndex") String userIndex, @Param("time") Date time);
|
||||
|
||||
List<FunctionPloyEntity> menuPloyList(@Param("sysType") String sysType);
|
||||
|
||||
List<MenuEntity> roleList();
|
||||
|
||||
void insertRoleMenuData(@Param("roleId") String roleId, @Param("list") List<String> list, @Param("uuid") String uuid);
|
||||
|
||||
void insertFunctionRoleData(@Param("uuid") String uuid, @Param("roleId") String roleId, @Param("name") String name, @Param("des") String des, @Param("date") Date date, @Param("userIndex") String userIndex, @Param("sysType") String sysType);
|
||||
|
||||
void deleteRoleMenuData(@Param("roleId") String roleId, @Param("id") String id);
|
||||
|
||||
void updateRoleMenuData(@Param("id") String id, @Param("name") String name, @Param("des") String des, @Param("date") Date date, @Param("userIndex") String userIndex);
|
||||
|
||||
void deleteFunctionRoleData(@Param("id") String id, @Param("date") Date date, @Param("userIndex") String userIndex);
|
||||
|
||||
List<String> roleStateList(@Param("sysType") String sysType);
|
||||
|
||||
List<String> getRoleFunction(@Param("roleId") String roleId, @Param("id") String id);
|
||||
|
||||
List<MenuEntity> getListMenu(@Param("list") List<String> list, @Param("sysType") String sysType);
|
||||
|
||||
List<TimerManage> getTimerManage();
|
||||
|
||||
Integer setTimerState(@Param("guid") String guid, @Param("state") Integer state);
|
||||
|
||||
String getTimerManageByGuid(@Param("guid") String guid);
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.TerminalLogs;
|
||||
import com.njcn.pojo.data.Legder;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Auther denghuajun
|
||||
* @Date 2021/7/21
|
||||
* @describe 更改终端状态记录日志Mapper
|
||||
*/
|
||||
public interface TerminalLogsMapper extends Mapper<TerminalLogs> {
|
||||
List<TerminalLogs> selectLogs(@Param("startTime")Date startTime,@Param("endTime")Date endTime);
|
||||
List<TerminalLogs> selectLog(@Param("terminalType") String terminalType,@Param("startTime")Date startTime,@Param("endTime")Date endTime);
|
||||
List<TerminalLogs> selectLogByDevId(@Param("devId")String devId,@Param("terminalType") String terminalType,@Param("startTime")Date startTime,@Param("endTime")Date endTime);
|
||||
|
||||
Integer batchAddTerminalLogs(List<TerminalLogs> list);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface TerminalMapper {
|
||||
/**
|
||||
* @Author denghuajun
|
||||
* @Description 通过终端id判断是否有终端版本号
|
||||
* @Date 9:50 2020/12/25
|
||||
**/
|
||||
int getEdDataNumDev(@Param("devIndex")String devIndex);
|
||||
|
||||
/**
|
||||
* @Author denghuajun
|
||||
* @Description 通过监测点id判断是否有终端版本号
|
||||
* @Date 9:50 2020/12/25
|
||||
**/
|
||||
int getEdDataNumLine(@Param("lineIndex")String lineIndex);
|
||||
}
|
||||
@@ -0,0 +1,154 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.njcn.pojo.commons.device.Tree;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface TreeMapper extends Mapper<Tree> {
|
||||
|
||||
List<Tree> getProjInfo();
|
||||
|
||||
List<Tree> getProInfo();
|
||||
|
||||
//获取指定项目下的省份
|
||||
List<Tree> getProjInfoByName(String name);
|
||||
|
||||
List<Tree> getProByProj(List<Integer> index);
|
||||
|
||||
List<Tree> getGdInfo(List<Integer> index);
|
||||
|
||||
List<Tree> getGdByPro(List<Integer> index);
|
||||
|
||||
List<Tree> getSubInfo(List<Integer> index);
|
||||
|
||||
List<Tree> getTransInfo(List<Integer> suIndex);
|
||||
|
||||
List<Tree> getDevInfo(List<Integer> index);
|
||||
|
||||
List<Tree> getLineInfo(List<Integer> index);
|
||||
|
||||
List<Tree> getDevice(List<Integer> index);
|
||||
|
||||
List<Tree> getSubv(List<Integer> index);
|
||||
|
||||
List<Tree> getTreeProInfo(List<Integer> index);
|
||||
|
||||
List<Tree> getTreeGdInfo(List<Integer> index);
|
||||
|
||||
List<Tree> getTreeSubInfo(List<Integer> index);
|
||||
|
||||
List<Tree> getWTTreeDevInfo(List<Integer> index);
|
||||
|
||||
List<Tree> getWTTreeDevInfoOffline(List<Integer> index);
|
||||
|
||||
List<Tree> getZTTreeDevInfo(List<Integer> index);
|
||||
|
||||
List<Tree> getTreeSubvInfo(List<Integer> index);
|
||||
//获取离线的装置,区分系统
|
||||
List<Tree> getOffLineDevice(@Param("list") List<Integer> index, @Param("devModel") Integer devModel, @Param("dataType") List<Integer> dataType);
|
||||
|
||||
List<Tree> getDeviceWT(List<Integer> index);
|
||||
|
||||
List<Tree> getDeviceZT(List<Integer> index);
|
||||
|
||||
List<Tree> getDeviceWTOnline(List<Integer> index);
|
||||
|
||||
List<Tree> getDeviceZTOnline(List<Integer> index);
|
||||
|
||||
|
||||
List<Tree> getOffTreeProJInfo(List<Integer> index);
|
||||
|
||||
List<Tree> getOffTreeProVInfo(List<Integer> index);
|
||||
|
||||
List<Tree> getOffTreeSubInfo(List<Integer> index);
|
||||
|
||||
List<Tree> getOffTreeLineInfo(List<Integer> index);
|
||||
|
||||
List<Tree> getOffYearProJInfo(@Param("list") List<Integer> index, @Param("year") List<String> year);
|
||||
|
||||
List<Tree> getOffYearProVInfo(@Param("list") List<Integer> index, @Param("year") String year);
|
||||
|
||||
List<Tree> getOffYearSubInfo(@Param("list") List<Integer> index, @Param("year") String year);
|
||||
|
||||
List<Tree> getOffYearLineInfo(@Param("list") List<Integer> index, @Param("year") String year);
|
||||
|
||||
List<Tree> getOffTypeProJInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getOffTypeProVInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getOffTypeSubInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getOffTypeLineInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
//根据条件获取省会节点信息
|
||||
List<Tree> getProInfoByDevice(@Param("devModel") Integer devModel, @Param("dataType") List<Integer> dataType);
|
||||
|
||||
//根据条件获取供电公司节点信息
|
||||
List<Tree> getGDInfoByDevice(@Param("devModel") Integer devModel, @Param("dataType") List<Integer> dataType, @Param("nodeIndex") int nodeIndex);
|
||||
|
||||
//根据条件获取变电站节点信息
|
||||
List<Tree> getSubInfoByDevice(@Param("devModel") Integer devModel, @Param("dataType") List<Integer> dataType, @Param("nodeIndex") int nodeIndex);
|
||||
|
||||
//根据条件获取装置节点信息
|
||||
List<Tree> getDevInfoByDevice(@Param("devModel") Integer devModel, @Param("dataType") List<Integer> dataType, @Param("nodeIndex") int nodeIndex);
|
||||
|
||||
//根据条件获取母线节点信息
|
||||
List<Tree> getSubvInfoByDevice(int nodeIndex);
|
||||
|
||||
//根据条件获取监测点节点信息
|
||||
List<Tree> getLineInfoByDevice(int nodeIndex);
|
||||
|
||||
|
||||
List<Tree> getTreeGdInfoByGw(List<Integer> index);
|
||||
|
||||
List<Tree> getTreeSubInfoByGw(List<Integer> index);
|
||||
|
||||
List<Tree> getTreeSubvInfoByGw(List<Integer> index);
|
||||
|
||||
List<Tree> getLineInfoByGw(List<Integer> index);
|
||||
|
||||
List<Tree> getScaleProVInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getScaleGdInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getScaleSubInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getScaleDevInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getScaleSubvInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getMancProVInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getMancGdInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getMancSubInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getMancDevInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getMancSubvInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getLoadTypeProVInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getLoadTypeGdInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getLoadTypeSubInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getLoadTypeDevInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getLoadTypeSubvInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getNodeTreeSubvInfo(List<Integer> index);
|
||||
|
||||
/*pq9900webtool专用专用*/
|
||||
List<Tree> getTreeGdInfoToWebTool(List<Integer> index);
|
||||
|
||||
List<Tree> getTreeSubInfoToWebTool(List<Integer> index);
|
||||
|
||||
List<Tree> getLineInfoToWebTool(List<Integer> index);
|
||||
|
||||
List<Tree> getTreeBySubv(@Param("subvIndex") Long subvIndex);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.data.Asses;
|
||||
import com.njcn.pojo.data.PqsComasses;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @version 1.0
|
||||
* @Date 2018/6/12 16:15
|
||||
*/
|
||||
public interface AssesMapper extends Mapper<Asses> {
|
||||
|
||||
//获取时间范围内,对应监测点的电压偏差
|
||||
Asses getVol(@Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("list") List<Integer> lineIds);
|
||||
|
||||
//获取对应范围内综合质量
|
||||
List<PqsComasses> getSynData(@Param("list")List<Integer> temp,@Param("startTime")Date startTime,@Param("endTime")Date endTime);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import com.njcn.pojo.data.DataLoss;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface DataLossMapper extends Mapper<DataLoss> {
|
||||
List<DataLoss> getDataLoss();//查询所有
|
||||
|
||||
List<DataLoss> getDataAll(@Param(value = "startTime") String start, @Param(value = "endTime") String end, @Param
|
||||
(value
|
||||
= "lineIndex") Long lineIndex);
|
||||
|
||||
List<DataLoss> getTj(@Param(value = "startTime") String start, @Param(value = "endTime") String end, @Param(value
|
||||
= "lineIndex") Long lineIndex);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import com.njcn.pojo.data.DatabaseRunning;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface DatabaseRunningMapper extends Mapper<DatabaseRunning> {
|
||||
List<DatabaseRunning> getDatabaseRunning();
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* system
|
||||
* 终端升级流水记录mapper
|
||||
* @author cdf
|
||||
* @date 2021/8/5
|
||||
*/
|
||||
public interface DevEdAssNapper{
|
||||
|
||||
Integer addUpDevAssDetail(@Param("devIndex") String devIndex, @Param("edIndex")String edIndex, @Param("updateTime")Date updateTime, @Param("updateUser")String updateUser, @Param("updateResult")Integer updateResult, @Param("state")Integer state);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import com.njcn.pojo.data.EventAss;
|
||||
import com.njcn.pojo.excelBody.EventAssExcelBody;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface EventAssMapper extends Mapper<EventAss>{
|
||||
|
||||
Integer getCountsByInterval(@Param("interTime") String interTime);
|
||||
|
||||
//获取该表所有数据,提供excel导出
|
||||
List<EventAssExcelBody> selectAllExcelData();
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import com.njcn.pojo.advanced.SagEvent;
|
||||
import com.njcn.pojo.commons.EventInfoDetail;
|
||||
import com.njcn.pojo.commons.SimpleValue;
|
||||
import com.njcn.pojo.commons.area.StatisticsEventDetail;
|
||||
import com.njcn.pojo.data.EventDetail;
|
||||
import com.njcn.pojo.data.EventDetailExcelBody;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface EventDetailMapper extends Mapper<EventDetail> {
|
||||
|
||||
List<EventDetail> queryVoltageList(@Param("startTime") Date startTime, @Param("endTime") Date endTime,
|
||||
@Param("list") List<Integer> linesIndex,@Param("waveType") String waveType,
|
||||
@Param("minfuzhi") BigDecimal minfuzhi, @Param("maxfuzhi")BigDecimal maxfuzhi, @Param("mintime")BigDecimal mintime,
|
||||
@Param("maxtime")BigDecimal maxtime, @Param("minseverity")BigDecimal minseverity, @Param("maxseverity")BigDecimal maxseverity,
|
||||
@Param("eventType")List<String> eventType, @Param("eventReason")List<String> eventReason, @Param("triggerType")List<Integer> triggerType,@Param("fileflag")Integer fileflag);
|
||||
|
||||
|
||||
|
||||
Integer getCountsByInterval(@Param("interTime") String interTime, @Param("list") List<Integer> temp);
|
||||
|
||||
/**
|
||||
* 区域分析画图需要的
|
||||
*/
|
||||
List<StatisticsEventDetail> queryEventDetail(@Param("startTime") Date startTime, @Param("endTime") Date endTime,
|
||||
@Param("list") List<Integer> linesIndex);
|
||||
|
||||
List<EventDetail> queryZj(@Param("startTime") String startTime, @Param("endTime") String endTime,
|
||||
@Param("start") String start,
|
||||
@Param("end") String end, @Param("lineId") Long linesIndex);
|
||||
|
||||
List<EventDetail> getrunevent(@Param(value = "lineIndex") List<Integer> lineIndex);
|
||||
|
||||
SimpleValue querySubLevel(@Param("startTime") Date sTime, @Param("endTime") Date eTime,
|
||||
@Param("subIndex") Integer integer, @Param("lineIndex") List<Integer> lineIndexTemp);
|
||||
|
||||
List<SimpleValue> queryLineLevel(@Param("startTime") Date sTime, @Param("endTime") Date eTime,
|
||||
@Param("lineIndex") List<Integer> integer);
|
||||
|
||||
/**
|
||||
* @高级算法部分增加查库操作
|
||||
*/
|
||||
Integer queryDealFlag(String indexEvt);
|
||||
|
||||
void updateDealFlag(@Param("code") Integer code, @Param("indexEvt") String indexEvt);
|
||||
|
||||
void updateCause(@Param("code") Integer code, @Param("indexEvt") String indexEvt);
|
||||
|
||||
/*******************************
|
||||
* 根据ID查询暂降原因/暂降类型描述
|
||||
*******************************/
|
||||
String querySagDescriptionbyId(@Param("code") Integer code, @Param("typename") String typename);
|
||||
|
||||
String querySagDescriptionbyIndex(@Param("indexEvt") String indexEvt);
|
||||
|
||||
/**
|
||||
* @高级算法更新数据库操作
|
||||
*/
|
||||
void updateSagData(@Param("sagEvent") SagEvent sagEvent);
|
||||
|
||||
/**
|
||||
* 根据监测点查时间范围内发生了多少次暂降次数
|
||||
*/
|
||||
Integer queryVoltageCountsByLineIndexs(@Param("list") List<Integer> tempLineIndexs,
|
||||
@Param("startTime") Date stratTime, @Param("endTime") Date endTime);
|
||||
|
||||
/**
|
||||
* 根据条件查询出暂降事件列表
|
||||
*/
|
||||
List<EventDetailExcelBody> getEventDetailList(@Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("list") List<Integer> temp);
|
||||
|
||||
|
||||
void updateSeverity(@Param("index") String eventDetailIndex, @Param("severity") Float severity);
|
||||
|
||||
Integer getPtType(@Param("eventIndex") String index);
|
||||
|
||||
List<SimpleValue> queryLineEvents(@Param("list") List<Integer> lineIndexs,
|
||||
@Param("startTime") Date stratTime, @Param("endTime") Date endTime);
|
||||
|
||||
EventInfoDetail eventDetailBaseInfoByIndex(@Param("eventdetailIndex") String eventdetailIndex);
|
||||
|
||||
EventDetail selectByIndex(String eventIndex);
|
||||
|
||||
EventDetail selectByTimeIdAndLineIndex(@Param("timeId")Date timeId, @Param("ms")Long ms, @Param("lineId")Long lineId);
|
||||
|
||||
Integer getSuspendByMonitor(@Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("list") List<Integer> list);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import com.njcn.pojo.commons.area.EventPz;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface EventPzMapper extends Mapper<EventPz> {
|
||||
List<EventPz> getZjsj(@Param(value = "lineIndex") List<Integer> lineIndex);
|
||||
|
||||
|
||||
/**
|
||||
* 处理暂降
|
||||
* @author cdf
|
||||
* @date 2022/7/15
|
||||
*/
|
||||
int dealEventWarn(@Param("list")List<String> list);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import com.njcn.pojo.data.GridTop;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface GridTopMapper extends Mapper<GridTop> {
|
||||
|
||||
//获取所有网络拓扑图
|
||||
List<GridTop> queryGridTop();
|
||||
|
||||
List<GridTop> getGirdTop(@Param(value = "vollevel") String vollevel);
|
||||
//获取某电压等级的最大序号
|
||||
int getMaxSequen(@Param(value = "vollevel") int vollevel);
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.commons.HistoryData;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface HistoryDataMapper extends Mapper<HistoryData> {
|
||||
//相电压有效值
|
||||
List<HistoryData> getXVrValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday") int flagday);
|
||||
//线电压有效值
|
||||
List<HistoryData> getLVrValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//电压偏差
|
||||
List<HistoryData> getDypc(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//三相电压不平衡度
|
||||
List<HistoryData> getSxbphd(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//电压不平衡
|
||||
List<HistoryData> getBphdy(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//电压总谐波畸变率
|
||||
List<HistoryData> getDyzjbl(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//电流有效值
|
||||
List<HistoryData> getDlyxz(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//负序电流
|
||||
List<HistoryData> getFxdl(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//频率
|
||||
List<HistoryData> getPl(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//谐波电压含有率(基波)
|
||||
List<HistoryData> getJbhyl(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//谐波电压含有率(N次谐波)
|
||||
List<HistoryData> getXbhyl(@Param("number")String number,@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//谐波电流幅值
|
||||
List<HistoryData> getXbdlfz(@Param("number")String number,@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//间谐波电压含有率
|
||||
List<HistoryData> getJxbhyl(@Param("innumber")String innumber,@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//有功功率
|
||||
List<HistoryData> getYggl(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//无功功率
|
||||
List<HistoryData> getWggl(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//视在功率
|
||||
List<HistoryData> getSzgl(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//电流总谐波畸变率
|
||||
List<HistoryData> getDlzjbl(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//长时闪变
|
||||
List<HistoryData> getCssb(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//短时闪变
|
||||
List<HistoryData> getDssb(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//电压波动
|
||||
List<HistoryData> getDybd(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//有功功率
|
||||
List<HistoryData> getYgzgl(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//无功功率
|
||||
List<HistoryData> getWgzgl(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//视在功率
|
||||
List<HistoryData> getSzzgl(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//视在功率因数
|
||||
List<HistoryData> getSzglys(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//位移功率因数
|
||||
List<HistoryData> getWyglys(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//视在功率因数
|
||||
List<HistoryData> getZSzglys(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//位移功率因数
|
||||
List<HistoryData> getZWyglys(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
|
||||
//谐波电压相角
|
||||
List<HistoryData> getXbVXj(@Param("number")String number,@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//谐波电流相角
|
||||
List<HistoryData> getXbIXj(@Param("number")String number,@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
|
||||
//谐波有功功率
|
||||
List<HistoryData> getXbYGGl(@Param("number")String number,@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
|
||||
//谐波无功功率
|
||||
List<HistoryData> getXbWGGl(@Param("number")String number,@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
|
||||
//谐波视在功率
|
||||
List<HistoryData> getXbSZGl(@Param("number")String number,@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import com.njcn.pojo.data.Relevance;
|
||||
import com.njcn.pojo.excelBody.RelevanceExcelBody;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @Date: 2018/11/13 10:27
|
||||
*/
|
||||
public interface IRelevanceMapper extends Mapper<Relevance> {
|
||||
|
||||
//获取该表所有数据,提供excel导出
|
||||
List<RelevanceExcelBody> selectAllExcelData();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import com.njcn.pojo.commons.SimpleValue;
|
||||
import com.njcn.pojo.commons.runmanage.IntergralityTable;
|
||||
import com.njcn.pojo.data.Integrity;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date 2018/4/11 15:53
|
||||
*/
|
||||
public interface IntegrityMapper extends Mapper<Integrity> {
|
||||
//根据监测点查询笼统的数据完整性
|
||||
SimpleValue selectIntegralityByLineIndexAndTime(@Param("list")List<Integer> temp, @Param("startTime")Date startTime, @Param("endTime")Date endTime);
|
||||
|
||||
//根据监测点查询笼统的数据完整性(国网)
|
||||
SimpleValue selectGwIntegralityByLineIndexAndTime(@Param("list")List<Integer> temp, @Param("startTime")Date startTime, @Param("endTime")Date endTime);
|
||||
|
||||
//根据监测点获取前20条数据,按完整性从低到高排序
|
||||
List<SimpleValue> selectGistIntegrality(@Param("list") List<Integer> temp, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
//查询监测点时间范围内详细的数据完整性
|
||||
List<IntergralityTable> selectIntegrityData(@Param("list") List<Integer> tempIndexs,@Param("startTime")Date startTime,@Param("endTime") Date endTime);
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.njcn.pojo.advanced.HarmonicRateInfo;
|
||||
import com.njcn.pojo.commons.SimpleValue;
|
||||
import com.njcn.pojo.commons.SteadyData;
|
||||
import com.njcn.pojo.commons.runmanage.SteadyTable;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.commons.device.ValueOfTargetanaly;
|
||||
import com.njcn.pojo.data.LimitRate;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date 2018/4/13 12:15
|
||||
*/
|
||||
public interface LimitRateMapper extends Mapper<LimitRate> {
|
||||
|
||||
ValueOfTargetanaly getsteadyoutoflimit(@Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("lineIndex") Long lineIndex);
|
||||
|
||||
//根据监测点索引获取时间范围内的频率偏差
|
||||
SimpleValue getFrequencyDevitaion(@Param("list") List<Integer> tempIndexs, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
//根据监测点索引、时间获取电压不平衡数据合格率
|
||||
SimpleValue getUBalane(@Param("list") List<Integer> tempIndexs, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
//根据监测点索引、时间获取电压畸变率合格率
|
||||
SimpleValue getUAberrance(@Param("list") List<Integer> lineIndexTemp, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
//根据监测点索引、时间获取电压偏差合格率
|
||||
SimpleValue getVoltageDeviation(@Param("list") List<Integer> tempIndexs, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
//根据监测点索引、时间获取闪变合格率
|
||||
SimpleValue getFlicker(@Param("list") List<Integer> tempIndexs, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
// 根据监测点索引、时间获取奇次电压合格率
|
||||
SimpleValue getOddVoltage(@Param("list") List<Integer> tempIndexs, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
// 根据监测点索引、时间获取偶次电压合格率
|
||||
SimpleValue getEventVoltage(@Param("list") List<Integer> tempIndexs, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
// 根据监测点索引、时间获取奇次电流合格率
|
||||
SimpleValue getOddElectric(@Param("list") List<Integer> tempIndexs, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
// 根据监测点索引、时间获取偶次电流合格率
|
||||
SimpleValue getEventElectric(@Param("list") List<Integer> tempIndexs, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
//根据时间获取所有监测点下的稳态各项指标的数据
|
||||
SteadyData getsteadData(@Param("list") List<Integer> tempIndexs, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
//获取时间范围内各监测点的电压不平衡/频率偏差/电压畸变率/电压偏差/闪变/奇次电压/偶次电压/奇次电流/偶次电流
|
||||
List<SteadyTable> getSteadyDataByT(@Param("list") List<Integer> tempIndexs, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
//获取时间范围内各监测点的电压不平衡/频率偏差/电压畸变率/电压偏差/闪变/奇次电压/偶次电压/奇次电流/偶次电流
|
||||
SteadyData getsteadDataByT(@Param("list") List<Integer> tempIndexs, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
List<HarmonicRateInfo> getHarmonicRate(@Param("start") Date startTime, @Param("end") Date endTime, @Param("list") List<Integer> list);
|
||||
|
||||
List<LimitRate> queryData(@Param("lineIndex") Integer lineIndex, @Param("startTime") String startTime, @Param("endTime") String endTime);
|
||||
|
||||
Long sumlimitRate(@Param("lineIndex") Integer lineIndex, @Param("timeId") Date timeId);
|
||||
|
||||
LimitRate selectLimitRate(@Param("lineIndex") Integer lineIndex, @Param("timeId") Date timeId);
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import com.njcn.pojo.data.LineMaps;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface LineMapsMapper extends Mapper<LineMaps> {
|
||||
|
||||
//获取所有监测点的地里信息图(已绑定事件的剔除)
|
||||
List<LineMaps> queryLineMaps(@Param("lstGDsql") List<Integer> lstGDsql);
|
||||
|
||||
|
||||
/*******************************
|
||||
* 获取监测点的经纬度及相应的信息根据归一化GUID
|
||||
* *****************************/
|
||||
List<LineMaps> queryLineMapByAssID(String eventass_index);
|
||||
|
||||
/**
|
||||
* 获取所有监测点的地里信息图
|
||||
* @author cdf
|
||||
* @date 2021/6/2
|
||||
*/
|
||||
List<LineMaps> queryLineMapsForAll(@Param("lstGDsql") List<Integer> lstGDsql);
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import com.njcn.pojo.data.LogBackUp;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
/** @Author denghuajun
|
||||
* @Description //TODO 日志备份mapper
|
||||
* @Date 2018/9/26 10:26
|
||||
**/
|
||||
public interface LogBackUpMapper extends Mapper<LogBackUp> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import com.njcn.pojo.data.Maps;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface MapMapper extends Mapper<Maps> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.njcn.pojo.data.OfflLog;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface OfflLogMapper extends Mapper<OfflLog> {
|
||||
List<String> getYearByGd(List<Integer> index);
|
||||
List<OfflLog> getSETimeByIndex(Long lineIndex);
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import com.njcn.pojo.commons.SimpleValue;
|
||||
import com.njcn.pojo.commons.runmanage.OnlineRateData;
|
||||
import com.njcn.pojo.data.OnlineRate;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface OnlineRateMapper extends Mapper<OnlineRate> {
|
||||
|
||||
SimpleValue selectOnlineRateByDeviceIndexAndTime(@Param("list") List<Integer> list, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
List<SimpleValue> selectCityOnlineRate(@Param("list") List<Integer> temp, @Param("startTime")Date startTime,@Param("endTime")Date endTime);
|
||||
|
||||
//运行管理--》终端在线率
|
||||
List<OnlineRateData> selectOnlineRate(@Param("list")List<Integer> deviceIndexs, @Param("startTime")Date startTime, @Param("endTime")Date endTime);
|
||||
|
||||
//根据监测点查询国网的在线率
|
||||
Float getGWOnlineRate(@Param("list")List<Integer> lineIndex, @Param("startTime")Date startTime, @Param("endTime")Date endTime);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.data.SynData;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface SynDataMapper extends Mapper<SynData> {
|
||||
void deleteByIndex(@Param("myIndex") int myIndex, @Param("node") Long node);
|
||||
|
||||
Float getSynData(@Param("myIndex") int myIndex, @Param("node") Long node);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.excelreport;
|
||||
|
||||
import com.njcn.pojo.excelreport.ConditionData;
|
||||
import com.njcn.pojo.excelreport.ReportValueData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface GetDistortionMapper {
|
||||
List<ReportValueData> getDistortionData(@Param("conditionData") ConditionData conditionData, @Param("str") String str);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.njcn.mapper.excelreport;
|
||||
|
||||
import com.njcn.pojo.excelreport.ConditionData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface GetFlickerMapper {
|
||||
List<Map<String, Object>> getFlickerData(@Param("conditionData") ConditionData conditionData);
|
||||
|
||||
List<Map<String, Object>> getLFlickerData(@Param("conditionData") ConditionData conditionData);
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.njcn.mapper.excelreport;
|
||||
|
||||
import com.njcn.pojo.excelreport.ConditionData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface GetFpyDataMapper {
|
||||
//flag标识查询方式
|
||||
List<Map<String, Object>> getFpy(@Param("conditionData") ConditionData conditionData, @Param("list") List<Integer> list, @Param("flag") int flag);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.excelreport;
|
||||
|
||||
import com.njcn.pojo.excelreport.ConditionData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface GetFrequencyMapper {
|
||||
List<Map<String, Object>> getFrequencyData(@Param("conditionData") ConditionData conditionData);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.excelreport;
|
||||
|
||||
import com.njcn.pojo.excelreport.ConditionData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface GetICurrentDataMapper {
|
||||
List<Map<String, Object>> getICurrent(@Param("conditionData") ConditionData conditionData, @Param("listValue") List<Integer> list);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.excelreport;
|
||||
|
||||
import com.njcn.pojo.excelreport.ConditionData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface GetInICurrentDataMapper {
|
||||
List<Map<String, Object>> getICurrent(@Param("conditionData") ConditionData conditionData, @Param("listValue") List<Integer> list);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.njcn.mapper.excelreport;
|
||||
|
||||
import com.njcn.pojo.excelreport.ConditionData;
|
||||
import com.njcn.pojo.excelreport.ReportValueData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface GetInVoltageRateDataMapper {
|
||||
List<Map<String, Object>> getInVoltageRate(@Param("conditionData") ConditionData conditionData, @Param("listValue") List<Integer> list);
|
||||
|
||||
List<ReportValueData> getInFirstHarmonic(@Param("conditionData") ConditionData conditionData);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.excelreport;
|
||||
|
||||
import com.njcn.pojo.excelreport.ConditionData;
|
||||
import com.njcn.pojo.excelreport.ReportValueData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface GetPowerMapper {
|
||||
List<ReportValueData> getPower(@Param("conditionData") ConditionData conditionData, @Param("str") String str);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.excelreport;
|
||||
|
||||
import com.njcn.pojo.excelreport.ConditionData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface GetThreephaseMapper {
|
||||
List<Map<String, Object>> getThreephase(@Param("conditionData") ConditionData conditionData, @Param("str") String str);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.excelreport;
|
||||
|
||||
import com.njcn.pojo.excelreport.ConditionData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface GetVdeviationMapper {
|
||||
List<Map<String, Object>> getVdeviationData(@Param("conditionData") ConditionData conditionData);
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.njcn.mapper.excelreport;
|
||||
|
||||
import com.njcn.pojo.excelreport.ConditionData;
|
||||
import com.njcn.pojo.excelreport.ReportValueData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Author: Sunwei 【sunW2016@163.com】
|
||||
* @Description:
|
||||
* @Date: Create in 10:46 2018/6/7
|
||||
* @Modified By:
|
||||
*/
|
||||
public interface GetVirtualMapper {
|
||||
Integer getTotalCP95(@Param("conditionData") ConditionData conditionData, @Param("tableName") String tableName);
|
||||
|
||||
Integer getTotalPltCP95(@Param("conditionData") ConditionData conditionData, @Param("tableName") String tableName);
|
||||
|
||||
Integer getTotalPstCP95(@Param("conditionData") ConditionData conditionData, @Param("tableName") String tableName);
|
||||
|
||||
List<ReportValueData> getVirtualData(@Param("conditionData") ConditionData conditionData, @Param("tableName") String tableName);
|
||||
|
||||
Map<String, Object> getVVirtualData(@Param("conditionData") ConditionData conditionData);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.excelreport;
|
||||
|
||||
import com.njcn.pojo.excelreport.ConditionData;
|
||||
import com.njcn.pojo.excelreport.ReportValueData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface GetVoltageDataMapper {
|
||||
List<ReportValueData> getVoltageData(@Param("conditionData") ConditionData conditionData);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.njcn.mapper.excelreport;
|
||||
|
||||
import com.njcn.pojo.excelreport.ConditionData;
|
||||
import com.njcn.pojo.excelreport.ReportValueData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface GetVoltageRateDataMapper {
|
||||
List<Map<String, Object>> getVoltageRate(@Param("conditionData") ConditionData conditionData, @Param("listValue") List<Integer> list);
|
||||
|
||||
List<ReportValueData> getFirstHarmonic(@Param("conditionData") ConditionData conditionData);
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.njcn.mapper.excelreport;
|
||||
|
||||
import com.njcn.pojo.data.LimitRate;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public interface PercentMapper {
|
||||
LimitRate getFpy(@Param("list") List<Integer> list, @Param("pointIndex") Integer pointIndex, @Param("start") Date startTime, @Param("end") Date endTime);
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.njcn.mapper.log;
|
||||
|
||||
import com.njcn.pojo.log.UserLogDetail;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface UserLogDetailMapper extends Mapper<UserLogDetail> {
|
||||
List<UserLogDetail> getUserLog();
|
||||
|
||||
List<UserLogDetail> getWarnInfo();
|
||||
|
||||
Float getMemoInfo();
|
||||
|
||||
public void delExpireLog(@Param("endTime") Date endTime);//删除过期日志
|
||||
|
||||
List<UserLogDetail> getDangerInfo();
|
||||
|
||||
List<UserLogDetail> getUserLogId(@Param("username") String username, @Param("type") String type, @Param("name") String name, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
//统计事件类型
|
||||
List<UserLogDetail> geteventtype(@Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
//统计详细事件
|
||||
List<UserLogDetail> getdetailtype(@Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
//统计用户
|
||||
List<UserLogDetail> getUserStatistics(@Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
//统计月份
|
||||
Integer getdetailmonth(@Param("month") String month);
|
||||
|
||||
void changeState(@Param("list") List<String> indexs);
|
||||
|
||||
List<UserLogDetail> getSjtj(@Param("username") String username, @Param("type") String type, @Param("name") String name, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.njcn.mapper.log;
|
||||
|
||||
import com.njcn.pojo.log.UserLog;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface UserLogMapper extends Mapper<UserLog> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.njcn.mapper.log;
|
||||
|
||||
import com.njcn.pojo.log.UserLogin;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface UserLoginMapper extends Mapper<UserLogin> {
|
||||
|
||||
List<UserLogin> getUserLogin(@Param(value = "startTime") String startTime, @Param(value = "endTime") String endTime);
|
||||
|
||||
//获取用户最近一次的登录信息
|
||||
UserLogin getLastedLogin(String userIndex);
|
||||
}
|
||||
@@ -0,0 +1,156 @@
|
||||
package com.njcn.mapper.plate;
|
||||
|
||||
import com.njcn.pojo.plate.PlateData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface PlateDataMapper extends Mapper<PlateData> {
|
||||
//正向有功电能
|
||||
List<PlateData> getZYGDNValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//反向有功电能
|
||||
List<PlateData> getFYGDNValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//组合有功电能
|
||||
List<PlateData> getZHYGDNValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限1无功电能
|
||||
List<PlateData> getXOneWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限2无功电能
|
||||
List<PlateData> getXTwoWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限3无功电能
|
||||
List<PlateData> getXThreeWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限4无功电能
|
||||
List<PlateData> getXFourWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//组合1无功电能
|
||||
List<PlateData> getZHOneValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//组合2无功电能
|
||||
List<PlateData> getZHTwoValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总正向有功电能
|
||||
List<PlateData> getSXZYGDNValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总反向有功电能
|
||||
List<PlateData> getSXFYGDNValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总组合有功电能
|
||||
List<PlateData> getSXZHYGDNValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总象限1无功电能
|
||||
List<PlateData> getSXXOneWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总象限2无功电能
|
||||
List<PlateData> getSXXTwoWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总象限3无功电能
|
||||
List<PlateData> getSXXThreeWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总象限4无功电能
|
||||
List<PlateData> getSXXFourWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总组合1无功电能
|
||||
List<PlateData> getSXZHOneValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总组合2无功电能
|
||||
List<PlateData> getSXZHTwoValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//正向视在电能
|
||||
List<PlateData> getZSZDNValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//反向视在电能
|
||||
List<PlateData> getFSZDNValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总正向视在电能
|
||||
List<PlateData> getSXZSZDNValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总反向视在电能
|
||||
List<PlateData> getSXFSZDNValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//正向基波有功电能
|
||||
List<PlateData> getZJBYGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//反向基波有功电能
|
||||
List<PlateData> getFJBYGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//组合基波有功电能
|
||||
List<PlateData> getZHJBYGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限1基波无功电能
|
||||
List<PlateData> getXOneJBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限2基波无功电能
|
||||
List<PlateData> getXTwoJBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限3基波无功电能
|
||||
List<PlateData> getXThreeJBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限4基波无功电能
|
||||
List<PlateData> getXFourJBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//组合1基波无功电能
|
||||
List<PlateData> getZHOneJBValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//组合2基波无功电能
|
||||
List<PlateData> getZHTwoJBValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//正向总谐波有功电能
|
||||
List<PlateData> getZZXBYGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//向总谐波有功电能
|
||||
List<PlateData> getFZXBYGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//组合总谐波有功电能
|
||||
List<PlateData> getZHZXBYGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限2总谐波无功电能
|
||||
List<PlateData> getXOneZXBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限2总谐波无功电能
|
||||
List<PlateData> getXTwoZXBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限3总谐波无功电能
|
||||
List<PlateData> getXThreeZXBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限4总谐波无功电能
|
||||
List<PlateData> getXFourZXBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//组合1总谐波无功电能
|
||||
List<PlateData> getZHOneZXBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//组合2总谐波无功电能
|
||||
List<PlateData> getZHTwoZXBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总正向基波有功电能
|
||||
List<PlateData> getSXZJBYGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总反向基波有功电能
|
||||
List<PlateData> getSXFJBYGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总组合基波有功电能
|
||||
List<PlateData> getSXZHJBYGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总象限1基波无功电能
|
||||
List<PlateData> getSXXOneJBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限2基波无功电能
|
||||
List<PlateData> getSXXTwoJBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总象限3基波无功电能
|
||||
List<PlateData> getSXXThreeJBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总象限4基波无功电能
|
||||
List<PlateData> getSXXFourJBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//组合1基波无功电能
|
||||
List<PlateData> getSXZHOneJBValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总组合2基波无功电能
|
||||
List<PlateData> getSXZHTwoJBValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总正向总谐波有功电能
|
||||
List<PlateData> getSXZZXBYGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总反向总谐波有功电能
|
||||
List<PlateData> getSXFZXBYGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总组合总谐波有功电能
|
||||
List<PlateData> getSXZHZXBYGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总象限2总谐波无功电能
|
||||
List<PlateData> getSXXOneZXBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总象限2总谐波无功电能
|
||||
List<PlateData> getSXXTwoZXBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总象限3总谐波无功电能
|
||||
List<PlateData> getSXXThreeZXBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总象限4总谐波无功电能
|
||||
List<PlateData> getSXXFourZXBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总组合1总谐波无功电能
|
||||
List<PlateData> getSXZHOneZXBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总组合2总谐波无功电能
|
||||
List<PlateData> getSXZHTwoZXBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//1-50次正向谐波有功电能
|
||||
List<PlateData> getZXBYGValue(@Param("number")String number,@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//1-50次反向谐波有功电能
|
||||
List<PlateData> getFXBYGValue(@Param("number")String number,@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//1-50次I象限谐波无功电能
|
||||
List<PlateData> getXOneXBWGValue(@Param("number")String number,@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//1-50次II象限谐波无功电能
|
||||
List<PlateData> getXTwoXBWGValue(@Param("number")String number,@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//1-50次III象限谐波无功电能
|
||||
List<PlateData> getXThreeXBWGValue(@Param("number")String number,@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//1-50次IV象限谐波无功电能
|
||||
List<PlateData> getXFourXBWGValue(@Param("number")String number,@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//正向总谐波有功需量
|
||||
List<PlateData> getZYGXLValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//反向总谐波有功需量
|
||||
List<PlateData> getFYGXLValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//组合总谐波有功需量
|
||||
List<PlateData> getZHYGXLValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限2总谐波无功需量
|
||||
List<PlateData> getXOneWGXLValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限2总谐波无功需量
|
||||
List<PlateData> getXTwoWGXLValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限3总谐波无功需量
|
||||
List<PlateData> getXThreeWGXLValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限4总谐波无功需量
|
||||
List<PlateData> getXFourWGXLValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//组合1总谐波无功需量
|
||||
List<PlateData> getZHOneWGXLValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//组合2总谐波无功需量
|
||||
List<PlateData> getZHTwoWGXLValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.njcn.mapper.plate;
|
||||
|
||||
import com.njcn.pojo.plate.PlateReportData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface PlateReportDataMapper extends Mapper<PlateReportData> {
|
||||
//有功电能(月)
|
||||
List<PlateReportData> getYGDNMonthValue(@Param("rateA") String rateA,@Param("rateB")String rateB,@Param("rateC")String rateC,
|
||||
@Param("rateD")String rateD,@Param("lineIndex")Long lineIndex,
|
||||
@Param("syllableName")String syllableName,@Param("startTime")String startTime,
|
||||
@Param("endTime")String endTime);
|
||||
//有功电能(季度、年)
|
||||
List<PlateReportData> getYGDNYearValue(@Param("rateA") String rateA,@Param("rateB")String rateB,@Param("rateC")String rateC,
|
||||
@Param("rateD")String rateD,@Param("lineIndex")Long lineIndex,
|
||||
@Param("syllableName")String syllableName,@Param("startTime")String startTime,
|
||||
@Param("endTime")String endTime);
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.njcn.mapper.point;
|
||||
|
||||
import com.njcn.pojo.pointInfo.LineLedger;
|
||||
import com.njcn.pojo.pointInfo.LineLedgerVO;
|
||||
import com.njcn.pojo.pointInfo.PointInfo;
|
||||
import com.njcn.pojo.terminal.DeviceUnitVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Author: Sunwei 【sunW2016@163.com】
|
||||
* @Description:
|
||||
* @Date: Create in 10:39 2018/5/28
|
||||
* @Modified By:
|
||||
*/
|
||||
public interface PointBaseInfoMapper {
|
||||
PointInfo getPointInfo(@Param("pointIndex") Integer pointIndex);
|
||||
|
||||
PointInfo getInfo(@Param("lineId") Integer lineId);
|
||||
|
||||
PointInfo getFlowInfo(@Param("pointIndex") Integer pointIndex);
|
||||
|
||||
Map<String, Object> getOverLimit(@Param("pointIndex") Integer pointIndex);
|
||||
|
||||
List<Integer> getDeptsLineIndex(@Param("deptsIndex")String deptsIndex,@Param("sysIndex")String sysIndex);
|
||||
|
||||
List<LineLedger> getLineLedger(@Param("lineList")List<Integer> lineList,@Param("loadTypeList")List<String> loadTypeList,@Param("scaleList")List<String> scaleList,@Param("status")Integer status,@Param("type")Integer type);
|
||||
|
||||
|
||||
DeviceUnitVO lineUnitDetail(@Param("lineId")Integer lineId);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.njcn.mapper.system;
|
||||
|
||||
import com.njcn.pojo.system.SubSystem;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date: 2019/9/24 11:19
|
||||
*/
|
||||
public interface SystemMapper extends Mapper<SubSystem> {
|
||||
|
||||
void unDefaultSubSystem(String systemIndex);
|
||||
|
||||
void defaultSubSystem(String systemIndex);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.njcn.mapper.system;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.njcn.pojo.system.Theme;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date: 2019/9/24 11:20
|
||||
*/
|
||||
public interface ThemeMapper extends Mapper<Theme> {
|
||||
List<Theme> getThemeList();
|
||||
|
||||
int setAllZero();
|
||||
|
||||
int updateByIndex(String themeIndex);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.tiansu;
|
||||
|
||||
import com.njcn.pojo.tiansu.Tenant;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @Date: 2018/7/19 13:47
|
||||
*/
|
||||
public interface TenantMapper extends Mapper<Tenant> {
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.tiansu;
|
||||
|
||||
import com.njcn.pojo.tiansu.Tokenif;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @Date: 2018/7/16 14:12
|
||||
*/
|
||||
public interface TokenMapper extends Mapper<Tokenif> {
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.njcn.mapper.user;
|
||||
|
||||
import com.njcn.pojo.user.AppUser;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date: 2019/10/17 11:35
|
||||
*/
|
||||
public interface AppUserMapper extends Mapper<AppUser> {
|
||||
void updateAppByPrimaryKeyBySql(AppUser appUser);
|
||||
int deleteAppUserByIndex(@Param(value = "userIndex") String index);
|
||||
int deleteAppUserIndex(@Param(value = "userIndex") String index);
|
||||
List<AppUser> getAppPhone(@Param(value = "phone") String phone, @Param(value = "state") int state);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.njcn.mapper.user;
|
||||
|
||||
import com.njcn.pojo.user.DeptsGd;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface DeptsGdMapper extends Mapper<DeptsGd> {
|
||||
List<DeptsGd> selectAllGd(String deptsIndex);
|
||||
int deleteDeptGd(DeptsGd deptsGd);
|
||||
int isNode(String deptsIndex);
|
||||
int deleteNowDeptGd(@Param("gdIndex") Long gdIndex,@Param("sysType") String sysType);
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.njcn.mapper.user;
|
||||
|
||||
import com.njcn.pojo.data.IndexsCount;
|
||||
import com.njcn.pojo.user.Depts;
|
||||
import com.njcn.pojo.user.DeptsLine;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface DeptsLineMapper extends Mapper<DeptsLine> {
|
||||
List<DeptsLine> getBind(String deptsIndex);
|
||||
int changeBindLine(@Param("deptsIndex") String deptsIndex, @Param("index") Integer index, @Param("sysType") String sysType);
|
||||
|
||||
/**
|
||||
* 根据部门以及系统类型,获取出监测点、变电站、装置、供电公司的索引
|
||||
*/
|
||||
List<IndexsCount> selectIndexsByDept(@Param("deptsIndex") String deptsIndex, @Param("sysType") String sysType, @Param("devModel") Integer devModel, @Param("dataType") List<Integer> dataType);
|
||||
|
||||
List<IndexsCount> selectIndexsByDeptPlate(@Param("deptsIndex") String deptsIndex, @Param("sysType") String sysType, @Param("devModel") Integer devModel, @Param("dataType") List<Integer> dataType);
|
||||
|
||||
/**
|
||||
* 根据一些列部门以及系统类型,获取出监测点、变电站、装置、供电公司的索引
|
||||
*/
|
||||
List<IndexsCount> selectIndexsByDepts(@Param("depts") List<Depts> depts, @Param("sysType") String sysType, @Param("devModel") Integer devModel, @Param("dataType") List<Integer> dataType);
|
||||
|
||||
List<IndexsCount> selectIndexsByDeptsPlate(@Param("depts") List<Depts> depts, @Param("sysType") String sysType, @Param("devModel") Integer devModel, @Param("dataType") List<Integer> dataType);
|
||||
|
||||
/***
|
||||
* 查询父节点是否绑定了监测点
|
||||
*/
|
||||
int selectLine(@Param("deptsIndex") String deptsIndex,@Param("sysType") String sysType);
|
||||
|
||||
List<IndexsCount> selectIndexsByDeptsRun(@Param("depts") List<Depts> depts, @Param("sysType") String sysType, @Param("devModel") Integer devModel, @Param("dataType") List<Integer> dataType, @Param("devStatus") Integer devicdStatus,@Param("status")Integer status);
|
||||
|
||||
List<IndexsCount> selectIndexsByDeptRun(@Param("deptsIndex") String deptsIndex, @Param("sysType") String sysType, @Param("devModel") Integer devModel, @Param("dataType") List<Integer> dataType,@Param("devStatus") Integer devicdStatus,@Param("status")Integer status);
|
||||
|
||||
|
||||
//扩展上面两个sql(多关联了一个pq_linedetail表)
|
||||
List<IndexsCount> selectIndexsByDeptsRunForStatFlag(@Param("depts") List<Depts> depts, @Param("sysType") String sysType, @Param("devModel") Integer devModel, @Param("dataType") List<Integer> dataType, @Param("devStatus") Integer devicdStatus,@Param("status")Integer status);
|
||||
|
||||
List<IndexsCount> selectIndexsByDeptRunForStatFlag(@Param("deptsIndex") String deptsIndex, @Param("sysType") String sysType, @Param("devModel") Integer devModel, @Param("dataType") List<Integer> dataType,@Param("devStatus") Integer devicdStatus,@Param("status")Integer status);
|
||||
}
|
||||
@@ -0,0 +1,154 @@
|
||||
package com.njcn.mapper.user;
|
||||
|
||||
import com.njcn.pojo.user.DeptslineTree;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface DeptsLineTreeMapper extends Mapper<DeptslineTree> {
|
||||
|
||||
//虚拟
|
||||
//自定义未绑定的
|
||||
List<DeptslineTree> getTreeGdInfoX(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeProVInfosX(Map<String, Object> optionMap);
|
||||
|
||||
|
||||
List<DeptslineTree> getOffTreeProVInfoX(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeSubInfoX(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeLineInfoX(Map<String, Object> optionMap);
|
||||
|
||||
//本身绑定的(自定义、非自定义通用)
|
||||
List<DeptslineTree> getTreeGdInfomyselfX(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeProVInfosmyselfX(Map<String, Object> optionMap);
|
||||
|
||||
|
||||
List<DeptslineTree> getOffTreeProVInfomyselfX(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeSubInfomyselfX(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeLineInfomyselfX(Map<String, Object> optionMap);
|
||||
|
||||
//非自定义未绑定的
|
||||
List<DeptslineTree> getTreeGdInfonoX(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeProVInfonoX(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeProVInfonoareaX(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeSubInfonoX(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeLineInfonoX(Map<String, Object> optionMap);
|
||||
|
||||
//非自定义已绑定的
|
||||
List<DeptslineTree> getTreeGdInfootherX(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeProVInfootherX(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeProVInfootherareaX(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeSubInfootherX(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeLineInfootherX(Map<String, Object> optionMap);
|
||||
|
||||
|
||||
//自定义未绑定的
|
||||
List<DeptslineTree> getTreeGdInfoZ(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeProVInfosZ(Map<String, Object> optionMap);
|
||||
|
||||
|
||||
List<DeptslineTree> getOffTreeProVInfoZ(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeSubInfoZ(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeLineInfoZ(Map<String, Object> optionMap);
|
||||
|
||||
//本身绑定的(自定义、非自定义通用)
|
||||
List<DeptslineTree> getTreeGdInfomyselfZ(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeProVInfosmyselfZ(Map<String, Object> optionMap);
|
||||
|
||||
|
||||
List<DeptslineTree> getOffTreeProVInfomyselfZ(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeSubInfomyselfZ(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeLineInfomyselfZ(Map<String, Object> optionMap);
|
||||
|
||||
//非自定义未绑定的
|
||||
List<DeptslineTree> getTreeGdInfonoZ(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeProVInfonoZ(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeProVInfonoareaZ(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeSubInfonoZ(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeLineInfonoZ(Map<String, Object> optionMap);
|
||||
|
||||
//非自定义已绑定的
|
||||
List<DeptslineTree> getTreeGdInfootherZ(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeProVInfootherZ(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeProVInfootherareaZ(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeSubInfootherZ(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeLineInfootherZ(Map<String, Object> optionMap);
|
||||
|
||||
//离线
|
||||
|
||||
//自定义未绑定的
|
||||
List<DeptslineTree> getTreeGdInfoL(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeProVInfosL(Map<String, Object> optionMap);
|
||||
|
||||
|
||||
List<DeptslineTree> getOffTreeProVInfoL(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeSubInfoL(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeLineInfoL(Map<String, Object> optionMap);
|
||||
|
||||
//本身绑定的(自定义、非自定义通用)
|
||||
List<DeptslineTree> getTreeGdInfomyselfL(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeProVInfosmyselfL(Map<String, Object> optionMap);
|
||||
|
||||
|
||||
List<DeptslineTree> getOffTreeProVInfomyselfL(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeSubInfomyselfL(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeLineInfomyselfL(Map<String, Object> optionMap);
|
||||
|
||||
//非自定义未绑定的
|
||||
List<DeptslineTree> getTreeGdInfonoL(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeProVInfonoL(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeProVInfonoareaL(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeSubInfonoL(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeLineInfonoL(Map<String, Object> optionMap);
|
||||
|
||||
//非自定义已绑定的
|
||||
List<DeptslineTree> getTreeGdInfootherL(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeProVInfootherL(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeProVInfootherareaL(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeSubInfootherL(Map<String, Object> optionMap);
|
||||
|
||||
List<DeptslineTree> getOffTreeLineInfootherL(Map<String, Object> optionMap);
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
package com.njcn.mapper.user;
|
||||
|
||||
import com.njcn.pojo.user.Depts;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface DeptsMapper extends Mapper<Depts> {
|
||||
//查询Id
|
||||
Depts selectName(@Param(value = "parentNodeId") String parentNodeId);
|
||||
|
||||
//查除去自己的父节点
|
||||
List<Depts> selparentnode(@Param(value = "deptsIndex") String deptsIndex);
|
||||
|
||||
List<Depts> selectDeptAll();
|
||||
|
||||
List<Depts> selectDeptAlls();
|
||||
|
||||
//查询除此之外的名称
|
||||
List<Depts> selName(@Param(value = "deptsIndex") String deptsIndex);
|
||||
|
||||
int updateDepts(Depts depts);
|
||||
|
||||
//根据区域名模糊查询部门
|
||||
Depts queryDeptsByLikeAreaName(@Param("area") String area);
|
||||
|
||||
//根据选中的部门进行查询
|
||||
List<Depts> getId(@Param(value = "deptsIndex") String deptsIndex);
|
||||
|
||||
//获取行政名称
|
||||
List<String> getAreaName();
|
||||
|
||||
Depts selByName(@Param(value = "detpsName") String detpsName);
|
||||
|
||||
//判断desc是否缺失
|
||||
int getDeficDesc(@Param(value = "parentNodeId") String parentNodeId);
|
||||
|
||||
/**
|
||||
* 判断是否有子节点
|
||||
*/
|
||||
List<Depts> getNodeLength(@Param(value = "parentNodeId") String parentNodeId);
|
||||
|
||||
String getParentArea(@Param("area") String area);
|
||||
|
||||
/**
|
||||
* 根据父节点获取直接下属部门
|
||||
*/
|
||||
List<Depts> getDirectDeptsByNode(String node);
|
||||
|
||||
|
||||
List<Depts> getNoDirectDeptsByNode(String node);
|
||||
/**
|
||||
* 根据父节点获取其下子子孙孙部门
|
||||
*/
|
||||
List<Depts> getDeptsByNode(String node);
|
||||
|
||||
/**
|
||||
* 根据部门索引获取部门详细信息
|
||||
*/
|
||||
Depts selectDeptsByDeptsIndex(String deptsIndex);
|
||||
|
||||
//根据省份ID查询子部门
|
||||
List<Depts> getDeptsByNodeUp(String deptsIndex);
|
||||
|
||||
|
||||
|
||||
List<Depts> getAllDeptByPro(@Param("proIndex")Long proIndex);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.user;
|
||||
|
||||
import com.njcn.pojo.user.Permission;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date 2018/4/2 11:44
|
||||
*/
|
||||
public interface FunctionMapper extends Mapper<Permission> {
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.njcn.mapper.user;
|
||||
|
||||
import com.njcn.pojo.user.ManageList;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ManageListMapper extends Mapper<ManageList>{
|
||||
List<ManageList> selectOneByIndex(String res_Index);
|
||||
int updateManageList(@Param("res_Index") String res_Index,@Param("name") String name,@Param("type") String type,
|
||||
@Param("description") String
|
||||
description,@Param("sysType") String sysType,@Param("updateUser") String updateUser);
|
||||
int deleteIndex(String res_Index);
|
||||
|
||||
ManageList selectTypeId(@Param("res_Index") String res_Index,@Param("sysType") String sysType);
|
||||
|
||||
List<ManageList> getBasemang(@Param("sysType") String sysType);
|
||||
List<ManageList> getReport(@Param("sysType") String sysType);
|
||||
List<ManageList> getSub(@Param("sysType") String sysType);
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.njcn.mapper.user;
|
||||
|
||||
import com.njcn.pojo.user.Permission;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface PermissionMapper extends Mapper<Permission> {
|
||||
|
||||
List<Permission> queryPermissionByRoleIndex(@Param("roleIndex")String roleIndex, @Param("sysType")String sysType);
|
||||
|
||||
List<Permission> queryPermissionByTwoIndex(@Param("roleIndex")String roleIndex, @Param("sysType")String sysType,@Param("node")Integer node);
|
||||
|
||||
List<String> queryPermissionsByRoleIndex(String roleIndex);
|
||||
|
||||
void removeByIndex(@Param("roleIndex")String roleIndex, @Param("permissionIndex")String string);
|
||||
|
||||
void addByIndex(@Param("roleIndex")String roleIndex, @Param("permissionIndex")String string);
|
||||
|
||||
List<Permission> quarrAll(@Param("nodeIndex")Integer nodeIndex,@Param("parentIndex") Integer parentIndex,@Param
|
||||
("sysType")String sysType);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.njcn.mapper.user;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.user.PermissionTree;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface PermissionTreeMapper extends Mapper<PermissionTree> {
|
||||
List<PermissionTree> getfirstData(String sysType);
|
||||
|
||||
List<PermissionTree> getsecondData(@Param("first") List<Integer> first, @Param("sysType") String sysType);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.user;
|
||||
|
||||
import com.njcn.pojo.user.RoleFunction;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date 2018/4/2 11:42
|
||||
*/
|
||||
public interface RoleFunctionMapper extends Mapper<RoleFunction> {
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.user;
|
||||
|
||||
import com.njcn.pojo.user.RoleGPAss;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date 2018/4/2 10:55
|
||||
*/
|
||||
public interface RoleGPAssMapper extends Mapper<RoleGPAss> {
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.njcn.mapper.user;
|
||||
|
||||
import com.njcn.pojo.user.Role;
|
||||
import com.njcn.pojo.user.RoleGroup;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface RoleGroupMapper extends Mapper<RoleGroup> {
|
||||
//增
|
||||
int insertRole(RoleGroup role);
|
||||
//删
|
||||
int deleteRole(RoleGroup role);
|
||||
//改
|
||||
int updateRole(RoleGroup role);
|
||||
//查询Id
|
||||
RoleGroup selectRoleIndex(String roleIndex);
|
||||
List<Role> getRoleName(@Param("roleGpIndex") String roleGpIndex,@Param("sysType") String sysType,@Param("list") List<String> list);
|
||||
|
||||
List<RoleGroup> selectAllName(@Param("roleDescription")List<String> roleDescription);
|
||||
void deleteByGpIndex(@Param("roleGpIndex") String roleGpIndex,@Param("sysType") String sysType);
|
||||
void addASS(@Param("userIndex") String userIndex, @Param("index") String index,@Param("sysType")String sysType);
|
||||
|
||||
List<RoleGroup> getAllManagerRoleGroup(@Param("roleGroupNames")List<String> managerRolegroup);
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.njcn.mapper.user;
|
||||
|
||||
import com.njcn.pojo.user.Role;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface RoleMapper extends Mapper<Role> {
|
||||
//增
|
||||
int insertRole(Role role);
|
||||
//删
|
||||
int deleteRole(Role role);
|
||||
//改
|
||||
int updateRole(Role role);
|
||||
//查询Id
|
||||
Role selectRoleIndex(String roleIndex);
|
||||
//根据角色名模糊查询所有
|
||||
List<Role> queryNameAll(@Param(value = "roleName") String roleName);
|
||||
//查
|
||||
List<Role> selectAll();
|
||||
//查
|
||||
List<Role> selectAlls(@Param("list") List<String> list);
|
||||
//查找名字
|
||||
int selName(@Param(value = "roleName") String roleName);
|
||||
/**
|
||||
* 根据角色组的索引,获取所有角色名
|
||||
* */
|
||||
List<String> getRoles(String roleGPIndex);
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.njcn.mapper.user;
|
||||
|
||||
import com.njcn.pojo.user.SecretKey;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date 2018/3/26 22:29
|
||||
*/
|
||||
public interface SecretKeyMapper extends Mapper<SecretKey> {
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.njcn.mapper.user;
|
||||
|
||||
import com.njcn.pojo.user.*;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface TfLgAssMapper extends Mapper<TfLgAss> {
|
||||
List<TfLgAss> selectIdAll(@Param(value = "tfIndex") String tfIndex);
|
||||
|
||||
//选择节点
|
||||
int updateTfLgAss(@Param(value = "tfIndex") String tfIndex, @Param(value = "userIndex") String userIndex, @Param(value = "logicBefore") int logicBefore, @Param(value = "logicNext") int logicNext);
|
||||
|
||||
//insert
|
||||
int insertTfLgAss(@Param(value = "tfLgAss_Index") String tfLgAss_Index, @Param(value = "updatetime") Date updatetime, @Param(value = "tfIndex") String tfIndex, @Param(value = "userIndex") String userIndex, @Param(value = "logicBefore") int logicBefore, @Param(value = "logicNext") int logicNext, @Param(value = "state") int state);
|
||||
|
||||
//上节点
|
||||
List<LogicBefore> getLogicBefore(@Param("subIndex") int subIndex, @Param(value = "tfIndex") String tfIndex);
|
||||
|
||||
//下节点
|
||||
List<LogicNext> getLogicNext(@Param("subIndex") int subIndex, @Param(value = "tfIndex") String tfIndex);
|
||||
|
||||
//查询母线个数
|
||||
int getSubvIndex(@Param("subIndex") int subIndex);
|
||||
|
||||
//跨变电站
|
||||
List<LogicKNext> getKNext(@Param("subIndex") int subIndex);
|
||||
|
||||
List<LogicBefore> getKBefore(@Param("subIndex")int subIndex);
|
||||
|
||||
List<TfLgAssByMe> selectByMe(@Param(value = "tfIndex") String tfIndex);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.njcn.mapper.user;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.njcn.pojo.advanced.EntityLogic;
|
||||
import com.njcn.pojo.user.TfLgPloyAss;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface TfLgPloyAssMapper extends Mapper<TfLgPloyAss> {
|
||||
//获取变压器物理隔绝信息
|
||||
List<TfLgPloyAss> getTfLgPloyAss();
|
||||
|
||||
//获取母线物理隔绝信息
|
||||
List<EntityLogic> getLogic();
|
||||
|
||||
//根据变压器id删除
|
||||
int deleteTfLgByIndex(String index);
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user