Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
1f6492d9
Commit
1f6492d9
authored
Sep 06, 2023
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
菜单权限修改
parent
9ae9289d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
3 deletions
+23
-3
SysUserPermissionController.java
...v1/permission/controller/SysUserPermissionController.java
+2
-3
SysUserPermissionMapper.java
...ud/plus/v1/permission/mapper/SysUserPermissionMapper.java
+8
-0
SysUserPermissionServiceImpl.java
...permission/service/impl/SysUserPermissionServiceImpl.java
+3
-0
SysUserPermissionMapper.xml
...biz/src/main/resources/mapper/SysUserPermissionMapper.xml
+10
-0
No files found.
yifu-permission/yifu-permission-biz/src/main/java/com/yifu/cloud/plus/v1/permission/controller/SysUserPermissionController.java
View file @
1f6492d9
...
@@ -35,7 +35,6 @@ public class SysUserPermissionController {
...
@@ -35,7 +35,6 @@ public class SysUserPermissionController {
private
final
SysUserPermissionService
sysUserPermissionService
;
private
final
SysUserPermissionService
sysUserPermissionService
;
/**
/**
* 简单分页查询
* 简单分页查询
*
*
...
@@ -144,12 +143,12 @@ public class SysUserPermissionController {
...
@@ -144,12 +143,12 @@ public class SysUserPermissionController {
}
}
/**
/**
*
名称,编码模糊搜索
*
根据类型查询字典值
*
*
* @param type 字典类型
* @param type 字典类型
* @return
* @return
*/
*/
@Operation
(
description
=
"根据
名称,编码模糊搜索
"
)
@Operation
(
description
=
"根据
类型查询字典值
"
)
@PostMapping
(
"/selectDictByType"
)
@PostMapping
(
"/selectDictByType"
)
public
R
<
List
<
SysDictVo
>>
selectDictByType
(
@RequestParam
String
type
)
{
public
R
<
List
<
SysDictVo
>>
selectDictByType
(
@RequestParam
String
type
)
{
return
new
R
<>(
sysUserPermissionService
.
selectDictByType
(
type
));
return
new
R
<>(
sysUserPermissionService
.
selectDictByType
(
type
));
...
...
yifu-permission/yifu-permission-biz/src/main/java/com/yifu/cloud/plus/v1/permission/mapper/SysUserPermissionMapper.java
View file @
1f6492d9
...
@@ -93,6 +93,14 @@ public interface SysUserPermissionMapper extends BaseMapper<SysUserPermission> {
...
@@ -93,6 +93,14 @@ public interface SysUserPermissionMapper extends BaseMapper<SysUserPermission> {
*/
*/
IPage
<
SysUserDeptVo
>
selectQuotationVO
(
Page
<
SysUserDeptVo
>
page
,
@Param
(
"name"
)
String
name
);
IPage
<
SysUserDeptVo
>
selectQuotationVO
(
Page
<
SysUserDeptVo
>
page
,
@Param
(
"name"
)
String
name
);
/**
* 根据名称或者编码查询数据
* 部门&&收入归属权限
* @param name 名称
* @return
*/
IPage
<
SysUserDeptVo
>
selectDeptVO
(
Page
<
SysUserDeptVo
>
page
,
@Param
(
"name"
)
String
name
);
List
<
SysDictVo
>
selectDictByType
(
@Param
(
"type"
)
String
type
);
List
<
SysDictVo
>
selectDictByType
(
@Param
(
"type"
)
String
type
);
}
}
yifu-permission/yifu-permission-biz/src/main/java/com/yifu/cloud/plus/v1/permission/service/impl/SysUserPermissionServiceImpl.java
View file @
1f6492d9
...
@@ -115,6 +115,9 @@ public class SysUserPermissionServiceImpl extends ServiceImpl<SysUserPermissionM
...
@@ -115,6 +115,9 @@ public class SysUserPermissionServiceImpl extends ServiceImpl<SysUserPermissionM
}
else
{
}
else
{
iPage
=
baseMapper
.
selectContractSimpleVO
(
page
,
searchVo
.
getName
(),
searchVo
.
getName
(),
searchVo
.
getType
());
iPage
=
baseMapper
.
selectContractSimpleVO
(
page
,
searchVo
.
getName
(),
searchVo
.
getName
(),
searchVo
.
getType
());
}
}
}
else
if
(
CommonConstants
.
EIGHT_STRING
.
equals
(
searchVo
.
getType
())
||
CommonConstants
.
NINE_STRING
.
equals
(
searchVo
.
getType
()))
{
//部门&&收入归属权限
iPage
=
baseMapper
.
selectDeptVO
(
page
,
searchVo
.
getName
());
}
else
{
}
else
{
//项目权限
//项目权限
if
(
CommonConstants
.
ONE_STRING
.
equals
(
user
.
getId
()))
{
if
(
CommonConstants
.
ONE_STRING
.
equals
(
user
.
getId
()))
{
...
...
yifu-permission/yifu-permission-biz/src/main/resources/mapper/SysUserPermissionMapper.xml
View file @
1f6492d9
...
@@ -195,6 +195,16 @@
...
@@ -195,6 +195,16 @@
</if>
</if>
</select>
</select>
<select
id=
"selectDeptVO"
resultMap=
"nameAndCodeMap"
>
SELECT
a.fd_no code,a.fd_name name
from sys_org_element a
where a.fd_is_available = '1' and fd_org_type = 2
<if
test=
"name != null and name.trim() != ''"
>
AND (a.fd_no like concat('%',#{name},'%') or a.fd_name like concat('%',#{name},'%'))
</if>
</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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment