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>