| | |
| | | AND update_user LIKE CONCAT('%', #{deviceLedger.updateUser}, '%') |
| | | </if> |
| | | |
| | | <if test="deviceLedger.entryDateStart != null and deviceLedger.entryDateStart != '' "> |
| | | AND dl.create_time >= DATE_FORMAT(#{deviceLedger.entryDateStart},'%Y-%m-%d') |
| | | </if> |
| | | <if test="deviceLedger.entryDateEnd != null and deviceLedger.entryDateEnd != '' "> |
| | | AND dl.create_time <= DATE_FORMAT(#{deviceLedger.entryDateEnd},'%Y-%m-%d') |
| | | </if> |
| | | |
| | | <!-- 租户ID --> |
| | | <if test="deviceLedger.tenantId != null"> |
| | | AND tenant_id = #{deviceLedger.tenantId} |