|
@@ -2,6 +2,7 @@ package com.gis.mapper;
|
|
|
|
|
|
|
|
|
import com.gis.domain.po.VisitEntity;
|
|
|
+import com.gis.domain.vo.VisitVo;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
import org.springframework.stereotype.Component;
|
|
@@ -16,7 +17,7 @@ public interface VisitMapper extends IBaseMapper<VisitEntity, Long> {
|
|
|
|
|
|
@Select("select COUNT(id) as count, DATE_FORMAT( create_time, '%H' ) as time from tb_visit " +
|
|
|
"where is_delete = 0 AND module = #{module} AND DATE_FORMAT( create_time, '%Y%m%d' ) = DATE_FORMAT(#{date} , '%Y%m%d' ) GROUP BY time ORDER BY time")
|
|
|
- List<VisitEntity> trend(String date, String module);
|
|
|
+ List<VisitVo> trend(String date, String module);
|
|
|
|
|
|
@Select("select COUNT(id) from tb_visit where is_delete = 0 AND module = #{type}")
|
|
|
Integer countTotal(String type);
|