Commit 2ded3b68 by Shadow

fixed bug

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