Commit 9b9ff06f authored by huyuchen's avatar huyuchen

菜单权限修改

parent ef15bd95
...@@ -89,8 +89,8 @@ public class SysUserPermission extends BaseEntity { ...@@ -89,8 +89,8 @@ public class SysUserPermission extends BaseEntity {
private String deleteFlag; private String deleteFlag;
/** /**
* 项目id * 部门id
*/ */
@Schema(description = "项目id") @Schema(description = "部门id")
private String domainId; private String domainId;
} }
...@@ -78,8 +78,8 @@ public interface SysUserPermissionMapper extends BaseMapper<SysUserPermission> { ...@@ -78,8 +78,8 @@ public interface SysUserPermissionMapper extends BaseMapper<SysUserPermission> {
IPage<SysUserDeptVo> selectSettleVO(Page<SysUserDeptVo> page, @Param("name") String name); IPage<SysUserDeptVo> selectSettleVO(Page<SysUserDeptVo> page, @Param("name") String name);
/** /**
* 根据名项目编码查询id * 根据名项目部门查询id
* 项目权限 * 部门权限
* @param code 编码 * @param code 编码
* @return * @return
*/ */
......
...@@ -372,7 +372,8 @@ public class SysUserPermissionServiceImpl extends ServiceImpl<SysUserPermissionM ...@@ -372,7 +372,8 @@ public class SysUserPermissionServiceImpl extends ServiceImpl<SysUserPermissionM
} }
} }
//项目权限的时候赋值项目id //项目权限的时候赋值项目id
if (CommonConstants.FIVE_STRING.equals(insert.getPermissionType())) { if (CommonConstants.EIGHT_STRING.equals(insert.getPermissionType()) ||
CommonConstants.NINE_STRING.equals(insert.getPermissionType())) {
domainId = baseMapper.selectSettleByCode(insert.getCode()); domainId = baseMapper.selectSettleByCode(insert.getCode());
insert.setDomainId(domainId); insert.setDomainId(domainId);
} }
......
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
<select id="selectSettleVO" resultMap="nameAndCodeMap"> <select id="selectSettleVO" resultMap="nameAndCodeMap">
SELECT SELECT
a.fd_3a37fe508071fe code,a.fd_3a2b38c61ef9aa name,a.fd_id domainId a.fd_3a37fe508071fe code,a.fd_3a2b38c61ef9aa name
from ekp_24a8e6a7fc143bb8c48a a from ekp_24a8e6a7fc143bb8c48a a
where 1=1 where 1=1
<if test="name != null and name.trim() != ''"> <if test="name != null and name.trim() != ''">
...@@ -165,13 +165,6 @@ ...@@ -165,13 +165,6 @@
</if> </if>
</select> </select>
<!--根据项目编码查询id-->
<select id="selectSettleByCode" resultType="java.lang.String">
SELECT
a.fd_id
from ekp_24a8e6a7fc143bb8c48a a where a.fd_3a37fe508071fe = #{code} limit 1
</select>
<select id="selectContractSimpleVO" resultMap="nameAndCodeMap"> <select id="selectContractSimpleVO" resultMap="nameAndCodeMap">
SELECT SELECT
a.NAME, a.NAME,
...@@ -205,14 +198,23 @@ ...@@ -205,14 +198,23 @@
<select id="selectDeptVO" resultMap="nameAndCodeMap"> <select id="selectDeptVO" resultMap="nameAndCodeMap">
SELECT SELECT
a.fd_no code,a.fd_name name a.fd_no code,a.fd_name name,a.fd_id domainId
from sys_org_element a from sys_org_element a
where a.fd_is_available = '1' and fd_org_type = 2 where a.fd_is_available = '1' and a.fd_org_type = 2
<if test="name != null and name.trim() != ''"> <if test="name != null and name.trim() != ''">
AND (a.fd_no like concat('%',#{name},'%') or a.fd_name like concat('%',#{name},'%')) AND (a.fd_no like concat('%',#{name},'%') or a.fd_name like concat('%',#{name},'%'))
</if> </if>
</select> </select>
<!--根据部门编码查询id-->
<select id="selectSettleByCode" resultType="java.lang.String">
SELECT
a.fd_id
from sys_org_element a
where a.fd_is_available = '1' and a.fd_org_type = 2 and a.fd_no = #{code}
limit 1
</select>
<select id="selectDictByType" resultMap="dictMap"> <select id="selectDictByType" resultMap="dictMap">
SELECT SELECT
a.dict_id as id,a.name a.dict_id as id,a.name
......
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