and a.public_type = #{publicType} and a.wrt_organ = #{wrtOrgan} AND a.title LIKE CONCAT('%', #{title}, '%') AND a.wrt_user_nm LIKE CONCAT('%', #{wrtUserNm}, '%') and a.wrt_dt >= #{startDate}::date and a.wrt_dt <= #{endDate}::date+1 and a.tab_status = #{tabStatus} and a.public_key in ( select public_key from public_board where wrt_organ in #{organCd} union all select public_key from public_board where organ_chk = 'F' and wrt_organ in #{organCd} )