| | |
| | | @Repository |
| | | public interface OperateLogMapper extends BaseMapper<OperateLog> { |
| | | |
| | | @Select("select count(1) from sys_operate_log where yearweek(date_format(create_time,'%Y-%m-%d')) = yearweek(now());") |
| | | @Select("select count(1) from \"SOURCE\".\"sys_operate_log\" where yearweek(date_format(CREATE_TIME,'%Y-%m-%d')) = yearweek(now());") |
| | | int selectCountByCurrentWeek(); |
| | | |
| | | @Select("select MONTH(create_time) as node , count(1) as val from sys_operate_log where 1 = 1 and year(create_time) = #{year} group by MONTH(create_time)") |
| | | @Select("select MONTH(CREATE_TIME) as node , count(1) as val from \"SOURCE\".\"sys_operate_log\" where 1 = 1 and year(CREATE_TIME) = #{year} group by MONTH(CREATE_TIME)") |
| | | List<Map<String, Object>> getReportByYear(@Param("year") Integer year); |
| | | |
| | | @Select("select DAYOFMONTH(create_time) as node,count(1) as val from sys_operate_log where 1 = 1 and year(create_time) = #{year} and month(create_time) = #{month} group by DAYOFMONTH(create_time)") |
| | | @Select("select DAYOFMONTH(CREATE_TIME) as node,count(1) as val from \"SOURCE\".\"sys_operate_log\" where 1 = 1 and year(CREATE_TIME) = #{year} and month(CREATE_TIME) = #{month} group by DAYOFMONTH(CREATE_TIME)") |
| | | List<Map<String, Object>> getReportByMonth(@Param("year") Integer year, @Param("month") Integer month); |
| | | |
| | | } |