合并暂降模块代码

This commit is contained in:
2022-07-14 09:43:29 +08:00
parent 014c766806
commit 638f5b8f93
56 changed files with 3133 additions and 86 deletions

View File

@@ -1,12 +0,0 @@
package com.njcn.event.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.event.pojo.po.EventDetail;
/**
* @author denghuajun
* @version 1.0.0
* @date 2022/3/16
*/
public interface EventDetailMapper extends BaseMapper<EventDetail> {
}

View File

@@ -0,0 +1,24 @@
package com.njcn.event.mapper;
import com.njcn.event.pojo.po.PqDevice;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 装置信息表
*
* @author : zhaojun
* @version : 1.0.0
* @date : 2022年07月07日 9:26
*/
public interface PqDeviceMapper {
/**
* 查询装置的运行状态
*
* @param deviceIndexes 设备index
* @return 设备的运行状态
*/
List<PqDevice> queryRunFlagByDeviceIndexs(@Param("deviceIndexes") List<String> deviceIndexes);
}

View File

@@ -0,0 +1,38 @@
<?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.event.mapper.PqDeviceMapper">
<resultMap type="com.njcn.event.pojo.po.PqDevice" id="PqDeviceMap">
<result property="id" column="Id" jdbcType="VARCHAR"/>
<result property="devModel" column="Dev_Model" jdbcType="INTEGER"/>
<result property="devDataType" column="Dev_Data_Type" jdbcType="INTEGER"/>
<result property="runFlag" column="Run_Flag" jdbcType="INTEGER"/>
<result property="comFlag" column="Com_Flag" jdbcType="INTEGER"/>
<result property="manufacturer" column="Manufacturer" jdbcType="VARCHAR"/>
<result property="checkFlag" column="Check_Flag" jdbcType="INTEGER"/>
<result property="frontType" column="Front_Type" jdbcType="VARCHAR"/>
<result property="devType" column="Dev_Type" jdbcType="VARCHAR"/>
<result property="ip" column="IP" jdbcType="VARCHAR"/>
<result property="callFlag" column="Call_Flag" jdbcType="INTEGER"/>
<result property="port" column="Port" jdbcType="INTEGER"/>
<result property="series" column="Series" jdbcType="VARCHAR"/>
<result property="devKey" column="Dev_Key" jdbcType="VARCHAR"/>
<result property="nodeId" column="Node_Id" jdbcType="VARCHAR"/>
<result property="loginTime" column="Login_Time" jdbcType="TIMESTAMP"/>
<result property="updateTime" column="Update_Time" jdbcType="TIMESTAMP"/>
<result property="thisTimeCheck" column="This_Time_Check" jdbcType="TIMESTAMP"/>
<result property="nextTimeCheck" column="Next_Time_Check" jdbcType="TIMESTAMP"/>
<result property="electroplate" column="Electroplate" jdbcType="INTEGER"/>
<result property="onTime" column="On_Time" jdbcType="INTEGER"/>
<result property="contract" column="Contract" jdbcType="VARCHAR"/>
<result property="sim" column="Sim" jdbcType="VARCHAR"/>
</resultMap>
<select id="queryRunFlagByDeviceIndexs" resultMap="PqDeviceMap">
select
Id, Run_Flag from pq_device where Id in
<foreach collection="deviceIndexes" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</select>
</mapper>

View File

@@ -1,6 +1,6 @@
<?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">
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.njcn.event.mapper.TransientMapper">
<select id="getTransientData" resultType="TransientVO">
@@ -34,5 +34,19 @@
AND B3.Pid = B4.Id
</select>
<!-- <select id="getTransientDataById" resultType="TransientVO">-->
<!-- SELECT-->
<!-- A.`Name` name,-->
<!-- A3.`Name` substation-->
<!-- FROM-->
<!-- pq_line A,-->
<!-- pq_line A1,-->
<!-- pq_line A2,-->
<!-- pq_line A3-->
<!-- WHERE A.Id = #{lineId}-->
<!-- AND A.Pid = A1.Id-->
<!-- AND A1.Pid = A2.Id-->
<!-- AND A2.Pid = A3.Id-->
<!-- </select>-->
</mapper>
</mapper>