Commit 1ca50da0 by 徐高华

群主群数量

parent 2dfa2f4d
...@@ -683,6 +683,9 @@ public class GroupChatServiceImpl implements GroupChatService { ...@@ -683,6 +683,9 @@ public class GroupChatServiceImpl implements GroupChatService {
} }
this.groupChatMapper.update(chat); this.groupChatMapper.update(chat);
this.saveOwner(wxEnterpriseId, staff.getStaffId()); this.saveOwner(wxEnterpriseId, staff.getStaffId());
if(null != oldStaffId && !oldStaffId.equals(newStaffId)) {
this.updateOwnerCount(oldStaffId) ;
}
RedisUtil.unlock(lockKey); RedisUtil.unlock(lockKey);
} }
} catch (Exception e) { } catch (Exception e) {
...@@ -939,7 +942,6 @@ public class GroupChatServiceImpl implements GroupChatService { ...@@ -939,7 +942,6 @@ public class GroupChatServiceImpl implements GroupChatService {
} }
if (StringUtils.isNotEmpty(oldStaffId)) { if (StringUtils.isNotEmpty(oldStaffId)) {
this.groupChatOwnerHistoryMapper.updateOwnerEnd(groupChatId, oldStaffId); this.groupChatOwnerHistoryMapper.updateOwnerEnd(groupChatId, oldStaffId);
this.updateOwnerCount(oldStaffId);
} }
} }
......
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