<iftest="monitorId != null and monitorId != ''">and rdi.monitor_id = #{monitorId}</if>
<iftest="monitorId != null and monitorId != ''">and rdi.monitor_id = #{monitorId}</if>
<iftest="params.beginCollectTime != null and params.beginCollectTime != '' and params.endCollectTime != null and params.endCollectTime != ''">
and rdi.collect_time between to_date(#{params.beginCollectTime}, 'yyyy-mm-dd hh24:mi:ss') and to_date(#{params.endCollectTime}, 'yyyy-mm-dd hh24:mi:ss')</if>
<iftest="va != null "> and rdi.va = #{va}</if>
<iftest="vb != null "> and rdi.vb = #{vb}</if>
<iftest="vc != null "> and rdi.vc = #{vc}</if>
<iftest="ia != null "> and rdi.ia = #{ia}</if>
<iftest="ib != null "> and rdi.ib = #{ib}</if>
<iftest="ic != null "> and rdi.ic = #{ic}</if>
<iftest="recordTime != null "> and rdi.record_time = #{recordTime}</if>
<iftest="glys != null "> and rdi.glys = #{glys}</if>
<iftest="zxyg != null "> and rdi.zxyg = #{zxyg}</if>
<iftest="activePower != null "> and rdi.active_power = #{activePower}</if>
<iftest="reactivePower != null "> and rdi.reactive_power = #{reactivePower}</if>
<iftest="collectType != null "> and rdi.collect_type = #{collectType}</if>
<iftest="isFlag != null "> and rdi.is_flag = #{isFlag}</if>
<iftest="createdBy != null and createdBy != ''"> and rdi.created_by = #{createdBy}</if>
<iftest="createdTime != null "> and rdi.created_time = #{createdTime}</if>
<iftest="updatedBy != null and updatedBy != ''"> and rdi.updated_by = #{updatedBy}</if>
<iftest="updatedTime != null "> and rdi.updated_time = #{updatedTime}</if>
<iftest="factoryCode != null and factoryCode != ''"> and rdi.factory_code = #{factoryCode}</if>
and rdi.collect_time between to_date(#{params.beginCollectTime}, 'yyyy-mm-dd hh24:mi:ss') and