正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
@@ -498,6 +498,9 @@ func (srv StaffAssessServeice) createStaffAssess(transactionContext application. | @@ -498,6 +498,9 @@ func (srv StaffAssessServeice) createStaffAssess(transactionContext application. | ||
498 | //获取用户的部门 | 498 | //获取用户的部门 |
499 | userDepartmentMap := map[int64][]*domain.Department{} | 499 | userDepartmentMap := map[int64][]*domain.Department{} |
500 | for _, v := range userList { | 500 | for _, v := range userList { |
501 | + if len(v.DepartmentId) == 0 { | ||
502 | + continue | ||
503 | + } | ||
501 | _, departmemtList, err := departmentRepo.Find(map[string]interface{}{ | 504 | _, departmemtList, err := departmentRepo.Find(map[string]interface{}{ |
502 | "ids": v.DepartmentId, | 505 | "ids": v.DepartmentId, |
503 | }) | 506 | }) |
-
请 注册 或 登录 后发表评论