移动代码
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package com.njcn.cswarn.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.cswarn.pojo.po.CsEquipmentAlarmPO;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Date: 2023/5/16 16:25【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
public interface CsEquipmentAlarmPOMapper extends BaseMapper<CsEquipmentAlarmPO> {
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.njcn.cswarn.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.njcn.cswarn.pojo.parm.CsEventDetailPageParm;
|
||||
import com.njcn.cswarn.pojo.po.CsEventDetailPO;
|
||||
import com.njcn.cswarn.pojo.vo.CsEventDetailVO;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Date: 2023/5/17 10:51【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
public interface CsEventDetailPOMapper extends BaseMapper<CsEventDetailPO> {
|
||||
Page<CsEventDetailVO> queryPage(Page<CsEventDetailVO> returnpage, @Param("csEventDetailPageParm") CsEventDetailPageParm csEventDetailPageParm);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.njcn.cswarn.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.njcn.cswarn.pojo.parm.CsStatLimitRatePageParm;
|
||||
import com.njcn.cswarn.pojo.po.CsStatLimitRateDPO;
|
||||
import com.njcn.cswarn.pojo.vo.CsStatLimitRateDVO;
|
||||
|
||||
/**
|
||||
*
|
||||
* Description:
|
||||
* Date: 2023/5/17 13:45【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
public interface CsStatLimitRateDPOMapper extends BaseMapper<CsStatLimitRateDPO> {
|
||||
Page<CsStatLimitRateDVO> queryPage(Page<CsStatLimitRateDVO> returnpage, @Param("csStatLimitRatePageParm") CsStatLimitRatePageParm csStatLimitRatePageParm);
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.cswarn.mapper.CsEquipmentAlarmPOMapper">
|
||||
<resultMap id="BaseResultMap" type="com.njcn.cswarn.pojo.po.CsEquipmentAlarmPO">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table cs_equipment_alarm-->
|
||||
<id column="id" jdbcType="VARCHAR" property="id" />
|
||||
<result column="project_id" jdbcType="VARCHAR" property="projectId" />
|
||||
<result column="equipment_id" jdbcType="VARCHAR" property="equipmentId" />
|
||||
<result column="alarm_msg" jdbcType="VARCHAR" property="alarmMsg" />
|
||||
<result column="alarm_level" jdbcType="VARCHAR" property="alarmLevel" />
|
||||
<result column="start_time" jdbcType="TIMESTAMP" property="startTime" />
|
||||
<result column="end_time" jdbcType="TIMESTAMP" property="endTime" />
|
||||
<result column="status" jdbcType="BIT" property="status" />
|
||||
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
id, project_id, equipment_id, alarm_msg, alarm_level, start_time, end_time, `status`,
|
||||
create_by, create_time, update_by, update_time
|
||||
</sql>
|
||||
</mapper>
|
||||
@@ -0,0 +1,72 @@
|
||||
<?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.cswarn.mapper.CsEventDetailPOMapper">
|
||||
<resultMap id="BaseResultMap" type="com.njcn.cswarn.pojo.po.CsEventDetailPO">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table cs_event_detail-->
|
||||
<id column="event_id" jdbcType="CHAR" property="eventId" />
|
||||
<result column="measurement_point_id" jdbcType="VARCHAR" property="measurementPointId" />
|
||||
<result column="event_type" jdbcType="CHAR" property="eventType" />
|
||||
<result column="advance_reason" jdbcType="CHAR" property="advanceReason" />
|
||||
<result column="advance_type" jdbcType="CHAR" property="advanceType" />
|
||||
<result column="eventass_index" jdbcType="VARCHAR" property="eventassIndex" />
|
||||
<result column="dq_time" jdbcType="DOUBLE" property="dqTime" />
|
||||
<result column="deal_time" jdbcType="TIMESTAMP" property="dealTime" />
|
||||
<result column="num" jdbcType="INTEGER" property="num" />
|
||||
<result column="file_flag" jdbcType="BIT" property="fileFlag" />
|
||||
<result column="deal_flag" jdbcType="BIT" property="dealFlag" />
|
||||
<result column="first_time" jdbcType="TIMESTAMP" property="firstTime" />
|
||||
<result column="first_type" jdbcType="VARCHAR" property="firstType" />
|
||||
<result column="first_ms" jdbcType="DECIMAL" property="firstMs" />
|
||||
<result column="energy" jdbcType="DOUBLE" property="energy" />
|
||||
<result column="severity" jdbcType="DOUBLE" property="severity" />
|
||||
<result column="sagsource" jdbcType="VARCHAR" property="sagsource" />
|
||||
<result column="start_time" jdbcType="TIMESTAMP" property="startTime" />
|
||||
<result column="duration" jdbcType="DECIMAL" property="duration" />
|
||||
<result column="feature_amplitude" jdbcType="DECIMAL" property="featureAmplitude" />
|
||||
<result column="phase" jdbcType="VARCHAR" property="phase" />
|
||||
<result column="event_describe" jdbcType="VARCHAR" property="eventDescribe" />
|
||||
<result column="wave_path" jdbcType="VARCHAR" property="wavePath" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="transient_value" jdbcType="DOUBLE" property="transientValue" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
event_id, measurement_point_id, event_type, advance_reason, advance_type, eventass_index,
|
||||
dq_time, deal_time, num, file_flag, deal_flag, first_time, first_type, first_ms,
|
||||
energy, severity, sagsource, start_time, duration, feature_amplitude, phase, event_describe,
|
||||
wave_path, create_time, transient_value
|
||||
</sql>
|
||||
|
||||
<select id="queryPage" resultType="com.njcn.cswarn.pojo.vo.CsEventDetailVO">
|
||||
SELECT
|
||||
temp.*, cs.*
|
||||
FROM
|
||||
cs_event_detail cs
|
||||
INNER JOIN (
|
||||
SELECT
|
||||
a.line_id,
|
||||
a. NAME line_name,
|
||||
c.id project_id,
|
||||
c. NAME project_name
|
||||
FROM
|
||||
cs_line a,
|
||||
cs_project_equipment b,
|
||||
cs_project c
|
||||
WHERE
|
||||
1 = 1
|
||||
AND c.id = b.project_id
|
||||
AND b.equipment_id = a.dev_id
|
||||
<if test="csEventDetailPageParm.projectId != null and csEventDetailPageParm.projectId != ''">
|
||||
AND c.id = #{csEventDetailPageParm.projectId }
|
||||
</if>
|
||||
) temp ON cs.measurement_point_id = temp.line_id
|
||||
where 1=1
|
||||
<if test="csEventDetailPageParm.startTime != null and csEventDetailPageParm.startTime != ''">
|
||||
AND cs.start_time >= #{csEventDetailPageParm.startTime }
|
||||
</if>
|
||||
<if test="csEventDetailPageParm.endTime != null and csEventDetailPageParm.endTime != ''">
|
||||
AND cs.start_time <= #{csEventDetailPageParm.endTime }
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,133 @@
|
||||
<?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.cswarn.mapper.CsStatLimitRateDPOMapper">
|
||||
<resultMap id="BaseResultMap" type="com.njcn.cswarn.pojo.po.CsStatLimitRateDPO">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table cs_stat_limit_rate_d-->
|
||||
<id column="time_id" jdbcType="TIMESTAMP" property="timeId" />
|
||||
<id column="my_index" jdbcType="VARCHAR" property="myIndex" />
|
||||
<id column="phasic_type" jdbcType="VARCHAR" property="phasicType" />
|
||||
<result column="all_time" jdbcType="INTEGER" property="allTime" />
|
||||
<result column="flicker_all_time" jdbcType="INTEGER" property="flickerAllTime" />
|
||||
<result column="freq_dev_overtime" jdbcType="INTEGER" property="freqDevOvertime" />
|
||||
<result column="voltage_dev_overtime" jdbcType="INTEGER" property="voltageDevOvertime" />
|
||||
<result column="ubalance_overtime" jdbcType="INTEGER" property="ubalanceOvertime" />
|
||||
<result column="flicker_overtime" jdbcType="INTEGER" property="flickerOvertime" />
|
||||
<result column="uaberrance_overtime" jdbcType="INTEGER" property="uaberranceOvertime" />
|
||||
<result column="uharm_2_overtime" jdbcType="INTEGER" property="uharm2Overtime" />
|
||||
<result column="uharm_3_overtime" jdbcType="INTEGER" property="uharm3Overtime" />
|
||||
<result column="uharm_4_overtime" jdbcType="INTEGER" property="uharm4Overtime" />
|
||||
<result column="uharm_5_overtime" jdbcType="INTEGER" property="uharm5Overtime" />
|
||||
<result column="uharm_6_overtime" jdbcType="INTEGER" property="uharm6Overtime" />
|
||||
<result column="uharm_7_overtime" jdbcType="INTEGER" property="uharm7Overtime" />
|
||||
<result column="uharm_8_overtime" jdbcType="INTEGER" property="uharm8Overtime" />
|
||||
<result column="uharm_9_overtime" jdbcType="INTEGER" property="uharm9Overtime" />
|
||||
<result column="uharm_10_overtime" jdbcType="INTEGER" property="uharm10Overtime" />
|
||||
<result column="uharm_11_overtime" jdbcType="INTEGER" property="uharm11Overtime" />
|
||||
<result column="uharm_12_overtime" jdbcType="INTEGER" property="uharm12Overtime" />
|
||||
<result column="uharm_13_overtime" jdbcType="INTEGER" property="uharm13Overtime" />
|
||||
<result column="uharm_14_overtime" jdbcType="INTEGER" property="uharm14Overtime" />
|
||||
<result column="uharm_15_overtime" jdbcType="INTEGER" property="uharm15Overtime" />
|
||||
<result column="uharm_16_overtime" jdbcType="INTEGER" property="uharm16Overtime" />
|
||||
<result column="uharm_17_overtime" jdbcType="INTEGER" property="uharm17Overtime" />
|
||||
<result column="uharm_18_overtime" jdbcType="INTEGER" property="uharm18Overtime" />
|
||||
<result column="uharm_19_overtime" jdbcType="INTEGER" property="uharm19Overtime" />
|
||||
<result column="uharm_20_overtime" jdbcType="INTEGER" property="uharm20Overtime" />
|
||||
<result column="uharm_21_overtime" jdbcType="INTEGER" property="uharm21Overtime" />
|
||||
<result column="uharm_22_overtime" jdbcType="INTEGER" property="uharm22Overtime" />
|
||||
<result column="uharm_23_overtime" jdbcType="INTEGER" property="uharm23Overtime" />
|
||||
<result column="uharm_24_overtime" jdbcType="INTEGER" property="uharm24Overtime" />
|
||||
<result column="uharm_25_overtime" jdbcType="INTEGER" property="uharm25Overtime" />
|
||||
<result column="iharm_2_overtime" jdbcType="INTEGER" property="iharm2Overtime" />
|
||||
<result column="iharm_3_overtime" jdbcType="INTEGER" property="iharm3Overtime" />
|
||||
<result column="iharm_4_overtime" jdbcType="INTEGER" property="iharm4Overtime" />
|
||||
<result column="iharm_5_overtime" jdbcType="INTEGER" property="iharm5Overtime" />
|
||||
<result column="iharm_6_overtime" jdbcType="INTEGER" property="iharm6Overtime" />
|
||||
<result column="iharm_7_overtime" jdbcType="INTEGER" property="iharm7Overtime" />
|
||||
<result column="iharm_8_overtime" jdbcType="INTEGER" property="iharm8Overtime" />
|
||||
<result column="iharm_9_overtime" jdbcType="INTEGER" property="iharm9Overtime" />
|
||||
<result column="iharm_10_overtime" jdbcType="INTEGER" property="iharm10Overtime" />
|
||||
<result column="iharm_11_overtime" jdbcType="INTEGER" property="iharm11Overtime" />
|
||||
<result column="iharm_12_overtime" jdbcType="INTEGER" property="iharm12Overtime" />
|
||||
<result column="iharm_13_overtime" jdbcType="INTEGER" property="iharm13Overtime" />
|
||||
<result column="iharm_14_overtime" jdbcType="INTEGER" property="iharm14Overtime" />
|
||||
<result column="iharm_15_overtime" jdbcType="INTEGER" property="iharm15Overtime" />
|
||||
<result column="iharm_16_overtime" jdbcType="INTEGER" property="iharm16Overtime" />
|
||||
<result column="iharm_17_overtime" jdbcType="INTEGER" property="iharm17Overtime" />
|
||||
<result column="iharm_18_overtime" jdbcType="INTEGER" property="iharm18Overtime" />
|
||||
<result column="iharm_19_overtime" jdbcType="INTEGER" property="iharm19Overtime" />
|
||||
<result column="iharm_20_overtime" jdbcType="INTEGER" property="iharm20Overtime" />
|
||||
<result column="iharm_21_overtime" jdbcType="INTEGER" property="iharm21Overtime" />
|
||||
<result column="iharm_22_overtime" jdbcType="INTEGER" property="iharm22Overtime" />
|
||||
<result column="iharm_23_overtime" jdbcType="INTEGER" property="iharm23Overtime" />
|
||||
<result column="iharm_24_overtime" jdbcType="INTEGER" property="iharm24Overtime" />
|
||||
<result column="iharm_25_overtime" jdbcType="INTEGER" property="iharm25Overtime" />
|
||||
<result column="inuharm_1_overtime" jdbcType="INTEGER" property="inuharm1Overtime" />
|
||||
<result column="inuharm_2_overtime" jdbcType="INTEGER" property="inuharm2Overtime" />
|
||||
<result column="inuharm_3_overtime" jdbcType="INTEGER" property="inuharm3Overtime" />
|
||||
<result column="inuharm_4_overtime" jdbcType="INTEGER" property="inuharm4Overtime" />
|
||||
<result column="inuharm_5_overtime" jdbcType="INTEGER" property="inuharm5Overtime" />
|
||||
<result column="inuharm_6_overtime" jdbcType="INTEGER" property="inuharm6Overtime" />
|
||||
<result column="inuharm_7_overtime" jdbcType="INTEGER" property="inuharm7Overtime" />
|
||||
<result column="inuharm_8_overtime" jdbcType="INTEGER" property="inuharm8Overtime" />
|
||||
<result column="inuharm_9_overtime" jdbcType="INTEGER" property="inuharm9Overtime" />
|
||||
<result column="inuharm_10_overtime" jdbcType="INTEGER" property="inuharm10Overtime" />
|
||||
<result column="inuharm_11_overtime" jdbcType="INTEGER" property="inuharm11Overtime" />
|
||||
<result column="inuharm_12_overtime" jdbcType="INTEGER" property="inuharm12Overtime" />
|
||||
<result column="inuharm_13_overtime" jdbcType="INTEGER" property="inuharm13Overtime" />
|
||||
<result column="inuharm_14_overtime" jdbcType="INTEGER" property="inuharm14Overtime" />
|
||||
<result column="inuharm_15_overtime" jdbcType="INTEGER" property="inuharm15Overtime" />
|
||||
<result column="inuharm_16_overtime" jdbcType="INTEGER" property="inuharm16Overtime" />
|
||||
<result column="i_neg_overtime" jdbcType="INTEGER" property="iNegOvertime" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
time_id, my_index, phasic_type, all_time, flicker_all_time, freq_dev_overtime, voltage_dev_overtime,
|
||||
ubalance_overtime, flicker_overtime, uaberrance_overtime, uharm_2_overtime, uharm_3_overtime,
|
||||
uharm_4_overtime, uharm_5_overtime, uharm_6_overtime, uharm_7_overtime, uharm_8_overtime,
|
||||
uharm_9_overtime, uharm_10_overtime, uharm_11_overtime, uharm_12_overtime, uharm_13_overtime,
|
||||
uharm_14_overtime, uharm_15_overtime, uharm_16_overtime, uharm_17_overtime, uharm_18_overtime,
|
||||
uharm_19_overtime, uharm_20_overtime, uharm_21_overtime, uharm_22_overtime, uharm_23_overtime,
|
||||
uharm_24_overtime, uharm_25_overtime, iharm_2_overtime, iharm_3_overtime, iharm_4_overtime,
|
||||
iharm_5_overtime, iharm_6_overtime, iharm_7_overtime, iharm_8_overtime, iharm_9_overtime,
|
||||
iharm_10_overtime, iharm_11_overtime, iharm_12_overtime, iharm_13_overtime, iharm_14_overtime,
|
||||
iharm_15_overtime, iharm_16_overtime, iharm_17_overtime, iharm_18_overtime, iharm_19_overtime,
|
||||
iharm_20_overtime, iharm_21_overtime, iharm_22_overtime, iharm_23_overtime, iharm_24_overtime,
|
||||
iharm_25_overtime, inuharm_1_overtime, inuharm_2_overtime, inuharm_3_overtime, inuharm_4_overtime,
|
||||
inuharm_5_overtime, inuharm_6_overtime, inuharm_7_overtime, inuharm_8_overtime, inuharm_9_overtime,
|
||||
inuharm_10_overtime, inuharm_11_overtime, inuharm_12_overtime, inuharm_13_overtime,
|
||||
inuharm_14_overtime, inuharm_15_overtime, inuharm_16_overtime, i_neg_overtime
|
||||
</sql>
|
||||
|
||||
<select id="queryPage" resultType="com.njcn.cswarn.pojo.vo.CsStatLimitRateDVO">
|
||||
SELECT
|
||||
temp.*, cs.*
|
||||
FROM
|
||||
cs_stat_limit_rate_d cs
|
||||
INNER JOIN (
|
||||
SELECT
|
||||
a.line_id,
|
||||
a. NAME line_name,
|
||||
c.id project_id,
|
||||
c. NAME project_name
|
||||
FROM
|
||||
cs_line a,
|
||||
cs_project_equipment b,
|
||||
cs_project c
|
||||
WHERE
|
||||
1 = 1
|
||||
AND c.id = b.project_id
|
||||
AND b.equipment_id = a.dev_id
|
||||
<if test="csStatLimitRatePageParm.projectId != null and csStatLimitRatePageParm.projectId != ''">
|
||||
AND c.id = #{csStatLimitRatePageParm.projectId }
|
||||
</if>
|
||||
) temp ON cs.my_index = temp.line_id
|
||||
where 1=1
|
||||
<if test="csStatLimitRatePageParm.startTime != null and csStatLimitRatePageParm.startTime != ''">
|
||||
AND cs.time_id >= #{csStatLimitRatePageParm.startTime }
|
||||
</if>
|
||||
<if test="csStatLimitRatePageParm.endTime != null and csStatLimitRatePageParm.endTime != ''">
|
||||
AND cs.time_id <= #{csStatLimitRatePageParm.endTime }
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user