forked from dyf/fys-Multi-tenant
查询设备告警列表
This commit is contained in:
@ -1,7 +1,32 @@
|
||||
<?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">
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fuyuanshen.equipment.mapper.DeviceAlarmMapper">
|
||||
|
||||
<!-- 查询设备告警列表 -->
|
||||
<select id="selectVoPage" resultType="com.fuyuanshen.equipment.domain.vo.DeviceAlarmVo">
|
||||
select *, d.device_mac as deviceMac, d.device_imei as deviceImei,
|
||||
d.type_name as deviceTypeName
|
||||
from device_alarm da
|
||||
left join device d on da.device_id = d.id
|
||||
left join device_type dt on dt.id = da.device_type
|
||||
<where>
|
||||
<if test="bo.deviceName != null">
|
||||
and da.device_name = #{deviceName}
|
||||
</if>
|
||||
<if test="bo.deviceType != null">
|
||||
and da.device_type = #{deviceType}
|
||||
</if>
|
||||
<if test="bo.deviceAction != null">
|
||||
and da.device_action = #{deviceAction}
|
||||
</if>
|
||||
<if test="bo.treatmentState != null">
|
||||
and da.treatmentState = #{bo.treatment_state}
|
||||
</if>
|
||||
<if test="bo.queryTime1 != null and bo.queryTime2 != null ">
|
||||
and da.startTime between #{bo.queryTime1} and #{bo.queryTime2}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
|
Reference in New Issue
Block a user