过滤条件为空时,默认查询所有数据

皮卡!皮卡丘 / 2023-05-31 / 原文

用or 来拼接为空和不为空的条件。     

where 
         f.采购日期 >= '2023-5-1'  or   f.采购日期  = ''