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
d0a306f8
Commit
d0a306f8
authored
Sep 28, 2025
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化-fxj
parent
244be27f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
9 deletions
+16
-9
TCheckBankNoServiceImpl.java
...d/plus/v1/check/service/impl/TCheckBankNoServiceImpl.java
+5
-4
TCheckBankNoMapper.xml
...heck-biz/src/main/resources/mapper/TCheckBankNoMapper.xml
+2
-1
TInsurancePolicyServiceImpl.java
...s/service/insurance/impl/TInsurancePolicyServiceImpl.java
+9
-4
No files found.
yifu-check/yifu-check-biz/src/main/java/com/yifu/cloud/plus/v1/check/service/impl/TCheckBankNoServiceImpl.java
View file @
d0a306f8
...
@@ -216,10 +216,10 @@ public class TCheckBankNoServiceImpl extends ServiceImpl<TCheckBankNoMapper, TCh
...
@@ -216,10 +216,10 @@ public class TCheckBankNoServiceImpl extends ServiceImpl<TCheckBankNoMapper, TCh
for
(
TCheckBankNo
check
:
list
)
{
for
(
TCheckBankNo
check
:
list
)
{
cur
=
noMap
.
get
(
check
.
getBankNo
());
cur
=
noMap
.
get
(
check
.
getBankNo
());
if
(
cur
!=
null
)
{
if
(
cur
!=
null
)
{
if
(
CommonConstants
.
ZERO_ONE
.
equals
(
cur
.
getResult
()))
{
if
(
CommonConstants
.
ZERO_ONE
.
equals
(
cur
.
getResult
())
&&
null
!=
cur
.
getIdNum
()
)
{
bankMap
.
put
(
cur
.
getBankNo
(),
cur
.
getName
().
equals
(
check
.
getName
(
)));
bankMap
.
put
(
cur
.
getBankNo
(),
(
cur
.
getName
().
equals
(
check
.
getName
())&&
cur
.
getIdNum
().
equals
(
check
.
getIdNum
()
)));
}
else
{
}
else
{
if
(
cur
.
getName
().
equals
(
check
.
getName
()))
{
if
(
cur
.
getName
().
equals
(
check
.
getName
())
&&
null
!=
cur
.
getIdNum
()
&&
cur
.
getIdNum
().
equals
(
check
.
getIdNum
())
)
{
bankMap
.
put
(
cur
.
getBankNo
(),
false
);
bankMap
.
put
(
cur
.
getBankNo
(),
false
);
}
else
{
}
else
{
noCurlist
.
add
(
check
);
noCurlist
.
add
(
check
);
...
@@ -435,6 +435,7 @@ public class TCheckBankNoServiceImpl extends ServiceImpl<TCheckBankNoMapper, TCh
...
@@ -435,6 +435,7 @@ public class TCheckBankNoServiceImpl extends ServiceImpl<TCheckBankNoMapper, TCh
newNo
=
new
TCheckBankNo
();
newNo
=
new
TCheckBankNo
();
newNo
.
setBankNo
(
no
.
getBankNo
());
newNo
.
setBankNo
(
no
.
getBankNo
());
newNo
.
setName
(
no
.
getName
());
newNo
.
setName
(
no
.
getName
());
newNo
.
setIdNum
(
no
.
getIdNum
());
newNo
.
setMessage
(
ChecksConstants
.
CHECK_CONFIG_ACCESS
);
newNo
.
setMessage
(
ChecksConstants
.
CHECK_CONFIG_ACCESS
);
newNo
.
setResult
(
"01"
);
newNo
.
setResult
(
"01"
);
newNo
.
setType
(
CommonConstants
.
ONE_STRING
);
newNo
.
setType
(
CommonConstants
.
ONE_STRING
);
...
@@ -458,7 +459,7 @@ public class TCheckBankNoServiceImpl extends ServiceImpl<TCheckBankNoMapper, TCh
...
@@ -458,7 +459,7 @@ public class TCheckBankNoServiceImpl extends ServiceImpl<TCheckBankNoMapper, TCh
public
Map
<
String
,
Boolean
>
call
()
{
public
Map
<
String
,
Boolean
>
call
()
{
for
(
TCheckBankNo
no
:
noList
)
{
for
(
TCheckBankNo
no
:
noList
)
{
// 1.调用银行卡信息校验api
// 1.调用银行卡信息校验api
R
<
TCheckBankNo
>
resR
=
ChecksUtil
.
checkBankNoT
woMethod
(
no
.
getName
(),
no
.
getBankNo
()
);
R
<
TCheckBankNo
>
resR
=
ChecksUtil
.
checkBankNoT
hree
(
no
.
getName
(),
no
.
getBankNo
(),
no
.
getIdNum
(),
true
);
if
(
Common
.
isNotNull
(
resR
)
&&
resR
.
getCode
()
==
CommonConstants
.
SUCCESS
if
(
Common
.
isNotNull
(
resR
)
&&
resR
.
getCode
()
==
CommonConstants
.
SUCCESS
&&
Common
.
isNotNull
(
resR
.
getData
()))
{
&&
Common
.
isNotNull
(
resR
.
getData
()))
{
TCheckBankNo
newNo
=
resR
.
getData
();
TCheckBankNo
newNo
=
resR
.
getData
();
...
...
yifu-check/yifu-check-biz/src/main/resources/mapper/TCheckBankNoMapper.xml
View file @
d0a306f8
...
@@ -48,7 +48,8 @@
...
@@ -48,7 +48,8 @@
a.id,
a.id,
a.bank_no,
a.bank_no,
a.name,
a.name,
a.result
a.result,
a.id_num
FROM t_check_bank_no a
FROM t_check_bank_no a
where a.bank_no in
where a.bank_no in
<foreach
item=
"item"
index=
"index"
collection=
"noList"
open=
"("
separator=
","
close=
")"
>
<foreach
item=
"item"
index=
"index"
collection=
"noList"
open=
"("
separator=
","
close=
")"
>
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TInsurancePolicyServiceImpl.java
View file @
d0a306f8
...
@@ -314,11 +314,16 @@ public class TInsurancePolicyServiceImpl extends ServiceImpl<TInsurancePolicyMap
...
@@ -314,11 +314,16 @@ public class TInsurancePolicyServiceImpl extends ServiceImpl<TInsurancePolicyMap
if
(
null
==
type
){
if
(
null
==
type
){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"保单号【"
+
excel
.
getPolicyNo
()
+
"】的险种名称未找到,未导入"
,
excel
));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"保单号【"
+
excel
.
getPolicyNo
()
+
"】的险种名称未找到,未导入"
,
excel
));
continue
;
continue
;
}
else
{
type
=
typeMapper
.
selectOne
(
Wrappers
.<
TInsuranceType
>
query
().
lambda
()
.
eq
(
TInsuranceType:
:
getName
,
excel
.
getInsuranceTypeName
())
.
eq
(
TInsuranceType:
:
getInsuranceCompanyId
,
company
.
getId
()).
last
(
CommonConstants
.
LAST_ONE_SQL
));
if
(
null
==
type
){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"保单号【"
+
excel
.
getPolicyNo
()
+
"】的险种与保险公司不一致,未导入"
,
excel
));
continue
;
}
}
}
if
(!
type
.
getInsuranceCompanyId
().
equals
(
company
.
getId
())){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"保单号【"
+
excel
.
getPolicyNo
()
+
"】的险种与保险公司不一致,未导入"
,
excel
));
continue
;
}
if
(
LocalDateUtil
.
parseLocalDate
(
excel
.
getPolicyStart
())
==
null
){
if
(
LocalDateUtil
.
parseLocalDate
(
excel
.
getPolicyStart
())
==
null
){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"保单号【"
+
excel
.
getPolicyNo
()
+
"】的保单开始时间格式错误,未导入"
,
excel
));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"保单号【"
+
excel
.
getPolicyNo
()
+
"】的保单开始时间格式错误,未导入"
,
excel
));
continue
;
continue
;
...
...
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