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
73700e94
Commit
73700e94
authored
Jan 04, 2023
by
huyuchen
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/MVP1.4' into MVP1.4
parents
89c26461
acee334c
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
14 additions
and
13 deletions
+14
-13
CustomerBusinessContoller.java
...1/yifu/archives/controller/CustomerBusinessContoller.java
+1
-1
BusinessUserController.java
...plus/v1/yifu/admin/controller/BusinessUserController.java
+7
-6
SysRoleMapper.java
...m/yifu/cloud/plus/v1/yifu/admin/mapper/SysRoleMapper.java
+1
-1
SysUserRoleMapper.java
...fu/cloud/plus/v1/yifu/admin/mapper/SysUserRoleMapper.java
+1
-1
SysRoleService.java
...yifu/cloud/plus/v1/yifu/admin/service/SysRoleService.java
+1
-1
SysUserRoleService.java
.../cloud/plus/v1/yifu/admin/service/SysUserRoleService.java
+1
-1
SysRoleServiceImpl.java
...d/plus/v1/yifu/admin/service/impl/SysRoleServiceImpl.java
+1
-1
SysUserRoleServiceImpl.java
...us/v1/yifu/admin/service/impl/SysUserRoleServiceImpl.java
+1
-1
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/CustomerBusinessContoller.java
View file @
73700e94
...
...
@@ -196,7 +196,7 @@ public class CustomerBusinessContoller {
* @return
**/
private
LambdaQueryWrapper
<
TSettleDomain
>
getSettleDomainWrapper
(
List
<
String
>
customerIds
)
{
return
Wrappers
.<
TSettleDomain
>
lambdaQuery
().
in
(
TSettleDomain:
:
getCustomerId
,
customerIds
).
ne
(
TSettleDomain:
:
getDpAuditFlag
,
CommonConstants
.
ONE
_STRING
);
return
Wrappers
.<
TSettleDomain
>
lambdaQuery
().
in
(
TSettleDomain:
:
getCustomerId
,
customerIds
).
eq
(
TSettleDomain:
:
getDeleteFlag
,
CommonConstants
.
ZERO
_STRING
);
}
/**
...
...
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/controller/BusinessUserController.java
View file @
73700e94
...
...
@@ -171,14 +171,13 @@ public class BusinessUserController {
**/
@GetMapping
(
"/getRoleAndMenu"
)
@Operation
(
description
=
"获取b端角色信息和菜单,TYPE:类型 0:菜单 1:按钮 2:菜单加按钮(默认查菜单),userId:用户id"
)
public
R
<
RoleMenuR
>
getRoleAndMenu
(
String
type
,
Integer
userId
)
{
public
R
<
RoleMenuR
>
getRoleAndMenu
(
String
type
,
String
userId
)
{
//结果声明
RoleMenuR
result
=
new
RoleMenuR
();
//结果初始化
Map
<
String
,
String
>
roleNameMap
=
new
HashMap
<>();
Map
<
String
,
List
<
BusinessRoleMenuVo
>>
roleMenuMap
=
new
HashMap
<>();
result
.
setRoleNameMap
(
roleNameMap
);
result
.
setRoleMenuMap
(
roleMenuMap
);
//默认获取菜单
if
(
Common
.
isEmpty
(
type
)){
...
...
@@ -208,6 +207,8 @@ public class BusinessUserController {
result
.
setHavaRole
(
roleService
.
getRoleByUserIdAndClient
(
userId
,
ServiceNameConstants
.
CLIENT_ID_HR_B
));
}
}
result
.
setRoleNameMap
(
roleNameMap
);
result
.
setRoleMenuMap
(
roleMenuMap
);
return
new
R
<>(
result
);
}
/**
...
...
@@ -248,7 +249,7 @@ public class BusinessUserController {
**/
@PostMapping
(
"/saveRoleM"
)
@Operation
(
description
=
"b端用户角色关系保存"
)
public
R
<
String
>
saveRoleM
(
@RequestBody
List
<
Long
>
roleList
,
Integer
userId
)
{
public
R
<
String
>
saveRoleM
(
@RequestBody
List
<
Long
>
roleList
,
String
userId
)
{
if
(
null
==
userId
){
return
R
.
failed
(
"用户id不能为空!"
);
}
...
...
@@ -261,7 +262,7 @@ public class BusinessUserController {
if
(
null
!=
role
){
userRole
=
new
SysUserRole
();
userRole
.
setRoleId
(
role
);
userRole
.
setUserId
(
Common
.
is
NotNullToStr
(
userId
));
userRole
.
setUserId
(
Common
.
is
BlankToNullString
(
userId
));
list
.
add
(
userRole
);
}
}
...
...
@@ -303,7 +304,7 @@ public class BusinessUserController {
*/
@Operation
(
description
=
"通过ID更新用户锁定状态"
)
@GetMapping
(
"/updateLock"
)
public
R
<
Boolean
>
updateLockFlag
(
@RequestParam
(
"id"
)
Integer
id
,
@RequestParam
(
"lockFlag"
)
String
lockFlag
)
{
public
R
<
Boolean
>
updateLockFlag
(
@RequestParam
(
"id"
)
String
id
,
@RequestParam
(
"lockFlag"
)
String
lockFlag
)
{
SysUser
user
=
userService
.
getById
(
id
);
if
(
null
==
user
)
{
return
R
.
failed
(
"操作失败,无此用户!"
);
...
...
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/mapper/SysRoleMapper.java
View file @
73700e94
...
...
@@ -45,5 +45,5 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
List
<
BusinessRoleMenuVo
>
getRoleAndMenu
(
@Param
(
"type"
)
String
type
);
Set
<
String
>
getRoleByUserIdAndClient
(
@Param
(
"userId"
)
Integer
userId
,
@Param
(
"clientId"
)
String
clientId
);
Set
<
String
>
getRoleByUserIdAndClient
(
@Param
(
"userId"
)
String
userId
,
@Param
(
"clientId"
)
String
clientId
);
}
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/mapper/SysUserRoleMapper.java
View file @
73700e94
...
...
@@ -41,6 +41,6 @@ public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
*/
Boolean
deleteByUserId
(
@Param
(
"userId"
)
String
userId
);
Boolean
removeByUserAndClientId
(
@Param
(
"userId"
)
Integer
userId
,
@Param
(
"clientId"
)
String
clientId
);
Boolean
removeByUserAndClientId
(
@Param
(
"userId"
)
String
userId
,
@Param
(
"clientId"
)
String
clientId
);
}
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/service/SysRoleService.java
View file @
73700e94
...
...
@@ -88,5 +88,5 @@ public interface SysRoleService extends IService<SysRole> {
* @param clientId
* @return
**/
Set
<
String
>
getRoleByUserIdAndClient
(
Integer
userId
,
String
clientId
);
Set
<
String
>
getRoleByUserIdAndClient
(
String
userId
,
String
clientId
);
}
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/service/SysUserRoleService.java
View file @
73700e94
...
...
@@ -34,6 +34,6 @@ public interface SysUserRoleService extends IService<SysUserRole> {
* @param clientId
* @return
**/
Boolean
removeByUserAndClientId
(
Integer
userId
,
String
clientId
);
Boolean
removeByUserAndClientId
(
String
userId
,
String
clientId
);
}
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/service/impl/SysRoleServiceImpl.java
View file @
73700e94
...
...
@@ -235,7 +235,7 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> impl
}
@Override
public
Set
<
String
>
getRoleByUserIdAndClient
(
Integer
userId
,
String
clientId
)
{
public
Set
<
String
>
getRoleByUserIdAndClient
(
String
userId
,
String
clientId
)
{
return
baseMapper
.
getRoleByUserIdAndClient
(
userId
,
clientId
);
}
}
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/service/impl/SysUserRoleServiceImpl.java
View file @
73700e94
...
...
@@ -33,7 +33,7 @@ import org.springframework.stereotype.Service;
@Service
public
class
SysUserRoleServiceImpl
extends
ServiceImpl
<
SysUserRoleMapper
,
SysUserRole
>
implements
SysUserRoleService
{
@Override
public
Boolean
removeByUserAndClientId
(
Integer
userId
,
String
clientId
)
{
public
Boolean
removeByUserAndClientId
(
String
userId
,
String
clientId
)
{
return
baseMapper
.
removeByUserAndClientId
(
userId
,
clientId
);
}
}
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