SELECT * FROM 订单 where 1=1
${if(type=="日报"," and date(订购日期)>='"+ start +"'"+" and date(订购日期)<='"+ end +"'",
if(type=="月报"," and strftime('%m',订单.订购日期)='"+ month+"'"+" and strftime('%Y',订单.订购日期)='"+ year+"'"," and strftime('%Y',订单.订购日期)='"+ year+"'"))}