fix:大屏查询记录GC问题

hhk
HuangHuiKang 3 weeks ago
parent 46abf68b04
commit f301c25ab9

@ -76,10 +76,10 @@
<select id="selectLatestRecords" <select id="selectLatestRecords"
resultType="cn.iocoder.yudao.module.iot.dal.dataobject.deviceoperationrecord.DeviceOperationRecordDO"> resultType="cn.iocoder.yudao.module.iot.dal.dataobject.deviceoperationrecord.DeviceOperationRecordDO">
SELECT t1.* SELECT t1.*
FROM device_operation_record t1 FROM iot_device_operation_record t1
INNER JOIN ( INNER JOIN (
SELECT device_id, MAX(create_time) AS max_time SELECT device_id, MAX(create_time) AS max_time
FROM device_operation_record FROM iot_device_operation_record
WHERE device_id IN WHERE device_id IN
<foreach collection="deviceIds" item="id" open="(" separator="," close=")"> <foreach collection="deviceIds" item="id" open="(" separator="," close=")">
#{id} #{id}

Loading…
Cancel
Save