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
9712e08e
Commit
9712e08e
authored
Sep 06, 2023
by
hongguangwu
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/MVP1.5.8' into MVP1.5.8
parents
b3800686
97759818
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
4 deletions
+24
-4
MsgInfoMapper.xml
.../yifu-msg-biz/src/main/resources/mapper/MsgInfoMapper.xml
+1
-1
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-msg/yifu-msg-biz/src/main/resources/mapper/MsgInfoMapper.xml
View file @
9712e08e
...
...
@@ -133,7 +133,7 @@
e.fd_fact_node_id = 'N5'
AND b1.fd_id IS NOT NULL
) x
where x.date1 > date2 GROUP BY x.ORDER_NO
where x.date1 >
=
date2 GROUP BY x.ORDER_NO
</select>
<select
id=
"getMsgByTaskOne"
resultMap=
"msgInfoMap"
>
...
...
yifu-permission/yifu-permission-biz/src/main/java/com/yifu/cloud/plus/v1/permission/controller/SysUserPermissionController.java
View file @
9712e08e
...
...
@@ -35,7 +35,6 @@ public class SysUserPermissionController {
private
final
SysUserPermissionService
sysUserPermissionService
;
/**
* 简单分页查询
*
...
...
@@ -144,12 +143,12 @@ public class SysUserPermissionController {
}
/**
*
名称,编码模糊搜索
*
根据类型查询字典值
*
* @param type 字典类型
* @return
*/
@Operation
(
description
=
"根据
名称,编码模糊搜索
"
)
@Operation
(
description
=
"根据
类型查询字典值
"
)
@PostMapping
(
"/selectDictByType"
)
public
R
<
List
<
SysDictVo
>>
selectDictByType
(
@RequestParam
String
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 @
9712e08e
...
...
@@ -93,6 +93,14 @@ public interface SysUserPermissionMapper extends BaseMapper<SysUserPermission> {
*/
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
);
}
yifu-permission/yifu-permission-biz/src/main/java/com/yifu/cloud/plus/v1/permission/service/impl/SysUserPermissionServiceImpl.java
View file @
9712e08e
...
...
@@ -115,6 +115,9 @@ public class SysUserPermissionServiceImpl extends ServiceImpl<SysUserPermissionM
}
else
{
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
{
//项目权限
if
(
CommonConstants
.
ONE_STRING
.
equals
(
user
.
getId
()))
{
...
...
yifu-permission/yifu-permission-biz/src/main/resources/mapper/SysUserPermissionMapper.xml
View file @
9712e08e
...
...
@@ -195,6 +195,16 @@
</if>
</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
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