2025-09-30 10:49:22 +08:00
|
|
|
<?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.klp.ems.mapper.EmsAlarmDeviceMapper">
|
|
|
|
|
|
|
|
|
|
<resultMap type="com.klp.ems.domain.EmsAlarmDevice" id="EmsAlarmDeviceResult">
|
|
|
|
|
<result property="deviceId" column="device_id"/>
|
|
|
|
|
<result property="deviceName" column="device_name"/>
|
|
|
|
|
<result property="deviceCode" column="device_code"/>
|
|
|
|
|
<result property="deviceType" column="device_type"/>
|
|
|
|
|
<result property="locationId" column="location_id"/>
|
|
|
|
|
<result property="status" column="status"/>
|
|
|
|
|
<result property="ipAddress" column="ip_address"/>
|
|
|
|
|
<result property="firmwareVer" column="firmware_ver"/>
|
|
|
|
|
<result property="createBy" column="create_by"/>
|
|
|
|
|
<result property="updateBy" column="update_by"/>
|
|
|
|
|
<result property="createTime" column="create_time"/>
|
|
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
|
|
<result property="delFlag" column="del_flag"/>
|
|
|
|
|
<result property="remark" column="remark"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
<select id="selectVoPagePlus" resultType="com.klp.ems.domain.vo.EmsAlarmDeviceVo">
|
|
|
|
|
SELECT
|
|
|
|
|
d.device_id,
|
|
|
|
|
d.device_name,
|
|
|
|
|
d.device_code,
|
|
|
|
|
d.device_type,
|
|
|
|
|
d.location_id,
|
|
|
|
|
d.status,
|
|
|
|
|
d.ip_address,
|
|
|
|
|
d.firmware_ver,
|
|
|
|
|
d.create_by,
|
|
|
|
|
d.update_by,
|
|
|
|
|
d.create_time,
|
|
|
|
|
d.update_time,
|
|
|
|
|
d.del_flag,
|
|
|
|
|
d.remark,
|
2025-09-30 11:22:48 +08:00
|
|
|
l.name AS locationName
|
2025-09-30 10:49:22 +08:00
|
|
|
FROM
|
|
|
|
|
ems_alarm_device d
|
|
|
|
|
LEFT JOIN ems_location l ON d.location_id = l.location_id
|
|
|
|
|
${ew.customSqlSegment}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|