select SALE from PC_PRODUCT where t_date=(select max(t_date) t_date from PC_PRODUCT where SALE IS NOT NULL)
试试
-------------------------------
select SALE from PC_PRODUCT where t_date=(select max(t_date) t_date from PC_PRODUCT where SALE IS NOT NULL and t_date<='${日期控件}')