Organization

pull/218/head
skiffer-git 3 years ago
parent c28c592c80
commit 51c3a753a9

@ -28,7 +28,7 @@ func OrganizationNotificationToAll(opUserID string, operationID string) {
utils2.UserDBCopyOpenIM(tips.OpUser, user) utils2.UserDBCopyOpenIM(tips.OpUser, user)
for _, v := range userIDList { for _, v := range userIDList {
log.Debug(operationID, opUserID, v, constant.OrganizationChangedNotification, &tips, operationID) log.Debug(operationID, "OrganizationNotification", opUserID, v, constant.OrganizationChangedNotification, &tips, operationID)
OrganizationNotification(opUserID, v, constant.OrganizationChangedNotification, &tips, operationID) OrganizationNotification(opUserID, v, constant.OrganizationChangedNotification, &tips, operationID)
} }
} }

@ -186,7 +186,12 @@ func GetDepartmentMemberList(departmentID string) (error, []db.DepartmentMember)
return err, nil return err, nil
} }
var departmentMemberList []db.DepartmentMember var departmentMemberList []db.DepartmentMember
err = dbConn.Table("department_members").Where("department_id=?", departmentID).Find(&departmentMemberList).Error if departmentID == "-1" {
err = dbConn.Table("department_members").Find(&departmentMemberList).Error
} else {
err = dbConn.Table("department_members").Where("department_id=?", departmentID).Find(&departmentMemberList).Error
}
if err != nil { if err != nil {
return err, nil return err, nil
} }

Loading…
Cancel
Save