|
@@ -1,7 +1,9 @@
|
|
|
package com.redxun.knowledge.analysis.service;
|
|
|
|
|
|
|
|
|
+import com.redxun.knowledge.analysis.entity.vo.AlbumCategoryVo;
|
|
|
import com.redxun.knowledge.analysis.entity.vo.AlbumDetailVisitsVo;
|
|
|
+import com.redxun.knowledge.analysis.mapper.AnalysisAlbumMapper;
|
|
|
import com.redxun.knowledge.analysis.mapper.PvLogMapper;
|
|
|
import com.redxun.knowledge.utils.DateUtils;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -31,6 +33,9 @@ public class AnalysisAlbumServiceImpl {
|
|
|
@Autowired
|
|
|
private PvLogMapper pvLogMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private AnalysisAlbumMapper analysisAlbumMapper;
|
|
|
+
|
|
|
/**
|
|
|
* 专辑创建总量
|
|
|
* @param type
|
|
@@ -74,4 +79,16 @@ public class AnalysisAlbumServiceImpl {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ * 各一级分类专辑创建数量
|
|
|
+ * @param type
|
|
|
+ * @param sort
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public List<AlbumCategoryVo> level1AlbumHistogram(String type, String sort) {
|
|
|
+ //获取全部一级分类id
|
|
|
+ List<String> albumCategoryIdList = analysisAlbumMapper.selectCategory();
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
}
|