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
c80ed88a
Commit
c80ed88a
authored
Dec 12, 2022
by
李灿灿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:加权限标识
parent
a9a79e93
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
TInsuranceDetailController.java
...ifu/insurances/controller/TInsuranceDetailController.java
+3
-3
TInsurancePolicyController.java
...ifu/insurances/controller/TInsurancePolicyController.java
+5
-0
No files found.
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/controller/TInsuranceDetailController.java
View file @
c80ed88a
...
...
@@ -307,7 +307,7 @@ public class TInsuranceDetailController {
*/
@Operation
(
summary
=
"登记发票号"
,
description
=
"登记发票号"
)
@PostMapping
(
"/registeredInvoiceNo"
)
//
@PreAuthorize("@pms.hasPermission('handle_insure_invoice')")
@PreAuthorize
(
"@pms.hasPermission('handle_insure_invoice')"
)
public
R
<
List
<
InsuranceRegisterInvoiceNoParam
>>
registeredInvoiceNo
(
@RequestBody
@Valid
@Size
(
min
=
1
,
message
=
"集合不能为空"
)
List
<
InsuranceRegisterInvoiceNoParam
>
paramList
){
return
tInsuranceDetailService
.
registeredInvoiceNo
(
paramList
);
}
...
...
@@ -321,7 +321,7 @@ public class TInsuranceDetailController {
*/
@Operation
(
summary
=
"已投保信息修改"
,
description
=
"已投保信息修改"
)
@PostMapping
(
"/updateInsuranceInsured"
)
//
@PreAuthorize("@pms.hasPermission('handle_insured')")
@PreAuthorize
(
"@pms.hasPermission('handle_insured')"
)
public
R
<
List
<
InsuranceInsuredParam
>>
updateInsuranceInsured
(
@RequestBody
@Valid
@Size
(
min
=
1
,
message
=
"集合不能为空"
)
List
<
InsuranceInsuredParam
>
paramList
){
return
tInsuranceDetailService
.
updateInsuranceInsured
(
paramList
);
}
...
...
@@ -335,7 +335,7 @@ public class TInsuranceDetailController {
*/
@PostMapping
(
"/updateInsuranceInsuredById"
)
@Operation
(
summary
=
"已投保信息修改"
,
description
=
"已投保信息修改"
)
//
@PreAuthorize("@pms.hasPermission('handle_insured_by_id')")
@PreAuthorize
(
"@pms.hasPermission('handle_insured_by_id')"
)
public
R
<
String
>
updateInsuranceInsuredById
(
@RequestBody
InsuranceInsuredDetailParam
param
)
{
return
tInsuranceDetailService
.
updateInsuranceInsuredById
(
param
);
}
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/controller/TInsurancePolicyController.java
View file @
c80ed88a
...
...
@@ -13,6 +13,7 @@ import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
import
javax.annotation.Resource
;
...
...
@@ -56,6 +57,7 @@ public class TInsurancePolicyController {
*/
@Operation
(
summary
=
"保单号对应起止保时间列表(不分页)"
,
description
=
"保单号对应起止保时间(不分页)"
)
@GetMapping
(
"/list"
)
@PreAuthorize
(
"@pms.hasPermission('insurancePolicy_list')"
)
public
R
<
List
<
TInsurancePolicy
>>
getInsurancePolicyList
(
InsurancePolicyListParam
param
)
{
return
R
.
ok
(
tInsurancePolicyService
.
getInsurancePolicyList
(
param
));
}
...
...
@@ -69,6 +71,7 @@ public class TInsurancePolicyController {
*/
@GetMapping
(
"/{id}"
)
@Operation
(
summary
=
"通过id查询详情"
,
description
=
"通过id查询详情"
)
@PreAuthorize
(
"@pms.hasPermission('insurancePolicy_getById')"
)
public
R
<
TInsurancePolicyDetailVO
>
getDetailById
(
@PathVariable
(
"id"
)
String
id
)
{
return
tInsurancePolicyService
.
getDetailById
(
id
);
}
...
...
@@ -82,6 +85,7 @@ public class TInsurancePolicyController {
*/
@Operation
(
summary
=
"修改保单号对应起止保时间"
,
description
=
"修改保单号对应起止保时间)"
)
@PostMapping
(
"/update"
)
@PreAuthorize
(
"@pms.hasPermission('insurancePolicy_update')"
)
public
R
update
(
@RequestBody
@Valid
InsurancePolicyListEditParam
param
)
{
return
tInsurancePolicyService
.
updateInsurancePolicy
(
param
);
}
...
...
@@ -95,6 +99,7 @@ public class TInsurancePolicyController {
*/
@Operation
(
summary
=
"删除保单号对应起止保时间"
,
description
=
"删除保单号对应起止保时间"
)
@DeleteMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('insurancePolicy_delete')"
)
public
R
deleteById
(
@PathVariable
(
"id"
)
String
id
)
{
return
tInsurancePolicyService
.
deleteInsurancePolicy
(
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