and a.public_type = #{publicType} and a.wrt_dt >= #{startDate}::date and a.wrt_dt <= #{endDate}::date+1 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} )