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
997c0e70
Commit
997c0e70
authored
Aug 01, 2022
by
李灿灿
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-licancan' into 'develop'
EKP2INSURANCES 更新结算状态 See merge request fangxinjiang/yifu!75
parents
ff3dee66
4c4a7867
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
143 additions
and
0 deletions
+143
-0
InsurancesConstants.java
...lus/v1/yifu/insurances/constants/InsurancesConstants.java
+8
-0
UpdateInsuranceSettleParam.java
...lus/v1/yifu/insurances/vo/UpdateInsuranceSettleParam.java
+68
-0
TInsuranceDetailController.java
...ifu/insurances/controller/TInsuranceDetailController.java
+14
-0
TInsuranceDetailService.java
...s/v1/yifu/insurances/service/TInsuranceDetailService.java
+10
-0
TInsuranceDetailServiceImpl.java
.../insurances/service/impl/TInsuranceDetailServiceImpl.java
+43
-0
No files found.
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/constants/InsurancesConstants.java
View file @
997c0e70
...
...
@@ -76,6 +76,14 @@ public class InsurancesConstants {
* 投保信息不存在
*/
public
static
final
String
DATA_IS_NOT_EXIST
=
"投保信息不存在"
;
/**
* 结算信息不存在
*/
public
static
final
String
SETTLE_DATA_IS_NOT_EXIST
=
"结算信息不存在"
;
/**
* 推送信息不存在
*/
public
static
final
String
PUSH_DATA_IS_NOT_EXIST
=
"推送信息不存在"
;
/**
* 被替换员工投保记录不存在
*/
...
...
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/vo/UpdateInsuranceSettleParam.java
0 → 100644
View file @
997c0e70
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
insurances
.
vo
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
import
java.time.LocalDateTime
;
import
java.util.List
;
/**
* @author licancan
* @description EKP2INSURANCES 更新结算请求参数
* @date 2022-08-01 09:50:33
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema
(
description
=
"EKP2INSURANCES 更新结算请求参数"
)
public
class
UpdateInsuranceSettleParam
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1459385763943903153L
;
/**
* 结算信息
*/
@Schema
(
description
=
"结算信息"
)
private
List
<
SettleData
>
settleData
;
/**
* 推送信息
*/
@Schema
(
description
=
"推送信息"
)
private
PushData
pushData
;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public
static
class
SettleData
implements
Serializable
{
private
static
final
long
serialVersionUID
=
4572786452410956413L
;
/**
* 结算单号(唯一标识) 生成规则:商险明细id + "_" + 结算id
*/
@Schema
(
description
=
"结算单号(唯一标识)"
)
private
String
sn
;
/**
* 结算状态
*/
@Schema
(
description
=
"结算状态"
)
private
String
settleStatus
;
}
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public
static
class
PushData
implements
Serializable
{
private
static
final
long
serialVersionUID
=
4572786452410956413L
;
/**
* 推送时间
*/
@Schema
(
description
=
"推送时间"
)
private
LocalDateTime
pushTime
;
}
}
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/controller/TInsuranceDetailController.java
View file @
997c0e70
...
...
@@ -35,6 +35,20 @@ public class TInsuranceDetailController {
private
TInsuranceDetailService
tInsuranceDetailService
;
/***********************商险办理********************************/
/**
* EKP2INSURANCES 更新结算状态
*
* @author licancan
* @param param
* @return {@link R<String>}
*/
@Operation
(
summary
=
"更新结算状态"
,
description
=
"更新结算状态"
)
@PostMapping
(
"/updateInsuranceSettle"
)
public
R
<
String
>
updateInsuranceSettle
(
@RequestBody
UpdateInsuranceSettleParam
param
)
{
return
tInsuranceDetailService
.
updateInsuranceSettle
(
param
);
}
/**
* 投保办理分页查询
*
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/TInsuranceDetailService.java
View file @
997c0e70
...
...
@@ -18,6 +18,16 @@ import java.util.List;
public
interface
TInsuranceDetailService
extends
IService
<
TInsuranceDetail
>
{
/***********************商险办理********************************/
/**
* EKP2INSURANCES 更新结算状态
*
* @author licancan
* @param param
* @return {@link R<String>}
*/
R
<
String
>
updateInsuranceSettle
(
UpdateInsuranceSettleParam
param
);
/**
* 投保办理分页查询
*
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/impl/TInsuranceDetailServiceImpl.java
View file @
997c0e70
...
...
@@ -79,6 +79,49 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
/***********************商险办理********************************/
/**
* EKP2INSURANCES 更新结算状态
*
* @param param
* @return {@link R<String>}
* @author licancan
*/
@Override
public
R
<
String
>
updateInsuranceSettle
(
UpdateInsuranceSettleParam
param
)
{
if
(!
Optional
.
ofNullable
(
param
).
isPresent
()){
return
R
.
failed
(
CommonConstants
.
PARAM_IS_NOT_EMPTY
);
}
if
(
CollectionUtils
.
isEmpty
(
param
.
getSettleData
())){
return
R
.
failed
(
InsurancesConstants
.
SETTLE_DATA_IS_NOT_EXIST
);
}
if
(!
Optional
.
ofNullable
(
param
.
getPushData
()).
isPresent
()){
return
R
.
failed
(
InsurancesConstants
.
PUSH_DATA_IS_NOT_EXIST
);
}
try
{
LocalDateTime
pushTime
=
param
.
getPushData
().
getPushTime
();
List
<
UpdateInsuranceSettleParam
.
SettleData
>
settleData
=
param
.
getSettleData
();
List
<
TInsuranceSettle
>
list
=
new
ArrayList
<>();
for
(
UpdateInsuranceSettleParam
.
SettleData
settleDatum
:
settleData
)
{
TInsuranceSettle
settle
=
new
TInsuranceSettle
();
String
settleId
=
settleDatum
.
getSn
().
split
(
"_"
)[
1
];
settle
.
setId
(
settleId
);
settle
.
setUpdateTime
(
pushTime
);
settle
.
setSettleHandleStatus
(
settleDatum
.
getSettleStatus
());
if
(
CommonConstants
.
THREE_STRING
.
equals
(
settleDatum
.
getSettleStatus
())){
settle
.
setSettleDoneTime
(
pushTime
);
}
list
.
add
(
settle
);
}
if
(
CollectionUtils
.
isNotEmpty
(
list
)){
tInsuranceSettleService
.
saveOrUpdateBatch
(
list
);
}
}
catch
(
Exception
e
){
e
.
printStackTrace
();
return
R
.
failed
();
}
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