zss
2025-08-08 0ab755d7791bf3fff9b9e3b47abbbc8e795999ce
src/main/resources/mapper/device/DeviceLedgerMapper.xml
@@ -55,6 +55,13 @@
                AND update_user LIKE CONCAT('%', #{deviceLedger.updateUser}, '%')
            </if>
            <if test="deviceLedger.entryDateStart != null and deviceLedger.entryDateStart != '' ">
                AND dl.create_time &gt;= DATE_FORMAT(#{deviceLedger.entryDateStart},'%Y-%m-%d')
            </if>
            <if test="deviceLedger.entryDateEnd != null and deviceLedger.entryDateEnd != '' ">
                AND  dl.create_time &lt;= DATE_FORMAT(#{deviceLedger.entryDateEnd},'%Y-%m-%d')
            </if>
            <!-- 租户ID -->
            <if test="deviceLedger.tenantId != null">
                AND tenant_id = #{deviceLedger.tenantId}