//批量修改用户状态 public string SysUserBatchUpdate(string[] StrSysUserIDs, string StrUserID, string UserName, string UserState) { using (SysUserBLL UserBll = new SysUserBLL()) { //清空对应的用户的缓存 if (StrSysUserIDs.Count() > 0) { //清空即时通讯的缓存 string InstantkeyString = "ImInstantLoginUsers"; WCFCache.Current[InstantkeyString] = null; for (int i = 0; i < StrSysUserIDs.Count(); i++) { string keyString = "GetUserByEmployeeID" + StrSysUserIDs[i]; WCFCache.Current[keyString] = null; } } return UserBll.BatchUpdateSysUserInfos(StrSysUserIDs, StrUserID, UserName, UserState); } }