lifang 3 mesiacov pred
rodič
commit
2d607bc9de

+ 2 - 1
tr-modules/tr-module-mobile/src/main/java/cn/tr/module/mobile/service/impl/ImMsgReceivedServiceImpl.java

@@ -21,6 +21,7 @@ import net.x52im.mobileimsdk.server.protocal.ProtocalFactory;
 import net.x52im.mobileimsdk.server.utils.LocalSendHelper;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.cache.annotation.CacheEvict;
+import org.springframework.cache.annotation.CachePut;
 import org.springframework.cache.annotation.Cacheable;
 import org.springframework.context.annotation.Lazy;
 import org.springframework.stereotype.Service;
@@ -188,7 +189,7 @@ public class ImMsgReceivedServiceImpl implements IImMsgReceivedService {
         return Boolean.FALSE;
     }
 
-    @Cacheable(value = "global:sys::doctorIsOnline#86400",key = "'groupId:' + #groupId")
+    @CachePut(value = "global:sys::doctorIsOnline#86400",key = "'groupId:' + #groupId")
     public Boolean doctorOnLine(String groupId){
         return Boolean.TRUE;
     }