作者 yangfu

部门统计排序修改

... ... @@ -103,7 +103,7 @@ func (this *DepartmentStatisticsResponse) Less(i, j int) bool {
return true
}
if this.List[i].ACTotal == this.List[j].ACTotal && this.List[i].ChanceApprovedTotal == this.List[j].ChanceApprovedTotal && this.List[i].AchievementTotal == this.List[j].AchievementTotal {
if this.List[i].Dep.Id > this.List[j].Dep.Id {
if this.List[i].Dep.Time > this.List[j].Dep.Time {
return true
}
}
... ...
... ... @@ -1539,7 +1539,7 @@ func ChancePool(header *protocol.RequestHeader, request *protocol.ChancePoolRequ
log.Error(err)
return
}
rsp = &protocol.ChancePoolResponse{Total: total}
rsp = &protocol.ChancePoolResponse{Total: total, List: make([]protocol.CommonListItem, 0)}
for i := 0; i < len(myChances); i++ {
chance := myChances[i]
if provider, err = agg.GetUserBaseInfo(chance.Uid, header.CompanyId); err != nil {
... ...