在线监测
1.数据生成 2.分页查询 3.预告警单下发
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
package com.njcn.supervision.mapper.device;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
|
||||
import com.njcn.supervision.pojo.po.device.CheckDevice;
|
||||
import com.njcn.supervision.pojo.vo.device.CheckDeviceVo;
|
||||
import com.njcn.user.pojo.vo.UserVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
@@ -19,7 +17,7 @@ import org.apache.ibatis.annotations.Param;
|
||||
*/
|
||||
public interface CheckDeviceMapper extends MppBaseMapper<CheckDevice> {
|
||||
|
||||
Page<CheckDeviceVo> page(@Param("page") Page<UserVO> page, @Param("ew") QueryWrapper<CheckDeviceVo> queryWrapper);
|
||||
Page<CheckDeviceVo> page(@Param("page") Page<CheckDeviceVo> page, @Param("ew") QueryWrapper<CheckDeviceVo> queryWrapper);
|
||||
|
||||
CheckDeviceVo getInfo(@Param("id") String id);
|
||||
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.njcn.supervision.mapper.device;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
|
||||
import com.njcn.supervision.pojo.po.device.LineWarning;
|
||||
import com.njcn.supervision.pojo.vo.device.OnlineVo;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 监测点每日稳态指标超标天数统计表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author xy
|
||||
* @since 2024-06-17
|
||||
*/
|
||||
public interface LineWarningMapper extends MppBaseMapper<LineWarning> {
|
||||
|
||||
Page<OnlineVo> page(@Param("page") Page<LineWarning> page, @Param("ew") QueryWrapper<LineWarning> queryWrapper);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?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.supervision.mapper.device.LineWarningMapper">
|
||||
|
||||
<select id="page" resultType="OnlineVo">
|
||||
select
|
||||
A.id id,
|
||||
D.Name dept,
|
||||
p4.Name substation,
|
||||
p3.Name deviceName,
|
||||
p1.Name lineName,
|
||||
A.line_id lineId,
|
||||
B.Business_Type businessType,
|
||||
B.Obj_Name objectName,
|
||||
A.target_type targetType,
|
||||
A.over_limit_day overLimitDay,
|
||||
A.initiate_warning_flag dataResource
|
||||
from
|
||||
supervision_line_warning A
|
||||
left join pq_line p1 on A.line_id = p1.Id
|
||||
left join pq_line p2 on p1.Pid = p2.Id
|
||||
left join pq_line p3 on p2.Pid = p3.Id
|
||||
left join pq_line p4 on p3.Pid = p4.Id
|
||||
left join pq_line p5 on p4.Pid = p5.Id
|
||||
left join pq_line_detail B on A.line_id = B.Id
|
||||
left join pq_dept_line C on A.line_id = C.Line_Id
|
||||
left join sys_dept D on C.Id = D.Id
|
||||
<where>
|
||||
and ${ew.sqlSegment}
|
||||
</where>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user