fix cache 存入null

master
luoyang 5 years ago
parent 876dc85384
commit b7c3033f1f

@ -10,7 +10,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>manage</artifactId> <artifactId>manage</artifactId>
<version>1.2.19</version> <version>1.2.20</version>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

@ -330,7 +330,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
} }
@Override @Override
@Cacheable(value = ":app_client_info:", key = "''+#clientId") @Cacheable(value = ":app_client_info:", key = "''+#clientId", unless="#result == null")
public JSONObject getClientInfo(int clientId) { public JSONObject getClientInfo(int clientId) {
return clientMapper.findClient(clientId); return clientMapper.findClient(clientId);
} }

Loading…
Cancel
Save