/// <summary> /// 重新设置数据 /// </summary> /// <returns>影响行数</returns> public int Reset() { int result = 0; result += this.ResetData(); BaseUserLogOnManager manager = new BaseUserLogOnManager(this.DbHelper, this.UserInfo); result += manager.ResetVisitInfo(); return(result); }
/// <summary> /// 重置用户访问情况 /// </summary> /// <param name="userInfo">用户</param> /// <param name="ids">日志主键</param> /// <returns>影响行数</returns> public int ResetVisitInfo(BaseUserInfo userInfo, string[] ids) { int result = 0; var parameter = ServiceInfo.Create(userInfo, MethodBase.GetCurrentMethod()); ServiceUtil.ProcessUserCenterWriteDbWithTransaction(userInfo, parameter, (dbHelper) => { var manager = new BaseUserLogOnManager(dbHelper, userInfo); // 重置访问情况 result = manager.ResetVisitInfo(ids); }); return(result); }