public async Task <ActionResult> BatchPassReset(string ids) { var json = new JsonModel { message = "操作失败!", statusCode = 300 }; if (string.IsNullOrEmpty(ids)) { return(Json(json)); } var list = await UsersRepository.BatchPasswordResetAsync(ids); if (list == null || list.Count <= 0) { return(Json(json)); } var msg = string.Join(",", list.Select(m => m.LoginName).ToArray()).ToEllipsis(100); //插入日志 await LogRepository.Insert(TableSource.Users, OperationType.Update, string.Format("批量重置{0}等密码", msg), ids); json.statusCode = 200; json.message = "操作成功!"; json.closeCurrent = false; return(Json(json)); }