zx 1 week ago
parent
commit
56778649ca

+ 3 - 1
fs-service/src/main/java/com/fs/qw/service/impl/QwExternalContactServiceImpl.java

@@ -2176,7 +2176,9 @@ public class QwExternalContactServiceImpl extends ServiceImpl<QwExternalContactM
 
 
     @Override
     @Override
     public QwUser getQwUserByRedisForId(String qwUserId) {
     public QwUser getQwUserByRedisForId(String qwUserId) {
-
+        if(qwUserId==null|| !qwUserId.isEmpty()){
+            return  null;
+        }
         String redisKey = "qwUserRdById:" + qwUserId;
         String redisKey = "qwUserRdById:" + qwUserId;
 
 
         // 直接从Redis获取JSON字符串
         // 直接从Redis获取JSON字符串