"SUM"(sum(TM1.数量*case when substr(年,1,4)='2020' then TM2.单价 end)+sum(TM1.数量*case when substr(年,1,4)<'2020' then TM2.单价 end)) 总额,