SELECT * FROM 订单where 1=1${if(type=="","", if(type=="日报"," and date(订购日期)='"+ date +"'",if(type=="月报"," and strftime('%m',订单.订购日期)='"+ month+"'"+" and strftime('%Y',订单.订购日期)='"+ year+"'"," and strftime('%Y',订单.订购日期)='"+ year+"'")))}
|
立即参与
