补充新更新
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.AirSet;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/4/21
|
||||
*/
|
||||
public interface AirSetMapper extends BaseMapper<AirSet> {
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.AirStrategy;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/4/21
|
||||
*/
|
||||
public interface AirStrategyMapper extends BaseMapper<AirStrategy> {
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.DataArray;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-03-03
|
||||
*/
|
||||
public interface DataArrayMapper extends BaseMapper<DataArray> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.quality.pojo.po.DataGroup;
|
||||
import com.njcn.quality.pojo.vo.DataGroupTemplateVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-03-03
|
||||
*/
|
||||
public interface DataGroupMapper extends BaseMapper<DataGroup> {
|
||||
|
||||
|
||||
Page<DataGroupTemplateVO> getGroupDataList(IPage<DataGroupTemplateVO> page, @Param("id") String id);
|
||||
|
||||
List<DataGroupTemplateVO> getGroupList(@Param("id") String id);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.DataMould;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-03-03
|
||||
*/
|
||||
public interface DataMouldMapper extends BaseMapper<DataMould> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.DataSet;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-03-03
|
||||
*/
|
||||
public interface DataSetMapper extends BaseMapper<DataSet> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.DevVersion;
|
||||
|
||||
public interface DevVersionMapper extends BaseMapper<DevVersion> {
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.EleActrl;
|
||||
|
||||
public interface EleActrlMapper extends BaseMapper<EleActrl> {
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.EleALM;
|
||||
|
||||
/**
|
||||
* @author 徐扬
|
||||
*/
|
||||
public interface EleAlmMapper extends BaseMapper<EleALM> {
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.DataArray;
|
||||
import com.njcn.quality.pojo.po.EleBind;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/3/30
|
||||
*/
|
||||
public interface EleBindMapper extends BaseMapper<EleBind> {
|
||||
|
||||
/**
|
||||
* 通过监测点获取监测点详细数据
|
||||
* @author cdf
|
||||
* @date 2022/3/30
|
||||
*/
|
||||
List<DataArray> getArrByLineId(@Param("lineId") String lineId, @Param("phase")String phase);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.EleCtrl;
|
||||
|
||||
public interface EleCtrlMapper extends BaseMapper<EleCtrl> {
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.EleDi;
|
||||
|
||||
public interface EleDiMapper extends BaseMapper<EleDi> {
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.EleDict;
|
||||
|
||||
/**
|
||||
* @author 徐扬
|
||||
*/
|
||||
public interface EleDictMapper extends BaseMapper<EleDict> {
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.EleDo;
|
||||
|
||||
public interface EleDoMapper extends BaseMapper<EleDo> {
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.EleEpdPqd;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface EleEpdMapper extends BaseMapper<EleEpdPqd> {
|
||||
|
||||
/**
|
||||
* 查询所有数据
|
||||
* @param conId 指标id
|
||||
* @return 结果
|
||||
*/
|
||||
List<EleEpdPqd> getEleEpdPqdNoList(@Param("conId")String conId);
|
||||
|
||||
/**
|
||||
* 查询所有数据
|
||||
* @param conId 指标id
|
||||
* @return 结果
|
||||
*/
|
||||
List<EleEpdPqd> getEleEpdPqdList(@Param("conId")String conId);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.EleEvt;
|
||||
|
||||
public interface EleEvtMapper extends BaseMapper<EleEvt> {
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.EleEvtParm;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/3/15 16:20
|
||||
*/
|
||||
|
||||
public interface EleEvtParamMapper extends BaseMapper<EleEvtParm> {
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.EleInformation;
|
||||
|
||||
/**
|
||||
* @author 徐扬
|
||||
*/
|
||||
public interface EleInformationMapper extends BaseMapper<EleInformation> {
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.EleIntegrity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author 徐扬
|
||||
*/
|
||||
public interface EleIntegrityMapper extends BaseMapper<EleIntegrity> {
|
||||
|
||||
List<String> getPowerLineId();
|
||||
|
||||
List<String> getAirLineId();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.EleLine;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author 徐扬
|
||||
*/
|
||||
public interface EleLineMapper extends BaseMapper<EleLine> {
|
||||
|
||||
/**
|
||||
* 通过网关名称获取网关下的监测点信息
|
||||
* @author cdf
|
||||
* @date 2022/3/29
|
||||
*/
|
||||
List<EleLine> getAllLine(String netDevString);
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.EleLoadSet;
|
||||
import com.njcn.quality.pojo.vo.EleLoadSetVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author denghuajun
|
||||
* @version 1.0.0
|
||||
* @date 2022年04月15日 14:34
|
||||
*/
|
||||
public interface EleLoadSetMapper extends BaseMapper<EleLoadSet> {
|
||||
|
||||
/**
|
||||
* 字典类型
|
||||
* @param typeName 名称
|
||||
* @return 结果
|
||||
*/
|
||||
List<EleLoadSetVO> getEleLoadSetDetail(@Param("typeName")String typeName);
|
||||
|
||||
/**
|
||||
* 获取所有负荷关联监测点信息
|
||||
* @author cdf
|
||||
* @date 2022/4/20
|
||||
*/
|
||||
List<String> getAllLineListRelation(@Param("dicId")String dicId);
|
||||
|
||||
/**
|
||||
* 根据字典id获取绑定的监测点
|
||||
* @author cdf
|
||||
* @date 2022/4/26
|
||||
*/
|
||||
List<String> getAllLineListRelationIds(@Param("list")List<String> list);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.EleLogs;
|
||||
|
||||
public interface EleLogsMapper extends BaseMapper<EleLogs> {
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.EleMd;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface EleMdMapper extends BaseMapper<EleMd> {
|
||||
/**
|
||||
* 查询所有数据
|
||||
* @param conId 指标id
|
||||
* @return 结果
|
||||
*/
|
||||
List<EleMd> getEleMdNoList(@Param("conId")String conId);
|
||||
|
||||
/**
|
||||
* 查询所有数据
|
||||
* @param conId 指标id
|
||||
* @return 结果
|
||||
*/
|
||||
List<EleMd> getEleMdList(@Param("conId")String conId);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.EleParm;
|
||||
|
||||
public interface EleParmMapper extends BaseMapper<EleParm> {
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.EleRateSet;
|
||||
import com.njcn.quality.pojo.vo.EleRateVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author denghuajun
|
||||
* @version 1.0.0
|
||||
* @date 2022年04月13日 19:55
|
||||
*/
|
||||
public interface EleRateSetMappser extends BaseMapper<EleRateSet> {
|
||||
/**
|
||||
* 获取费率配置
|
||||
* @param typeName 字典类型
|
||||
* @return 结果
|
||||
*/
|
||||
List<EleRateVO> getEleRateDetail(@Param("typeName")String typeName);
|
||||
|
||||
|
||||
/**
|
||||
* 获取费率详情
|
||||
* @author cdf
|
||||
* @date 2022/4/19
|
||||
*/
|
||||
List<EleRateVO> getEleRateById(@Param("id")String id);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.Mapper;
|
||||
import com.njcn.quality.pojo.po.EleStatisticalSet;
|
||||
import com.njcn.quality.pojo.vo.EleStatisticalVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author denghuajun
|
||||
* @version 1.0.0
|
||||
* @date 2022年04月14日 15:16
|
||||
*/
|
||||
public interface EleStatisticalSetMapper extends BaseMapper<EleStatisticalSet> {
|
||||
|
||||
/**
|
||||
* 字典类型
|
||||
* @param typeName 名称
|
||||
* @return 结果
|
||||
*/
|
||||
List<EleStatisticalVO> getEleStatisticalDetail(@Param("typeName")String typeName);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.EleSts;
|
||||
|
||||
public interface EleStsMapper extends BaseMapper<EleSts> {
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.EleTopic;
|
||||
|
||||
public interface EleTopicMapper extends BaseMapper<EleTopic> {
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.GroupArray;
|
||||
|
||||
/**
|
||||
* @author 徐扬
|
||||
*/
|
||||
public interface GroupArrayMapper extends BaseMapper<GroupArray> {
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.Hardware;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-03-03
|
||||
*/
|
||||
public interface HardwareMapper extends BaseMapper<Hardware> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.LogicAccess;
|
||||
|
||||
/**
|
||||
* @author 徐扬
|
||||
*/
|
||||
public interface LogicAccessMapper extends BaseMapper<LogicAccess> {
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.quality.pojo.dto.NetAndDevByLineDTO;
|
||||
import com.njcn.quality.pojo.po.DataArray;
|
||||
import com.njcn.quality.pojo.po.DataSet;
|
||||
import com.njcn.quality.pojo.po.LogicDev;
|
||||
import com.njcn.quality.pojo.vo.EnergyDeviceTreeVO;
|
||||
import com.njcn.quality.pojo.vo.EnergyTemplateVO;
|
||||
import com.njcn.quality.pojo.vo.LogicDeviceLineInfoVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/3/1
|
||||
*/
|
||||
public interface LogicDeviceLineMapper extends BaseMapper<LogicDev> {
|
||||
|
||||
|
||||
/**
|
||||
* 获取逻辑设备树
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/3/1
|
||||
*/
|
||||
List<EnergyDeviceTreeVO> getLogicDevList();
|
||||
|
||||
|
||||
/**
|
||||
* 获取逻辑设备树
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/3/1
|
||||
*/
|
||||
List<EnergyDeviceTreeVO> getEleLineList();
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 获取设备详情
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/3/2
|
||||
*/
|
||||
LogicDeviceLineInfoVO getDevInfo(@Param("id") String id);
|
||||
|
||||
/**
|
||||
* 逻辑设备树
|
||||
* @return 结果
|
||||
*/
|
||||
List<EnergyDeviceTreeVO> getEleNoBindsLineList();
|
||||
|
||||
/**
|
||||
* 逻辑设备树
|
||||
* @param loadId 参数
|
||||
* @return 结果
|
||||
*/
|
||||
List<EnergyDeviceTreeVO> getEleBindsLineList(@Param("loadId") String loadId);
|
||||
|
||||
|
||||
/**
|
||||
* 获取历史数据详情模板
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/3/2
|
||||
*/
|
||||
Page<EnergyTemplateVO> getHistoryTemplateById(IPage<EnergyTemplateVO> page, @Param("id") String id, @Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime);
|
||||
|
||||
|
||||
/**
|
||||
* 获取tab模板
|
||||
*
|
||||
* @param id 设备id
|
||||
* @author cdf
|
||||
* @date 2022/3/2
|
||||
*/
|
||||
List<DataSet> getTabTemplateById(@Param("id") String id);
|
||||
|
||||
|
||||
/**
|
||||
* 获取数据集下的分组详情
|
||||
*
|
||||
* @param id 数据集id
|
||||
* @author cdf
|
||||
* @date 2022/3/14
|
||||
*/
|
||||
List<DataArray> getGroupDataBySetId(@Param("id") String id);
|
||||
|
||||
List<EnergyTemplateVO> getAllDataBySet(@Param("id") String id);
|
||||
|
||||
|
||||
/**
|
||||
* 获取数据详情
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/3/15
|
||||
*/
|
||||
List<EnergyTemplateVO> getDataList(@Param("className") String className, @Param("ids") List<String> ids);
|
||||
|
||||
|
||||
/**
|
||||
* 获取解析模板用于实时数据解析
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/3/18
|
||||
*/
|
||||
List<String> getParseTemplate(@Param("setId") String setId);
|
||||
|
||||
|
||||
/**
|
||||
* 通过监测点获取设备网关
|
||||
* @author cdf
|
||||
* @date 2022/4/22
|
||||
*/
|
||||
List<NetAndDevByLineDTO> getNetAndDevByLineIds(@Param("lineIds") List<String> lineIds);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.njcn.quality.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.quality.pojo.po.NetDev;
|
||||
import com.njcn.quality.pojo.vo.EnergyDeviceTreeVO;
|
||||
import com.njcn.quality.pojo.vo.NetDevInfoVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-02-22
|
||||
*/
|
||||
public interface NetDevMapper extends BaseMapper<NetDev> {
|
||||
|
||||
/**
|
||||
* 获取所有网关
|
||||
* @author cdf
|
||||
* @date 2022/3/2
|
||||
*/
|
||||
List<EnergyDeviceTreeVO> getNetDevList();
|
||||
|
||||
/**
|
||||
* 获取网关详细信息
|
||||
* @author cdf
|
||||
* @date 2022/3/28
|
||||
*/
|
||||
NetDevInfoVO getNetDevDetail(@Param("id") String id);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.quality.mapper.DataGroupMapper">
|
||||
|
||||
|
||||
<select id="getGroupDataList" resultType="DataGroupTemplateVO">
|
||||
select id,pid,name,sort,1 as level from ele_data_group
|
||||
where pid = #{id}
|
||||
order by sort
|
||||
</select>
|
||||
|
||||
<select id="getGroupList" resultType="DataGroupTemplateVO">
|
||||
select id,pid,name,sort from ele_data_group
|
||||
where pid = #{id}
|
||||
order by sort
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.quality.mapper.EleBindMapper">
|
||||
|
||||
|
||||
<select id="getArrByLineId" resultType="DataArray">
|
||||
select e.* from ele_line a
|
||||
inner join ele_logic_dev b on a.pid = b.id
|
||||
inner join ele_data_mould c on b.idx = c.id
|
||||
inner join ele_data_set d on d.pid = c.id
|
||||
inner join ele_data_array e on d.id = e.pid
|
||||
where a.line_id= #{lineId}
|
||||
<if test="phase!=null and phase!=''">
|
||||
and e.phase = #{phase}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.quality.mapper.EleEpdMapper">
|
||||
<select id="getEleEpdPqdNoList" resultType="EleEpdPqd">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
ele_epd_pqd epd
|
||||
WHERE
|
||||
epd.id
|
||||
NOT IN (
|
||||
SELECT
|
||||
sta.con_id
|
||||
FROM
|
||||
ele_statistical_set sta
|
||||
WHERE
|
||||
sta.id = #{conId}
|
||||
)
|
||||
order by
|
||||
epd.idx
|
||||
</select>
|
||||
|
||||
<select id="getEleEpdPqdList" resultType="EleEpdPqd">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
ele_epd_pqd epd
|
||||
WHERE
|
||||
epd.id
|
||||
IN (
|
||||
SELECT
|
||||
sta.con_id
|
||||
FROM
|
||||
ele_statistical_set sta
|
||||
WHERE
|
||||
sta.id = #{conId}
|
||||
)
|
||||
order by
|
||||
epd.idx
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.quality.mapper.EleIntegrityMapper">
|
||||
|
||||
<select id="getPowerLineId" resultType="string">
|
||||
SELECT
|
||||
D.Line_Id
|
||||
FROM
|
||||
ele_net_dev A,
|
||||
ele_logic_access B,
|
||||
ele_logic_dev C,
|
||||
ele_line D
|
||||
WHERE
|
||||
A.NDID = '00B78D110001$GW$PQS570' AND A.Id = B.Pid AND B.State = 2 AND B.Did = C.Did AND C.Type != 'ACgw' AND C.Id = D.Pid ORDER BY Line_Id
|
||||
</select>
|
||||
|
||||
<select id="getAirLineId" resultType="string">
|
||||
SELECT
|
||||
D.Line_Id
|
||||
FROM
|
||||
ele_net_dev A,
|
||||
ele_logic_access B,
|
||||
ele_logic_dev C,
|
||||
ele_line D
|
||||
WHERE
|
||||
(A.NDID = '00B78D110002$GW$PQS570' or A.NDID = '00B78D110003$GW$PQS570') AND A.Id = B.Pid AND B.State = 2 AND B.Did = C.Did AND C.Type != 'ACgw' AND C.Id = D.Pid ORDER BY Line_Id
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.quality.mapper.EleLineMapper">
|
||||
|
||||
|
||||
<select id="getAllLine" resultType="EleLine">
|
||||
select a.* from ele_line a
|
||||
inner join ele_logic_dev b on a.pid = b.id
|
||||
inner join ele_logic_access c on b.did = c.did
|
||||
inner join ele_net_dev d on c.pid = d.id
|
||||
where d.name = #{netDevName}
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.quality.mapper.EleLoadSetMapper">
|
||||
<select id="getEleLoadSetDetail" resultType="EleLoadSetVO">
|
||||
SELECT
|
||||
dic.id loadId,
|
||||
dic.NAME loadName,
|
||||
dic.algo_describe flag
|
||||
FROM
|
||||
sys_dict_data dic
|
||||
INNER JOIN
|
||||
sys_dict_type type on dic.Type_Id = type.Id
|
||||
WHERE
|
||||
type.name =#{typeName}
|
||||
ORDER BY
|
||||
dic.sort
|
||||
</select>
|
||||
|
||||
<select id="getAllLineListRelation" resultType="String">
|
||||
select c.line_id from sys_dict_data a
|
||||
inner join ele_load_set b on a.id = b.id
|
||||
inner join ele_line c on b.line_id = c.line_id
|
||||
where a.id = #{dicId}
|
||||
</select>
|
||||
|
||||
<select id="getAllLineListRelationIds" resultType="String">
|
||||
select c.line_id from sys_dict_data a
|
||||
inner join ele_load_set b on a.id = b.id
|
||||
inner join ele_line c on b.line_id = c.line_id
|
||||
where a.id in
|
||||
<foreach collection="list" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.quality.mapper.EleMdMapper">
|
||||
<select id="getEleMdNoList" resultType="EleMd">
|
||||
SELECT *
|
||||
FROM ele_md md
|
||||
WHERE md.id
|
||||
NOT IN (
|
||||
SELECT sta.con_id
|
||||
FROM ele_statistical_set sta
|
||||
WHERE sta.id = #{conId}
|
||||
)
|
||||
AND md.Class_Id = "power_quality_data"
|
||||
AND md.unit in("W","Var")
|
||||
order by md.idx
|
||||
</select>
|
||||
|
||||
<select id="getEleMdList" resultType="EleMd">
|
||||
SELECT *
|
||||
FROM ele_md md
|
||||
WHERE md.id
|
||||
IN (
|
||||
SELECT sta.con_id
|
||||
FROM ele_statistical_set sta
|
||||
WHERE sta.id = #{conId}
|
||||
)
|
||||
AND md.Class_Id = "power_quality_data"
|
||||
AND md.unit in("W","Var")
|
||||
order by md.idx
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.quality.mapper.EleRateSetMappser">
|
||||
<select id="getEleRateDetail" resultType="EleRateVO">
|
||||
SELECT
|
||||
dic.id rateTypeId,
|
||||
dic.NAME rateTypeName,
|
||||
COALESCE(rate.time,'-') rateTypeTime,
|
||||
COALESCE(rate.rate,'-') rate
|
||||
FROM
|
||||
sys_dict_data dic
|
||||
LEFT JOIN
|
||||
ele_rate_set rate ON dic.Id = rate.Id
|
||||
INNER JOIN
|
||||
sys_dict_type type on dic.Type_Id = type.Id
|
||||
WHERE
|
||||
type.name =#{typeName}
|
||||
ORDER BY
|
||||
dic.sort
|
||||
</select>
|
||||
|
||||
<select id="getEleRateById" resultType="EleRateVO">
|
||||
SELECT
|
||||
dic.id rateTypeId,
|
||||
dic.NAME rateTypeName,
|
||||
COALESCE(rate.time,'-') rateTypeTime,
|
||||
COALESCE(rate.rate,'-') rate
|
||||
FROM
|
||||
sys_dict_data dic
|
||||
LEFT JOIN
|
||||
ele_rate_set rate ON dic.Id = rate.Id
|
||||
WHERE dic.id = #{id}
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.quality.mapper.EleStatisticalSetMapper">
|
||||
<select id="getEleStatisticalDetail" resultType="EleStatisticalVO">
|
||||
SELECT
|
||||
dic.id statisticalId,
|
||||
dic.NAME statisticalName
|
||||
FROM
|
||||
sys_dict_data dic
|
||||
INNER JOIN
|
||||
sys_dict_type type on dic.Type_Id = type.Id
|
||||
WHERE
|
||||
type.name =#{typeName}
|
||||
ORDER BY
|
||||
dic.sort
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,188 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.quality.mapper.LogicDeviceLineMapper">
|
||||
|
||||
|
||||
<select id="getLogicDevList" resultType="EnergyDeviceTreeVO">
|
||||
select a.id,a.pid,a.name,2 as level,b.state
|
||||
from ele_logic_dev a
|
||||
inner join ele_logic_access b on a.did = b.did
|
||||
where a.state = 1
|
||||
order by a.did
|
||||
</select>
|
||||
|
||||
<select id="getEleLineList" resultType="EnergyDeviceTreeVO">
|
||||
select id,pid,name,line_id,3 as level from ele_line
|
||||
where state = 1
|
||||
order by ele_line.idx
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
<select id="getEleNoBindsLineList" resultType="EnergyDeviceTreeVO">
|
||||
SELECT id,
|
||||
pid,
|
||||
NAME,
|
||||
3 AS LEVEL,
|
||||
Line_Id lineId
|
||||
FROM ele_line
|
||||
WHERE state = 1
|
||||
AND Line_Id NOT IN (
|
||||
SELECT Line_Id
|
||||
FROM ele_load_set
|
||||
)
|
||||
ORDER BY ele_line.idx
|
||||
</select>
|
||||
|
||||
<select id="getEleBindsLineList" resultType="EnergyDeviceTreeVO">
|
||||
SELECT
|
||||
id,
|
||||
pid,
|
||||
NAME,
|
||||
3 AS LEVEL,
|
||||
Line_Id lineId
|
||||
FROM
|
||||
ele_line
|
||||
WHERE
|
||||
state = 1
|
||||
AND
|
||||
Line_Id IN (
|
||||
SELECT
|
||||
Line_Id
|
||||
FROM
|
||||
ele_load_set
|
||||
WHERE
|
||||
id = #{loadId})
|
||||
|
||||
ORDER BY
|
||||
ele_line.idx
|
||||
</select>
|
||||
|
||||
<select id="getDevInfo" resultType="LogicDeviceLineInfoVO">
|
||||
select a.id,
|
||||
a.pid,
|
||||
a.did,
|
||||
a.name,
|
||||
b.name netDevName,
|
||||
b.ndid,
|
||||
a.address,
|
||||
a.position,
|
||||
a.create_time,
|
||||
a.state from ele_logic_dev a
|
||||
inner join ele_net_dev b on a.pid = b.id
|
||||
where a.id = #{id}
|
||||
and a.state = 1
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="getTabTemplateById" resultType="DataSet">
|
||||
select
|
||||
c.id,
|
||||
c.name,
|
||||
c.another_name,
|
||||
c.idx,
|
||||
c.store_flag
|
||||
from
|
||||
ele_logic_dev a
|
||||
inner join ele_data_mould b on a.idx = b.id
|
||||
inner join ele_data_set c on b.id = c.pid
|
||||
where a.id = #{id}
|
||||
order by c.idx
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getGroupDataBySetId" resultType="DataArray">
|
||||
SELECT
|
||||
b.id pid,
|
||||
d.id,
|
||||
d.data_id,
|
||||
d.sort,
|
||||
d.class_name
|
||||
FROM
|
||||
ele_data_set a
|
||||
INNER JOIN ele_data_group b ON a.id = b.pid
|
||||
INNER JOIN ele_group_arr c ON b.id = c.group_id
|
||||
INNER JOIN ele_data_array d ON c.arr_id = d.id
|
||||
WHERE
|
||||
a.id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getAllDataBySet" resultType="EnergyTemplateVO">
|
||||
SELECT
|
||||
b.id pid,
|
||||
d.id,
|
||||
d.data_id,
|
||||
d.sort,
|
||||
d.phase,
|
||||
d.class_name,
|
||||
d.another_name name,
|
||||
2 as level
|
||||
FROM
|
||||
ele_data_set a
|
||||
INNER JOIN ele_data_group b ON a.id = b.pid
|
||||
INNER JOIN ele_group_arr c ON b.id = c.group_id
|
||||
INNER JOIN ele_data_array d ON c.arr_id = d.id
|
||||
WHERE
|
||||
a.id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
<select id="getDataList" resultType="EnergyTemplateVO">
|
||||
select b.id,
|
||||
b.name,
|
||||
a.sort,
|
||||
b.class_id,
|
||||
<if test="className == 'ele_epd_pqd'">
|
||||
b.phase,
|
||||
b.type,
|
||||
b.unit,
|
||||
</if>
|
||||
<if test="className == 'ele_md'">
|
||||
b.phase,
|
||||
b.type,
|
||||
b.unit,
|
||||
</if>
|
||||
<if test="className == 'ele_ctrl'">
|
||||
1 as operationType,
|
||||
b.max_num,
|
||||
b.min_num,
|
||||
b.ctl_value,
|
||||
</if>
|
||||
a.another_name
|
||||
from ele_data_array a inner join ${className} b on a.data_id = b.id
|
||||
where a.id in
|
||||
<foreach collection="ids" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
order by sort
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getParseTemplate" resultType="String">
|
||||
select
|
||||
type
|
||||
from ele_data_array
|
||||
where pid = #{setId}
|
||||
order by sort
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getNetAndDevByLineIds" resultType="NetAndDevByLineDTO">
|
||||
select a.line_id,b.did devId,c.ndid,a.name lineName from ele_line a
|
||||
inner join ele_logic_dev b on a.pid = b.id
|
||||
inner join ele_net_dev c on b.pid = c.id
|
||||
where a.state = 1
|
||||
and a.id in
|
||||
<foreach collection="lineIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.quality.mapper.NetDevMapper">
|
||||
|
||||
|
||||
<select id="getNetDevList" resultType="EnergyDeviceTreeVO">
|
||||
select id,name,1 as level from ele_net_dev
|
||||
where state = 1
|
||||
order by sort
|
||||
</select>
|
||||
|
||||
<select id="getNetDevDetail" resultType="NetDevInfoVO">
|
||||
select a.*,b.version versionId,c.* from ele_net_dev a
|
||||
inner join ele_dev_version b on a.version_id = b.id
|
||||
inner join ele_hardware c on a.id = c.id
|
||||
where a.state = 1
|
||||
and a.id = #{id}
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user