where 后面怎么填 数据库里有一列是时间 要检索时间在当前年月的数据
这个,你数据库是什么,格式是什么
例如mysql
where DATE_FORMAT(日期字段,'%Y-%m')=‘${format(today(),"yyyy-MM")}’
======
where DATE_FORMAT(时间,'%Y-%m')=‘${format(today(),"yyyy-MM")}’
select * from 日报
where 实体名称 = '${name}'
and date_format(时间, '%y-%m')=date_format(curdate(),'%y-%m');