按照模板事例做了一个时间参数的查询,但是提示错误,大家帮我看看语句哪里写错了?30174
30175
SELECT * FROM dbo.
where 1=1
${if(type='date', " and date(dbo..StartData) >= '" +开始日期+ "' and date(dbo..StartData)<='" +结束日期+ "'", "")}
${if(type='month', " and cast(strftime('%m',dbo..StartData) as int) = "+月+ " and strftime('%Y',dbo..StartData) = '" +年+"'", "")}
${if(type='year', " and strftime('%Y',dbo..StartData) = '" +年+"'", "")}