2025-04-23 17:56:18 +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.yfd.platform.modules.auxcontrol.mapper.DeviceWorkDataMapper">
|
|
|
|
|
2025-04-27 18:15:00 +08:00
|
|
|
<select id="getDeviceWorkDataPage" resultType="com.yfd.platform.modules.auxcontrol.domain.DeviceWorkData">
|
|
|
|
SELECT
|
|
|
|
station_id,
|
|
|
|
device_id,
|
|
|
|
device_name,
|
|
|
|
signal_id,
|
|
|
|
signal_name,
|
|
|
|
`value`,
|
|
|
|
unit,
|
|
|
|
start_time
|
|
|
|
FROM
|
|
|
|
fk_device_work_data
|
|
|
|
WHERE 1=1
|
|
|
|
<if test="startDate != null and startDate != ''">
|
|
|
|
AND start_time >= #{startDate}
|
|
|
|
</if>
|
|
|
|
<if test="endDate != null and endDate != ''">
|
|
|
|
AND start_time <= #{endDate}
|
|
|
|
</if>
|
|
|
|
ORDER BY start_time DESC
|
|
|
|
|
|
|
|
</select>
|
2025-04-23 17:56:18 +08:00
|
|
|
</mapper>
|