帆软有自带一个云端的运维查询。。用户查询。。。导出。。打印都有记录的。。
云端运维报告- FineReport帮助文档 - 全面的报表使用教程和学习资料 (fanruan.com)
/*这个就是导出的数据。。*/
select username,count(type) from fine_record_execute
where todate(time)>='${start} 00:00:00'
and todate(time)<='${end} 23:59:59'
${if(len(tname)==0,"","and tname like '"+tname+"%'")}
${if(len(czyh)=0,"","and username in('"+czyh+"')")}
and type>7
and type <= 27
GROUP BY username
order by username desc
$fine_username 是获取登记人的账号的
today()就是记录时间