Commit 2ded3b68 by Shadow

fixed bug

parent e49fa879
...@@ -325,6 +325,10 @@ public class ImClientServiceImpl extends BaseServiceImpl<ImClientMapper, ImClien ...@@ -325,6 +325,10 @@ public class ImClientServiceImpl extends BaseServiceImpl<ImClientMapper, ImClien
return imClientMapper.selectById(id); return imClientMapper.selectById(id);
} }
@CacheEvict(key = "#p0")
public void deleteCacheImClient(Long id) {
}
@Override @Override
public List<ImClientSimpleDto> getSimpleClients(Long applicationId, List<String> clientIds) { public List<ImClientSimpleDto> getSimpleClients(Long applicationId, List<String> clientIds) {
return imClientMapper.getSimpleClients(applicationId, clientIds); return imClientMapper.getSimpleClients(applicationId, clientIds);
...@@ -401,7 +405,7 @@ public class ImClientServiceImpl extends BaseServiceImpl<ImClientMapper, ImClien ...@@ -401,7 +405,7 @@ public class ImClientServiceImpl extends BaseServiceImpl<ImClientMapper, ImClien
targetClient.setAttributes(JSONObject.toJSONString(attributes)); targetClient.setAttributes(JSONObject.toJSONString(attributes));
// 清除client的redis缓存 // 清除client的redis缓存
deleteCacheImClient(targetClient.getFkAppid(), targetClient.getClientId()); deleteCacheImClient(targetClient.getFkAppid(), targetClient.getClientId());
deleteImClient(targetClient.getId()); deleteCacheImClient(targetClient.getId());
return this.updateById(targetClient); return this.updateById(targetClient);
} }
} }
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