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
98d11200
Commit
98d11200
authored
Oct 27, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除权限
parent
9f486156
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
TCutsomerDataPermissonController.java
...archives/controller/TCutsomerDataPermissonController.java
+5
-5
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TCutsomerDataPermissonController.java
View file @
98d11200
...
@@ -83,7 +83,7 @@ public class TCutsomerDataPermissonController {
...
@@ -83,7 +83,7 @@ public class TCutsomerDataPermissonController {
**/
**/
@Operation
(
description
=
"权限复制 权限同项目分配客服(wxhr:tsettledomain_assign_customerservice)"
)
@Operation
(
description
=
"权限复制 权限同项目分配客服(wxhr:tsettledomain_assign_customerservice)"
)
@GetMapping
(
"/copy"
)
@GetMapping
(
"/copy"
)
@PreAuthorize
(
"@pms.hasPermission('wxhr:
tsettledomain_assign_customerservice')"
)
//@PreAuthorize("@pms.hasPermission('
tsettledomain_assign_customerservice')")
public
R
<
String
>
insertForCopyCutsomerDataPermisson
(
String
[]
srcUser
,
String
[]
beUser
)
{
public
R
<
String
>
insertForCopyCutsomerDataPermisson
(
String
[]
srcUser
,
String
[]
beUser
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
YifuUser
user
=
SecurityUtils
.
getUser
();
R
result
=
tCutsomerDataPermissonService
.
insertForCopyCutsomerDataPermisson
(
srcUser
,
beUser
,
user
);
R
result
=
tCutsomerDataPermissonService
.
insertForCopyCutsomerDataPermisson
(
srcUser
,
beUser
,
user
);
...
@@ -112,7 +112,7 @@ public class TCutsomerDataPermissonController {
...
@@ -112,7 +112,7 @@ public class TCutsomerDataPermissonController {
@Operation
(
description
=
"新增"
)
@Operation
(
description
=
"新增"
)
@SysLog
(
"新增客户数据权限表"
)
@SysLog
(
"新增客户数据权限表"
)
@PostMapping
@PostMapping
@PreAuthorize
(
"@pms.hasPermission('wxhr:
tcutsomerdatapermisson_add')"
)
//@PreAuthorize("@pms.hasPermission('
tcutsomerdatapermisson_add')")
public
R
<
Boolean
>
save
(
@RequestBody
TCutsomerDataPermisson
tCutsomerDataPermisson
){
public
R
<
Boolean
>
save
(
@RequestBody
TCutsomerDataPermisson
tCutsomerDataPermisson
){
YifuUser
user
=
SecurityUtils
.
getUser
();
YifuUser
user
=
SecurityUtils
.
getUser
();
settleDomainService
.
removeSettleCache
(
user
,
Arrays
.
asList
(
tCutsomerDataPermisson
.
getUserId
()));
settleDomainService
.
removeSettleCache
(
user
,
Arrays
.
asList
(
tCutsomerDataPermisson
.
getUserId
()));
...
@@ -127,7 +127,7 @@ public class TCutsomerDataPermissonController {
...
@@ -127,7 +127,7 @@ public class TCutsomerDataPermissonController {
@Operation
(
description
=
"修改"
)
@Operation
(
description
=
"修改"
)
@SysLog
(
"修改客户数据权限表"
)
@SysLog
(
"修改客户数据权限表"
)
@PutMapping
@PutMapping
@PreAuthorize
(
"@pms.hasPermission('wxhr:
tcutsomerdatapermisson_edit')"
)
//@PreAuthorize("@pms.hasPermission('
tcutsomerdatapermisson_edit')")
public
R
<
Boolean
>
update
(
@RequestBody
TCutsomerDataPermisson
tCutsomerDataPermisson
)
{
public
R
<
Boolean
>
update
(
@RequestBody
TCutsomerDataPermisson
tCutsomerDataPermisson
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
YifuUser
user
=
SecurityUtils
.
getUser
();
settleDomainService
.
removeSettleCache
(
user
,
Arrays
.
asList
(
tCutsomerDataPermisson
.
getUserId
()));
settleDomainService
.
removeSettleCache
(
user
,
Arrays
.
asList
(
tCutsomerDataPermisson
.
getUserId
()));
...
@@ -139,10 +139,10 @@ public class TCutsomerDataPermissonController {
...
@@ -139,10 +139,10 @@ public class TCutsomerDataPermissonController {
* @param id
* @param id
* @return R
* @return R
*/
*/
@Operation
(
description
=
"删除(
wxhr:
tcutsomerdatapermisson_del)"
)
@Operation
(
description
=
"删除(tcutsomerdatapermisson_del)"
)
@SysLog
(
"删除客户数据权限表"
)
@SysLog
(
"删除客户数据权限表"
)
@DeleteMapping
(
"/{id}"
)
@DeleteMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('wxhr:
tcutsomerdatapermisson_del')"
)
//@PreAuthorize("@pms.hasPermission('
tcutsomerdatapermisson_del')")
public
R
<
Boolean
>
removeById
(
@PathVariable
String
id
){
public
R
<
Boolean
>
removeById
(
@PathVariable
String
id
){
YifuUser
user
=
SecurityUtils
.
getUser
();
YifuUser
user
=
SecurityUtils
.
getUser
();
TCutsomerDataPermisson
tdp
=
tCutsomerDataPermissonService
.
getById
(
id
);
TCutsomerDataPermisson
tdp
=
tCutsomerDataPermissonService
.
getById
(
id
);
...
...
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