Browse Source

Merge branch 'develop' of http://192.168.11.14:51037/gitadmin/tuoheng_freeway into develop

tags/v1.0.0^2
wanjing 1 year ago
parent
commit
5d0a7a89fc
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/controller/RoleController.java
  2. +2
    -2
      tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/utils/CurrentUserUtil.java

+ 2
- 2
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/controller/RoleController.java View File

@@ -81,8 +81,8 @@ public class RoleController {
* @param query
* @return
*/
@PostMapping("/getMenuList")
public JsonResult getMenuList(@RequestBody RoleClientQuery query) {
@GetMapping("/getMenuList")
public JsonResult getMenuList(RoleClientQuery query) {
return roleService.getMenuList(query);
}


+ 2
- 2
tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/utils/CurrentUserUtil.java View File

@@ -2,6 +2,7 @@ package com.tuoheng.miniprogram.utils;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.tuoheng.common.core.exception.ServiceException;
import com.tuoheng.common.core.utils.SecurityUserUtils;
import com.tuoheng.miniprogram.dao.TenantMapper;
import com.tuoheng.miniprogram.dao.UserMapper;
import com.tuoheng.miniprogram.entity.Tenant;
@@ -46,8 +47,7 @@ public class CurrentUserUtil {
* @return
*/
public static User getUserInfo() {
// String username = SecurityUserUtils.username();
String username = "admin";
String username = SecurityUserUtils.username();
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…
Cancel
Save