专家统计优化
This commit is contained in:
parent
fad993e486
commit
a3542daa9f
|
@ -37,7 +37,7 @@ public class ExpertDashboardController {
|
|||
}
|
||||
|
||||
@GetMapping(value = "getExpertAduit")
|
||||
@ApiOperation(value = "近一年专家评审作品数")
|
||||
@ApiOperation(value = "专家评审作品数排序")
|
||||
public AjaxResult getExpertAduit() {
|
||||
return AjaxResult.success(expertDashboardService.getExpertAduit());
|
||||
}
|
||||
|
|
|
@ -36,25 +36,25 @@ public class MemoDashboardController {
|
|||
return AjaxResult.success(memoDashboardService.getMemoTotalByYear());
|
||||
}
|
||||
|
||||
@GetMapping(value = "getForumSectionStatistic(")
|
||||
@GetMapping(value = "getForumSectionStatistic")
|
||||
@ApiOperation(value = "帖子分类")
|
||||
public AjaxResult getForumSectionStatistic() {
|
||||
return AjaxResult.success(memoDashboardService.getForumSectionStatistic());
|
||||
}
|
||||
|
||||
@GetMapping(value = "getAddMemoStatistic(")
|
||||
@GetMapping(value = "getAddMemoStatistic")
|
||||
@ApiOperation(value = "近一年新增帖子数")
|
||||
public AjaxResult getAddMemoStatistic() {
|
||||
return AjaxResult.success(memoDashboardService.getAddMemoStatistic());
|
||||
}
|
||||
|
||||
@GetMapping(value = "getTop5Memos(")
|
||||
@GetMapping(value = "getTop5Memos")
|
||||
@ApiOperation(value = "年度帖子热度top5")
|
||||
public AjaxResult getTop5Memos() {
|
||||
return AjaxResult.success(memoDashboardService.getTop5Memos());
|
||||
}
|
||||
|
||||
@GetMapping(value = "get7DayPaise(")
|
||||
@GetMapping(value = "get7DayPaise")
|
||||
@ApiOperation(value = "近7日帖子点赞数")
|
||||
public AjaxResult get7DayPaise() {
|
||||
return AjaxResult.success(memoDashboardService.get7DayPaise());
|
||||
|
|
|
@ -418,6 +418,7 @@
|
|||
and review_area_three is not null
|
||||
and review_area_three != '') a
|
||||
group by a.domain_value
|
||||
limit 0,9
|
||||
</select>
|
||||
|
||||
<select id="getExpertAduit" resultType="com.microservices.dms.achievementLibrary.domain.ExpertTotallVo">
|
||||
|
@ -430,14 +431,14 @@
|
|||
(select COUNT(distinct container_id)
|
||||
from task_expert
|
||||
where expert_id = e.id
|
||||
and container_type = 2 and `status` in (1,2)) as competitionAuditCount
|
||||
and container_type = 2 and `status` in (1,2)) as competitionAuditCount
|
||||
from experts e
|
||||
inner join users u on e.user_id = u.id
|
||||
left join expert_resource_library erl on e.id = erl.user_id
|
||||
where e.is_delete = '0'
|
||||
and e.status = 1) tmp
|
||||
order by (tmp.taskAuditCount + tmp.competitionAuditCount) desc
|
||||
limit 0,9
|
||||
limit 0,12
|
||||
</select>
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue