瀏覽代碼

Merge branch 'develop' of gitadmin/tuoheng_freeway into release

tags/V1.3.3^2
wanjing 11 月之前
父節點
當前提交
cfeb508adf
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/utils/CurrentUserUtil.java

+ 1
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/utils/CurrentUserUtil.java 查看文件

@@ -49,7 +49,7 @@ public class CurrentUserUtil {
*/
public static User getUserInfo() {
String username = SecurityUserUtils.username();
// String username = "admin";
User user = currentUserUtil.userMapper.selectOne(Wrappers.<User>lambdaQuery().eq(User::getMark, 1).eq(User::getStatus, 1).eq(User::getUsername, username));
if (null == user) {
Tenant tenant = currentUserUtil.tenantMapper.selectOne(Wrappers.<Tenant>lambdaQuery().eq(Tenant::getMark, 1).eq(Tenant::getStatus, 1).eq(Tenant::getUsername, username));

Loading…
取消
儲存