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
78285fac
Commit
78285fac
authored
Dec 08, 2022
by
李灿灿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:保单号对应起止保时间接口调试
parent
f9980150
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
InsurancePolicyListEditParam.java
...s/v1/yifu/insurances/vo/InsurancePolicyListEditParam.java
+4
-5
TInsurancePolicyController.java
...ifu/insurances/controller/TInsurancePolicyController.java
+2
-1
TInsurancePolicyServiceImpl.java
...s/service/insurance/impl/TInsurancePolicyServiceImpl.java
+2
-2
No files found.
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/vo/InsurancePolicyListEditParam.java
View file @
78285fac
...
...
@@ -3,7 +3,6 @@ package com.yifu.cloud.plus.v1.yifu.insurances.vo;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
org.checkerframework.common.value.qual.IntVal
;
import
org.checkerframework.common.value.qual.StringVal
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
...
...
@@ -37,15 +36,15 @@ public class InsurancePolicyListEditParam implements Serializable {
* 保单开始时间
*/
@Schema
(
description
=
"保单开始时间"
)
@Not
Blank
(
message
=
"保单开始时间不能为空"
)
private
String
policyStart
;
@Not
Null
(
message
=
"保单开始时间不能为空"
)
private
LocalDate
policyStart
;
/**
* 保单结束时间
*/
@Schema
(
description
=
"保单结束时间"
)
@Not
Blank
(
message
=
"保单结束时间不能为空"
)
private
String
policyEnd
;
@Not
Null
(
message
=
"保单结束时间不能为空"
)
private
LocalDate
policyEnd
;
/**
* 保险公司名称
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/controller/TInsurancePolicyController.java
View file @
78285fac
...
...
@@ -16,6 +16,7 @@ import org.springframework.http.HttpHeaders;
import
org.springframework.web.bind.annotation.*
;
import
javax.annotation.Resource
;
import
javax.validation.Valid
;
import
java.util.List
;
/**
...
...
@@ -81,7 +82,7 @@ public class TInsurancePolicyController {
*/
@Operation
(
summary
=
"修改保单号对应起止保时间"
,
description
=
"修改保单号对应起止保时间)"
)
@PostMapping
(
"/update"
)
public
R
update
(
@RequestBody
InsurancePolicyListEditParam
param
)
{
public
R
update
(
@RequestBody
@Valid
InsurancePolicyListEditParam
param
)
{
return
tInsurancePolicyService
.
updateInsurancePolicy
(
param
);
}
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TInsurancePolicyServiceImpl.java
View file @
78285fac
...
...
@@ -128,10 +128,10 @@ public class TInsurancePolicyServiceImpl extends ServiceImpl<TInsurancePolicyMap
if
(!
Optional
.
ofNullable
(
tInsurancePolicy
).
isPresent
()){
return
R
.
failed
(
"数据不存在"
);
}
BeanCopyUtils
.
copyProperties
(
param
,
tInsurancePolicy
);
updateById
(
tInsurancePolicy
);
//操作日志
tBusinessOperateService
.
saveModificationRecord
(
param
.
getId
(),
tInsurancePolicy
,
param
,
null
);
BeanCopyUtils
.
copyProperties
(
param
,
tInsurancePolicy
);
updateById
(
tInsurancePolicy
);
return
R
.
ok
();
}
...
...
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