[add] 会员系统使用-临时增加 用于测试 会员项目管理页

This commit is contained in:
fengchenchen
2021-10-09 14:14:37 +08:00
parent 3fa6f2821e
commit b71d66feca
2 changed files with 129 additions and 1 deletions
@@ -40,6 +40,7 @@ import com.jero.modules.system.service.*;
import com.jero.modules.system.util.SecurityUtil;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
import org.springframework.util.AntPathMatcher;
@@ -101,7 +102,8 @@ public class SysBaseApiImpl implements ISysBaseAPI {
@Resource
private HuaWeiSmsUtil huaWeiSmsUtil;
@Override
@Cacheable(cacheNames=CacheConstant.SYS_USERS_CACHE, key="#username")
// @Cacheable(cacheNames=CacheConstant.SYS_USERS_CACHE, key="#username")
@CacheEvict(cacheNames=CacheConstant.SYS_USERS_CACHE, key="#username")
public LoginUser getUserByName(String username) {
if(oConvertUtils.isEmpty(username)) {
return null;