Merge pull request #146 from lanyulei/dev

fix: fix bug.
This commit is contained in:
lanyulei 2021-03-14 23:05:20 +08:00 committed by GitHub
commit 5b890ea8e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -235,6 +235,7 @@ func (s *Statistics) HandlePersonRank() (interface{}, error) {
Where("p_work_order_circulation_history.source like 'receiveTask%' and p_work_order_circulation_history.status = 1 and p_work_order_circulation_history.create_time between ? and ?", s.StartTime, s.EndTime).
Select("p_work_order_circulation_history.processor_id as user_id, p_work_order_circulation_history.processor as nickname, sys_user.username as username, count(p_work_order_circulation_history.id) as count").
Group("p_work_order_circulation_history.processor, p_work_order_circulation_history.processor_id").
Order("count desc").
Scan(&ranks).Error
return ranks, err
}