|
@@ -421,4 +421,20 @@ public class AnalysisCommonServiceImpl {
|
|
|
return result;
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 员工的知识上传数和专辑评论数
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public Map<String, Object> knowledgeSumAndYelpSumByLogin() {
|
|
|
+ Map<String, Object> map = new HashMap<>();
|
|
|
+ String userId = userService.queryLoginUser();
|
|
|
+ //知识上传量
|
|
|
+ Integer knowledgeSum = analysisCommonMapper.knowledgeSum(userId);
|
|
|
+ //专辑点评量
|
|
|
+ Integer yelpSum = analysisCommonMapper.yelpSum(userId);
|
|
|
+ map.put("knowledgeSum",knowledgeSum);
|
|
|
+ map.put("yelpSum",yelpSum);
|
|
|
+ return map;
|
|
|
+ }
|
|
|
}
|