Commit e915a044 by xiongyuwen

no message

parent 01f59045
...@@ -732,8 +732,8 @@ namespace Bailun.Discuz.Application.WeiPan ...@@ -732,8 +732,8 @@ namespace Bailun.Discuz.Application.WeiPan
{ {
messageSb.Append($"新增帖子数量为:{inserWeiPanFileList.Count},分别为:{string.Join(",", inserWeiPanFileList.Select(u => u.FileName).ToArray()) };"); messageSb.Append($"新增帖子数量为:{inserWeiPanFileList.Count},分别为:{string.Join(",", inserWeiPanFileList.Select(u => u.FileName).ToArray()) };");
_weiPanFileListRepository.BulkInsert(inserWeiPanFileList.ToArray()); _weiPanFileListRepository.BulkInsert(inserWeiPanFileList.ToArray());
//RedisHelper.Del(Constants.File_List_Tree);//清除缓存 RedisHelper.Del(Constants.File_List_Tree);//清除缓存
//RedisHelper.Del(Constants.First_File_List);//清除缓存 RedisHelper.Del(Constants.First_File_List);//清除缓存
await CreateUserFilesTreeRedis(companyName); await CreateUserFilesTreeRedis(companyName);
} }
...@@ -839,8 +839,8 @@ namespace Bailun.Discuz.Application.WeiPan ...@@ -839,8 +839,8 @@ namespace Bailun.Discuz.Application.WeiPan
{ {
if(tmpUserList.Where(s=>s.UserId==u.UserId).FirstOrDefault()!=null) if(tmpUserList.Where(s=>s.UserId==u.UserId).FirstOrDefault()!=null)
{ {
RedisHelper.HDel(Constants.File_List_Tree, u.UserId); //RedisHelper.HDel(Constants.File_List_Tree, u.UserId);
RedisHelper.HDel(Constants.First_File_List, u.UserId); //RedisHelper.HDel(Constants.First_File_List, u.UserId);
_weipanUserFilesRepository.Delete(u.Id); _weipanUserFilesRepository.Delete(u.Id);
} }
}); });
...@@ -867,11 +867,11 @@ namespace Bailun.Discuz.Application.WeiPan ...@@ -867,11 +867,11 @@ namespace Bailun.Discuz.Application.WeiPan
if(weipanUserFilesList!=null&& weipanUserFilesList.Count>0) if(weipanUserFilesList!=null&& weipanUserFilesList.Count>0)
{ {
var tmpUserIds=weipanUserFilesList.GroupBy(u => u.UserId).ToList(); var tmpUserIds=weipanUserFilesList.GroupBy(u => u.UserId).ToList();
tmpUserIds.ForEach(u=> { //tmpUserIds.ForEach(u=> {
RedisHelper.HDel(Constants.File_List_Tree,u.Key); // RedisHelper.HDel(Constants.File_List_Tree,u.Key);
RedisHelper.HDel(Constants.First_File_List, u.Key); // RedisHelper.HDel(Constants.First_File_List, u.Key);
}); //});
await _weipanUserFilesRepository.BulkInsertAsync(weipanUserFilesList.ToArray()); await _weipanUserFilesRepository.BulkInsertAsync(weipanUserFilesList.ToArray());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment