你需要包一层,select* from (select to_char(XX) 年份 from dual)where 年份 = '${年份}'
where to_char(a.create_date,'yyyy')='${年份}'