无关风月
2026-01-28 f7ed78a8642ca84859b753698d09ce762e861f8c
代码提交
1个文件已修改
5 ■■■■■ 已修改文件
ruoyi-system/src/main/resources/mapper/system/DeviceUsageMapper.xml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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
        <if test="query.projectId != null">
            and t1.project_id = #{query.projectId}
        </if>
        <if test="query.type != null">
            and t2.type = #{query.type}
        </if>