plan_state <> 'DST008' and a.wrt_user_seq = #{wrtUserSeq} and a.wrt_user_nm like '%'||#{wrtUserNm}||'%' and a.wrt_organ = #{wrtOrgan} and a.content_title like '%'||#{contentTitle}||'%' and a.plan_state = #{planState} and a.plan_dt >= #{startDate}::date and a.plan_dt <= #{endDate}::date+1 and a.wrt_dt >= #{startDate}::date and a.wrt_dt <= #{endDate}::date+1 and a.wrt_organ in #{organCd} and a.plan_state in ('DST002', 'DST004') and a.plan_state in ('DST003', 'DST005', 'DST006') and a.plan_state in ('DST003', 'DST004', 'DST005', 'DST006') and a.plan_state in ('DST003', 'DST005', 'DST006') and a.plan_state in ('DST002', 'DST004') and a.plan_state in ('DST003', 'DST005', 'DST006')