<iftest="toDate != null"> AND LOG_ID <= CONCAT(#{toDate}, LPAD(9, 16, '9'))</if>
<iftest="logTypes != null"> AND A.LOG_TYPE IN (<foreachcollection="logTypes"item="logType"separator=",">#{logType}</foreach>)</if>
<iftest="userIDs != null"> AND USER_ID IN (<foreachcollection="userIDs"item="userID"separator=",">#{userID}</foreach>)</if>
<iftest="userAccounts != null"> AND USER_ACNT IN (<foreachcollection="userAccounts"item="userAccount"separator=",">#{userAccount}</foreach>)</if>
<iftest="userAccounts != null"> AND UPPER(USER_ACNT) IN (<foreachcollection="userAccounts"item="userAccount"separator=",">UPPER(#{userAccount})</foreach>)</if>
<iftest="userName != null"> AND USER_NM LIKE CONCAT('%', #{userName}, '%')</if>