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
0dd8012b
Commit
0dd8012b
authored
Jul 29, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除客户查询权限
parent
d6d065a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
TCustomerInfoController.java
.../v1/yifu/archives/controller/TCustomerInfoController.java
+3
-5
TSettleDomainController.java
.../v1/yifu/archives/controller/TSettleDomainController.java
+3
-5
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TCustomerInfoController.java
View file @
0dd8012b
...
...
@@ -54,7 +54,6 @@ public class TCustomerInfoController {
*/
@Operation
(
summary
=
"分页查询"
,
description
=
"分页查询"
)
@GetMapping
(
"/page"
)
@PreAuthorize
(
"@pms.hasPermission('demo_tcustomerinfo_get')"
)
public
R
<
IPage
<
TCustomerInfo
>>
getTCustomerInfoPage
(
Page
<
TCustomerInfo
>
page
,
TCustomerInfo
tCustomerInfo
)
{
return
R
.
ok
(
tCustomerInfoService
.
page
(
page
,
Wrappers
.
query
(
tCustomerInfo
)));
}
...
...
@@ -68,7 +67,6 @@ public class TCustomerInfoController {
*/
@Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询"
)
@GetMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('demo_tcustomerinfo_get')"
)
public
R
<
TCustomerInfo
>
getById
(
@PathVariable
(
"id"
)
String
id
)
{
return
R
.
ok
(
tCustomerInfoService
.
getById
(
id
));
}
...
...
@@ -82,7 +80,7 @@ public class TCustomerInfoController {
@Operation
(
summary
=
"新增客户信息"
,
description
=
"新增客户信息"
)
@SysLog
(
"新增客户信息"
)
@PostMapping
@PreAuthorize
(
"@pms.hasPermission('
demo_
tcustomerinfo_add')"
)
@PreAuthorize
(
"@pms.hasPermission('tcustomerinfo_add')"
)
public
R
<
Boolean
>
save
(
@RequestBody
TCustomerInfo
tCustomerInfo
)
{
return
R
.
ok
(
tCustomerInfoService
.
save
(
tCustomerInfo
));
}
...
...
@@ -96,7 +94,7 @@ public class TCustomerInfoController {
@Operation
(
summary
=
"修改客户信息"
,
description
=
"修改客户信息"
)
@SysLog
(
"修改客户信息"
)
@PutMapping
@PreAuthorize
(
"@pms.hasPermission('
demo_
tcustomerinfo_edit')"
)
@PreAuthorize
(
"@pms.hasPermission('tcustomerinfo_edit')"
)
public
R
<
Boolean
>
updateById
(
@RequestBody
TCustomerInfo
tCustomerInfo
)
{
return
R
.
ok
(
tCustomerInfoService
.
updateById
(
tCustomerInfo
));
}
...
...
@@ -110,7 +108,7 @@ public class TCustomerInfoController {
@Operation
(
summary
=
"通过id删除客户信息"
,
description
=
"通过id删除客户信息"
)
@SysLog
(
"通过id删除客户信息"
)
@DeleteMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('
demo_
tcustomerinfo_del')"
)
@PreAuthorize
(
"@pms.hasPermission('tcustomerinfo_del')"
)
public
R
<
Boolean
>
removeById
(
@PathVariable
String
id
)
{
return
R
.
ok
(
tCustomerInfoService
.
removeById
(
id
));
}
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TSettleDomainController.java
View file @
0dd8012b
...
...
@@ -60,7 +60,6 @@ public class TSettleDomainController {
*/
@Operation
(
summary
=
"分页查询"
,
description
=
"分页查询"
)
@GetMapping
(
"/page"
)
@PreAuthorize
(
"@pms.hasPermission('demo_tsettledomain_get')"
)
public
R
<
IPage
<
TSettleDomain
>>
getTSettleDomainPage
(
Page
<
TSettleDomain
>
page
,
TSettleDomain
tSettleDomain
)
{
return
R
.
ok
(
tSettleDomainService
.
page
(
page
,
Wrappers
.
query
(
tSettleDomain
)));
}
...
...
@@ -74,7 +73,6 @@ public class TSettleDomainController {
*/
@Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询"
)
@GetMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('demo_tsettledomain_get')"
)
public
R
<
TSettleDomain
>
getById
(
@PathVariable
(
"id"
)
String
id
)
{
return
R
.
ok
(
tSettleDomainService
.
getById
(
id
));
}
...
...
@@ -88,7 +86,7 @@ public class TSettleDomainController {
@Operation
(
summary
=
"新增项目表"
,
description
=
"新增项目表"
)
@SysLog
(
"新增项目表"
)
@PostMapping
@PreAuthorize
(
"@pms.hasPermission('
demo_
tsettledomain_add')"
)
@PreAuthorize
(
"@pms.hasPermission('tsettledomain_add')"
)
public
R
<
Boolean
>
save
(
@RequestBody
TSettleDomain
tSettleDomain
)
{
return
R
.
ok
(
tSettleDomainService
.
save
(
tSettleDomain
));
}
...
...
@@ -102,7 +100,7 @@ public class TSettleDomainController {
@Operation
(
summary
=
"修改项目表"
,
description
=
"修改项目表"
)
@SysLog
(
"修改项目表"
)
@PutMapping
@PreAuthorize
(
"@pms.hasPermission('
demo_
tsettledomain_edit')"
)
@PreAuthorize
(
"@pms.hasPermission('tsettledomain_edit')"
)
public
R
<
Boolean
>
updateById
(
@RequestBody
TSettleDomain
tSettleDomain
)
{
return
R
.
ok
(
tSettleDomainService
.
updateById
(
tSettleDomain
));
}
...
...
@@ -116,7 +114,7 @@ public class TSettleDomainController {
@Operation
(
summary
=
"通过id删除项目表"
,
description
=
"通过id删除项目表"
)
@SysLog
(
"通过id删除项目表"
)
@DeleteMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('
demo_
tsettledomain_del')"
)
@PreAuthorize
(
"@pms.hasPermission('tsettledomain_del')"
)
public
R
<
Boolean
>
removeById
(
@PathVariable
String
id
)
{
return
R
.
ok
(
tSettleDomainService
.
removeById
(
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