Commit 0a015e2b by 徐高华

离职继承查询

parent 10bb2c5e
...@@ -78,12 +78,12 @@ public class HmLinkServiceImpl implements HmLinkService { ...@@ -78,12 +78,12 @@ public class HmLinkServiceImpl implements HmLinkService {
public HmLinkBO getByLinkShortCodeCache(String shortCode) { public HmLinkBO getByLinkShortCodeCache(String shortCode) {
String key = "hm:link:" + shortCode; String key = "hm:link:" + shortCode;
HmLinkBO link = RedisUtil.getCache(key, HmLinkBO.class); HmLinkBO link = RedisUtil.getCache(key, HmLinkBO.class);
//if (link == null) { if (link == null) {
link = this.getByLinkShortCode(shortCode); link = this.getByLinkShortCode(shortCode);
if (link != null) { if (link != null) {
RedisUtil.setCache(key, link, 20 * 60L); RedisUtil.setCache(key, link, 20 * 60L);
} }
// } }
return link; return link;
} }
......
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