|
...
|
...
|
@@ -98,7 +98,7 @@ func GetTopDepartment(departments []*protocol.Department) *protocol.Department { |
|
|
|
if len(departments) == 0 {
|
|
|
|
return &protocol.Department{}
|
|
|
|
}
|
|
|
|
log.Debug(common.AssertJson(departments))
|
|
|
|
log.Debug("部门:", common.AssertJson(departments))
|
|
|
|
var top *protocol.Department
|
|
|
|
var countTop, countTmp = 0, 0
|
|
|
|
for i := range departments {
|
|
...
|
...
|
@@ -128,7 +128,7 @@ func GetTopDepartment(departments []*protocol.Department) *protocol.Department { |
|
|
|
func GetTopPosition(positions []*protocol.Position) *protocol.Position {
|
|
|
|
var top *protocol.Position
|
|
|
|
var countTop, countTmp = 0, 0
|
|
|
|
log.Debug(common.AssertJson(positions))
|
|
|
|
log.Debug("职位:", common.AssertJson(positions))
|
|
|
|
if len(positions) == 0 {
|
|
|
|
return &protocol.Position{}
|
|
|
|
}
|
...
|
...
|
|