Commit c850a59c by 袁伟铭

1.0.0

parent 620c0183
...@@ -21,6 +21,7 @@ import com.zq.user.vo.LoginVo; ...@@ -21,6 +21,7 @@ import com.zq.user.vo.LoginVo;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.cache.annotation.CacheConfig; import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.util.DigestUtils; import org.springframework.util.DigestUtils;
...@@ -152,7 +153,7 @@ public class UserService { ...@@ -152,7 +153,7 @@ public class UserService {
userDao.updateById(appUser); userDao.updateById(appUser);
} }
// @Cacheable @Cacheable(key = "'info:' + #userId")
public AppUser getUserInfo(String userId) { public AppUser getUserInfo(String userId) {
AppUser appUser = userDao.selectById(userId); AppUser appUser = userDao.selectById(userId);
return appUser; return appUser;
...@@ -164,6 +165,7 @@ public class UserService { ...@@ -164,6 +165,7 @@ public class UserService {
* @param vo * @param vo
* @return * @return
*/ */
// @Cacheable(key = "'list:' + #vo")
public PageVo<AppUser> getUserList(FindAppUserVo vo) { public PageVo<AppUser> getUserList(FindAppUserVo vo) {
LambdaQueryWrapper<AppUser> lambdaQuery = Wrappers.lambdaQuery(AppUser.class); LambdaQueryWrapper<AppUser> lambdaQuery = Wrappers.lambdaQuery(AppUser.class);
lambdaQuery.orderByAsc(AppUser::getId); lambdaQuery.orderByAsc(AppUser::getId);
......
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