作者 Your Name

修复一些问题

@@ -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 })