修改uuid 增加缓存

parent 0b4908b8
......@@ -117,7 +117,7 @@ public class InnerController implements IBaseController {
@LogHttpCaller
@RequestMapping("/user/search/uuid")
public JsonResult findByUuid(String uuid) {
User user = userService.findByUuidInDb(uuid);
User user = userService.findByUuidWithCache(uuid);
if (user == null) {
return JsonResult.buildErrorStateResult("", null);
}
......@@ -133,7 +133,7 @@ public class InnerController implements IBaseController {
if (StringUtils.isBlank(uuid)) {
return JsonResult.buildSuccessResult(null, null);
}
User user = userService.findByUuidInDb(uuid);
User user = userService.findByUuidWithCache(uuid);
if (null != user) {
if (!user.getEnable()) {
return JsonResult.buildSuccessResult("", null);
......
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