1.综合评估省级趋势展示
2.技术监督-终端周期检测
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 终端周期检测表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author xy
|
||||
* @since 2024-06-13
|
||||
*/
|
||||
public interface CheckDeviceMapper extends MppBaseMapper<CheckDevice> {
|
||||
|
||||
Page<CheckDeviceVo> page(@Param("page") Page<UserVO> page, @Param("ew") QueryWrapper<CheckDeviceVo> queryWrapper);
|
||||
|
||||
CheckDeviceVo getInfo(@Param("id") String id);
|
||||
|
||||
}
|
||||
@@ -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.supervision.mapper.device.CheckDeviceMapper">
|
||||
|
||||
<select id="page" resultType="CheckDeviceVo">
|
||||
select
|
||||
A.*,
|
||||
B.Name deviceName,
|
||||
B1.Name substation,
|
||||
B2.Name dept
|
||||
from
|
||||
supervision_check_device A
|
||||
left join pq_line B on A.device_id = B.Id
|
||||
left join pq_line B1 on B.Pid = B1.Id
|
||||
left join pq_line B2 on B1.Pid = B2.Id
|
||||
<where>
|
||||
and ${ew.sqlSegment}
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="getInfo" resultType="CheckDeviceVo">
|
||||
select
|
||||
A.*,
|
||||
B.Name deviceName,
|
||||
B1.Name substation,
|
||||
B2.Name dept
|
||||
from
|
||||
supervision_check_device A
|
||||
left join pq_line B on A.device_id = B.Id
|
||||
left join pq_line B1 on B.Pid = B1.Id
|
||||
left join pq_line B2 on B1.Pid = B2.Id
|
||||
where A.Id = #{id}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user