From 76829b559c24726c2a1f5a08d3d89c58f3559c7a Mon Sep 17 00:00:00 2001 From: wangziyangyang <707231019@qq.com> Date: Wed, 18 Mar 2020 11:06:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E8=AF=A5=E6=97=A5=E5=BF=97=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mes/system/service/impl/SysMenuServiceImpl.java | 6 ++++-- mes/src/main/resources/application-dev.yml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mes/src/main/java/com/wangziyang/mes/system/service/impl/SysMenuServiceImpl.java b/mes/src/main/java/com/wangziyang/mes/system/service/impl/SysMenuServiceImpl.java index df152bc..1f1a7bb 100644 --- a/mes/src/main/java/com/wangziyang/mes/system/service/impl/SysMenuServiceImpl.java +++ b/mes/src/main/java/com/wangziyang/mes/system/service/impl/SysMenuServiceImpl.java @@ -1,5 +1,6 @@ package com.wangziyang.mes.system.service.impl; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.wangziyang.mes.common.util.TreeUtil; import com.wangziyang.mes.system.dto.SysMenuDTO; @@ -47,8 +48,9 @@ public class SysMenuServiceImpl extends ServiceImpl impl @Override public Map listIndexMenuTree() throws Exception { Map result = new LinkedHashMap<>(4); - - List sysMenus = sysMenuMapper.selectList(null); + QueryWrapper queryWrapper =new QueryWrapper(); + queryWrapper.orderBy(true,true,"sort_num"); + List sysMenus = sysMenuMapper.selectList(queryWrapper); Map clearInfo = new HashMap<>(2); clearInfo.put("clearUrl", "json/clear.json"); diff --git a/mes/src/main/resources/application-dev.yml b/mes/src/main/resources/application-dev.yml index e53adbc..adc0cd2 100644 --- a/mes/src/main/resources/application-dev.yml +++ b/mes/src/main/resources/application-dev.yml @@ -51,5 +51,5 @@ spring: logging: level: root: info - com.songpeng: debug + com.wangziyang: debug config: classpath:logback.xml