Commit 8386515e by 徐高华

Merge branch 'feature/xgh/bug/0415' into 'developer'

Feature/xgh/bug/0415

See merge request !1704
parents 94be2869 080c31b0
......@@ -187,6 +187,7 @@ public class GroupChatServiceImpl implements GroupChatService {
private void updateOwnerCount(String staffId) {
if(StringUtils.isNotBlank(staffId)) {
int chatCount = this.groupChatMapper.getCountByStaffId(staffId);
logger.info("更新群数={},{}",staffId,chatCount);
this.groupChatOwnerMapper.updateChatCount(staffId,chatCount) ;
}
}
......@@ -683,6 +684,9 @@ public class GroupChatServiceImpl implements GroupChatService {
}
this.groupChatMapper.update(chat);
this.saveOwner(wxEnterpriseId, staff.getStaffId());
if(null != chat.getOriginalStaffId()) {
this.updateOwnerCount(chat.getOriginalStaffId()) ;
}
RedisUtil.unlock(lockKey);
}
} catch (Exception e) {
......@@ -939,7 +943,6 @@ public class GroupChatServiceImpl implements GroupChatService {
}
if (StringUtils.isNotEmpty(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