加了date2之后,sql语句改成
SELECT * FROM 订单 where 1=1
${if(type=="日报"," and date(订购日期)>='"+ date +"'"+" and date(订购日期)<='"+ date2 +"'",
if(type=="月报"," and strftime('%m',订单.订购日期)='"+ month+"'"+" and strftime('%Y',订单.订购日期)='"+ year+"'"," and strftime('%Y',订单.订购日期)='"+ year+"'"))}
日期控件ssssssssssssssssssssss.cpt
具体参考我发的哦,请参考!!!!!