and a.wrt_user_seq = #{wrtUserSeq}
and a.wrt_user_nm like '%'||#{wrtUserNm}||'%'
and a.wrt_organ = #{wrtOrgan}
and a.clear_title like '%'||#{clearTitle}||'%'
and a.result_title like '%'||#{resultTitle}||'%'
and a.result_state = #{resultState}
and a.wrt_dt >= #{startDate}::date
and a.wrt_dt <= #{endDate}::date+1
and a.wrt_organ in
#{organCd}
and a.result_state in ('DST002', 'DST004')
and a.result_state in ('DST003', 'DST005', 'DST006')
and a.result_state in ('DST003', 'DST004', 'DST005', 'DST006')
and a.result_state in ('DST003', 'DST005', 'DST006')
and a.result_state in ('DST002', 'DST004')
and a.result_state in ('DST003', 'DST005', 'DST006')