fix(设备台账): 修复 Mapper 中 tenant_id/create_time 缺少表别名导致的 SQL 歧义(Column 'tenant_id' in where clause is ambiguous),台账列表一直 500 空白
已修改1个文件
4 ■■■■■ 文件已修改
src/main/resources/mapper/device/DeviceLedgerMapper.xml 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/device/DeviceLedgerMapper.xml
@@ -69,10 +69,10 @@
            <!-- 租户ID -->
            <if test="deviceLedger.tenantId != null">
                AND tenant_id = #{deviceLedger.tenantId}
                AND dl.tenant_id = #{deviceLedger.tenantId}
            </if>
        </where>
        ORDER BY create_time DESC
        ORDER BY dl.create_time DESC
    </select>
    <select id="deviceLedgerExportList" resultType="com.ruoyi.device.execl.DeviceLedgerExeclDto">