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
6a53319b
Commit
6a53319b
authored
Dec 14, 2022
by
李灿灿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:登记保单保费、登记发票号、修改已投保信息 重复数据报错修复
parent
03bd33df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
21 deletions
+14
-21
daprConfig.properties
...yifu-common-dapr/src/main/resources/daprConfig.properties
+7
-16
TInsuranceDetailServiceImpl.java
...s/service/insurance/impl/TInsuranceDetailServiceImpl.java
+7
-5
No files found.
yifu-common/yifu-common-dapr/src/main/resources/daprConfig.properties
View file @
6a53319b
#\u6D4B\u8BD5\u73AF\u5883-\u7BA1\u7406\u540E\u53F0
dapr.upms.appUrl
=
http://yifu-upms.qas-mvp.svc.cluster.local:3500/v1.0/invoke/
dapr.upms.appUrl
=
http://localhost:3500/v1.0/invoke/
dapr.upms.appId
=
yifu-upms
#\u6D4B\u8BD5\u73AF\u5883-\u6821\u9A8C\u670D\u52A1
dapr.check.appUrl
=
http://yifu-check.qas-mvp.svc.cluster.local:3500/v1.0/invoke/
#\u672C\u5730
#dapr.check.appUrl=http://localhost:3502/v1.0/invoke/
#dapr.check.appUrl=http://yifu-check.qas-mvp.svc.cluster.local:3500/v1.0/invoke/
dapr.check.appUrl
=
http://localhost:3507/v1.0/invoke/
dapr.check.appId
=
yifu-check
#\u6D4B\u8BD5\u73AF\u5883-\u6863\u6848\u670D\u52A1
dapr.archives.appUrl
=
http://yifu-archives.qas-mvp.svc.cluster.local:3500/v1.0/invoke/
dapr.archives.appId
=
yifu-archives
dapr.
insurances.appUrl
=
http://yifu-auth.qas-mvp.svc.cluster.local:3500
/v1.0/invoke/
dapr.
insurances.appId
=
yifu-insuranc
es
dapr.
archives.appUrl
=
http://localhost:3508
/v1.0/invoke/
dapr.
archives.appId
=
yifu-archiv
es
#\u6D4B\u8BD5\u73AF\u5883-\u85AA\u8D44\u670D\u52A1
dapr.salary.appUrl
=
http://yifu-salary.qas-mvp.svc.cluster.local:3500/v1.0/invoke/
dapr.salary.appId
=
yifu-salary
#\u6D4B\u8BD5\u73AF\u5883-\u793E\u4FDD\u670D\u52A1
dapr.social.appUrl
=
http://yifu-social.qas-mvp.svc.cluster.local:3500/v1.0/invoke/
dapr.social.appUrl
=
http://localhost:3510/v1.0/invoke/
dapr.social.appId
=
yifu-social
\ No newline at end of file
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TInsuranceDetailServiceImpl.java
View file @
6a53319b
...
...
@@ -3573,7 +3573,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
}
param
.
setErrorMessage
(
CommonConstants
.
RESULT_DATA_SUCESS
);
}
return
paramList
;
return
paramList
.
stream
().
distinct
().
collect
(
Collectors
.
toList
())
;
}
/**
...
...
@@ -3584,7 +3584,8 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
* @return {@link List<InsuranceRegisterInvoiceNoParam>}
*/
private
List
<
InsuranceRegisterInvoiceNoParam
>
registeredInvoiceNoCheck
(
List
<
InsuranceRegisterInvoiceNoParam
>
paramList
){
for
(
InsuranceRegisterInvoiceNoParam
param
:
paramList
.
stream
().
distinct
().
collect
(
Collectors
.
toList
()))
{
List
<
InsuranceRegisterInvoiceNoParam
>
collect
=
paramList
.
stream
().
distinct
().
collect
(
Collectors
.
toList
());
for
(
InsuranceRegisterInvoiceNoParam
param
:
collect
)
{
// 必填校验
if
(
StringUtils
.
isBlank
(
param
.
getEmpName
())){
param
.
setErrorMessage
(
InsurancesConstants
.
EMP_NAME_NOT_EMPTY
);
...
...
@@ -3654,7 +3655,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
}
param
.
setErrorMessage
(
CommonConstants
.
RESULT_DATA_SUCESS
);
}
return
paramLis
t
;
return
collec
t
;
}
public
static
final
List
<
String
>
BUY_TYPE
=
Arrays
.
asList
(
InsurancesConstants
.
INSERT
,
InsurancesConstants
.
BATCH_INSERT
);
...
...
@@ -3667,7 +3668,8 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
* @return {@link List<InsuranceInsuredParam>}
*/
private
List
<
InsuranceInsuredParam
>
updateInsuranceInsuredCheck
(
List
<
InsuranceInsuredParam
>
paramList
){
for
(
InsuranceInsuredParam
param
:
paramList
.
stream
().
distinct
().
collect
(
Collectors
.
toList
()))
{
List
<
InsuranceInsuredParam
>
collect
=
paramList
.
stream
().
distinct
().
collect
(
Collectors
.
toList
());
for
(
InsuranceInsuredParam
param
:
collect
)
{
// 必填校验
if
(
StringUtils
.
isBlank
(
param
.
getEmpName
())){
param
.
setErrorMessage
(
InsurancesConstants
.
EMP_NAME_NOT_EMPTY
);
...
...
@@ -3779,7 +3781,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
}
param
.
setErrorMessage
(
CommonConstants
.
RESULT_DATA_SUCESS
);
}
return
paramLis
t
;
return
collec
t
;
}
/**
...
...
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