year年份的前一年1月1号到year前一年的当前日期,比如当前日期是1月28号,year=2020,即2019-01-01到2019-01-28:
funddealdate BETWEEN '${CONCATENATE(year-1,"-01-01")}'
AND '${YEARDELTA(CONCATENATE(year-1,"-",format(today(),"MM-dd")),-1)}'
下拉框如果是今年的话,就是前一年当前日期,前一年是其余年份的话,就是整年的:
funddealdate BETWEEN '${CONCATENATE(year-1,"-01-01")}'
AND '${YEARDELTA(today(),-1)}'
AND funddealdate <= '${CONCATENATE(year-1,"-12-31")}'