liujie
2026-01-28 d84933832e387cafcc47481350a533b2a3fb1e11
ruoyi-system/src/main/resources/mapper/system/DeviceUsageMapper.xml
@@ -55,7 +55,10 @@
        group by device_id
        ) latest on t2.id = latest.device_id
        left join project t3 on t1.project_id = t3.id
        where t1.project_id = #{query.projectId} and 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>
        <if test="query.type != null">
            and t2.type = #{query.type}
        </if>