Commit 83ac04ac by guojuxing

权限菜单查询接口:sql语法错误修复

parent c7f0656c
......@@ -276,7 +276,7 @@
and menu_type != 2
</if>
<if test="level != null">
level = #{level}
and level = #{level}
</if>
order by level,sort
......
......@@ -8,6 +8,8 @@ import java.util.Map;
import com.gic.auth.constant.SignConstants;
import com.gic.auth.qo.AuthItemSaveQO;
import org.apache.dubbo.rpc.RpcContext;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
......@@ -29,6 +31,8 @@ import com.gic.enterprise.utils.UserDetailUtils;
@RestController
public class MenuController {
private final static Logger LOGGER = LogManager.getLogger(MenuController.class);
@Autowired
private MenuApiService menuApiService;
......@@ -106,6 +110,7 @@ public class MenuController {

 */
@RequestMapping("/list-menu-tree")
public RestResponse listMenuTree(MenuListQO params) {
LOGGER.info("菜单列表查询参数:{}", JSON.toJSONString(params));
ServiceResponse<List<MenuDTO>> result = menuApiService.listMenuTree(params);
if (result.isSuccess()) {
return RestResponse.success(changeListToTree(MenuLevelConstants.FIRST_LEVEL_PARENT_ID, result.getResult()));
......
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