diff --git a/luoo_user/src/main/java/com/luoo/user/service/TaskPointService.java b/luoo_user/src/main/java/com/luoo/user/service/TaskPointService.java index 629d826..be450e0 100644 --- a/luoo_user/src/main/java/com/luoo/user/service/TaskPointService.java +++ b/luoo_user/src/main/java/com/luoo/user/service/TaskPointService.java @@ -202,6 +202,7 @@ public class TaskPointService { TaskPoint taskPoint = (TaskPoint) redisTemplate.opsForValue().get(TASK_POINT + id); if(taskPoint == null) { taskPoint = taskPointDao.findById(id).get(); + redisTemplate.opsForValue().set(TASK_POINT + id, taskPoint); } return taskPoint; }