Commit e3773908 by 黄明步

.

parent 7b8fc936
......@@ -2,7 +2,6 @@ package com.gxmailu.ocrCloudPlatform.service.impl;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.ObjUtil;
import cn.hutool.core.util.RandomUtil;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
......@@ -238,7 +237,7 @@ public class ServerInfoServiceImpl implements ServerInfoService {
try {
List<ServerInfo> serverInfos;
Object object = redisService.getValue(RedisConstant.OCR_SERVER_ALL);
if (ObjUtil.isNull(object)) {
if (ObjUtil.isNotNull(object)) {
serverInfos = JSONArray.parseArray(object.toString(), ServerInfo.class);
} else {
serverInfos = serverInfoMapper.selectList(Wrappers.lambdaQuery(ServerInfo.class)
......
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