无关风月
2026-01-28 a69514f8ffd299a256500b5b704e320598c1ab43
ruoyi-system/src/main/resources/mapper/system/DeviceUsageMapper.xml
@@ -55,7 +55,7 @@
        group by device_id
        ) latest on t2.id = latest.device_id
        left join project t3 on t1.project_id = t3.id
        where  t1.deleted = 0 and t1.disabled = 0
        where  t1.deleted = 0 and t1.disabled = 0 and t3.client_id =#{query.clientId}
        <if test="query.projectId != null">
            and t1.project_id = #{query.projectId}
        </if>