修改定时器后台运行时无shiro权限导致根据functionId查询配置时引起的bug,查询菜单功能名称在menuCode方法中设置
This commit is contained in:
@@ -348,26 +348,24 @@ public class BaseCfg<T> extends BaseEntity<T> implements Cloneable{
|
|||||||
*/
|
*/
|
||||||
public void setFunctionId(Integer functionId) {
|
public void setFunctionId(Integer functionId) {
|
||||||
this.functionId = functionId;
|
this.functionId = functionId;
|
||||||
if(!StringUtil.isEmpty(functionId) && StringUtil.isEmpty(this.menuNameCode)){
|
}
|
||||||
List<SysMenu> list = UserUtils.getMenuList();
|
|
||||||
|
public String getMenuNameCode() {
|
||||||
|
if(!StringUtil.isEmpty(this.functionId) && StringUtil.isEmpty(menuNameCode)){
|
||||||
|
List<SysMenu> list = UserUtils.getMenuCfgList();
|
||||||
if(!StringUtil.isEmpty(list)) {
|
if(!StringUtil.isEmpty(list)) {
|
||||||
for (SysMenu menu :list) {
|
for (SysMenu menu :list) {
|
||||||
if (!StringUtil.isEmpty(menu.getCode())
|
if (!StringUtil.isEmpty(menu.getCode())
|
||||||
&&menu.getFunctionId()!=null
|
&&menu.getFunctionId()!=null
|
||||||
&& menu.getFunctionId().equals(functionId)
|
&& menu.getFunctionId().equals(this.functionId)
|
||||||
//&& menu.getFunctionId().equals(functionId)
|
//&& menu.getFunctionId().equals(functionId)
|
||||||
) {
|
) {
|
||||||
this.setMenuNameCode(menu.getCode());
|
this.setMenuNameCode(menu.getCode());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getMenuNameCode() {
|
|
||||||
return menuNameCode;
|
return menuNameCode;
|
||||||
}
|
}
|
||||||
public void setMenuNameCode(String menuNameCode) {
|
public void setMenuNameCode(String menuNameCode) {
|
||||||
|
|||||||
Reference in New Issue
Block a user