bug修复
This commit is contained in:
parent
936cbb091a
commit
7cac57d867
@ -1,16 +1,15 @@
|
||||
package com.zhgd.xmgl.modules.basicdata.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import lombok.Data;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
|
||||
import java.io.Serializable;
|
||||
/**
|
||||
* @Description: 系统权限-菜单权限、操作权限
|
||||
* @author: pds
|
||||
@ -41,4 +40,8 @@ public class BaseAuthority implements Serializable {
|
||||
@Excel(name = "状态:0-禁用 1-启用", width = 15)
|
||||
@ApiModelProperty(value="状态:0-禁用 1-启用")
|
||||
private java.lang.Integer status ;
|
||||
|
||||
@TableField(exist = false)
|
||||
@ApiModelProperty("是否有下级列表")
|
||||
private Boolean hasSubList;
|
||||
}
|
||||
|
||||
@ -3,7 +3,12 @@
|
||||
<mapper namespace="com.zhgd.xmgl.modules.basicdata.mapper.BaseAuthorityMapper">
|
||||
|
||||
<select id="getRoleAuthorityList" resultType="com.zhgd.xmgl.modules.basicdata.entity.BaseAuthority">
|
||||
SELECT a.*
|
||||
SELECT a.*,if(
|
||||
(SELECT count(c.authority_id)
|
||||
from base_action t
|
||||
LEFT JOIN base_authority c ON t.action_id=c.action_id
|
||||
where a.menu_id=t.menu_id)
|
||||
> 0 ,1,0) hasSubList
|
||||
FROM base_authority a LEFT JOIN base_authority_role b ON a.authority_id=b.authority_id
|
||||
WHERE a.`status`=1 and b.role_id= #{roleId}
|
||||
</select>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user