|
|
@@ -147,7 +147,8 @@ public class ImMsgReceivedServiceImpl implements IImMsgReceivedService {
|
|
|
}
|
|
|
};
|
|
|
LocalSendHelper.sendData(p, resultObserver);
|
|
|
- }else if(Boolean.TRUE.equals(offlineSave)) {
|
|
|
+ }else if(Boolean.TRUE.equals(offlineSave)
|
|
|
+ &&(!StrUtil.equalsAny(msg.getType(),MsgContentType.DOCTOR_IN,MsgContentType.DOCTOR_OUT))) {
|
|
|
//不在线的时候更新未读
|
|
|
ImGroupUserPO groupUserPO = groupUserRepository.selectOne(new LambdaQueryWrapper<ImGroupUserPO>()
|
|
|
.eq(ImGroupUserPO::getUserId, msg.getToUserId())
|
|
|
@@ -186,6 +187,7 @@ public class ImMsgReceivedServiceImpl implements IImMsgReceivedService {
|
|
|
@Override
|
|
|
public Long selectUndReadTotalCount(ImMsgUnreadTotalCountQueryDTO query){
|
|
|
List<ImGroupUserPO> imGroupUserList = groupUserRepository.selectList(new LambdaQueryWrapper<ImGroupUserPO>()
|
|
|
+ .eq(StrUtil.isNotBlank(query.getClinicId()),ImGroupUserPO::getGroupId,query.getClinicId())
|
|
|
.eq(ImGroupUserPO::getUserId, query.getUserId()));
|
|
|
if(CollectionUtil.isEmpty(imGroupUserList)){
|
|
|
return 0L;
|