Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fit-finance
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fitness-server
fit-finance
Commits
8e2bfce7
You need to sign in or sign up before continuing.
Commit
8e2bfce7
authored
Jul 24, 2024
by
程裕兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:东莞市&中山市
parent
7c858ea1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
service/src/main/java/com/jiejing/fitness/finance/service/rpc/MerchantRpcService.java
+11
-4
No files found.
service/src/main/java/com/jiejing/fitness/finance/service/rpc/MerchantRpcService.java
View file @
8e2bfce7
...
...
@@ -3,6 +3,7 @@ package com.jiejing.fitness.finance.service.rpc;
import
com.baomidou.mybatisplus.core.toolkit.IdWorker
;
import
com.google.common.collect.Maps
;
import
com.jiejing.common.model.JsonResult
;
import
com.jiejing.common.utils.text.StringUtil
;
import
com.jiejing.paycenter.api.merchant.MerchantApi
;
import
com.jiejing.paycenter.api.merchant.MerchantQueryApi
;
import
com.jiejing.paycenter.api.merchant.request.ApplyMerchantRequest
;
...
...
@@ -59,10 +60,10 @@ public class MerchantRpcService {
private
void
resetAddress
(
ApplyMerchantRequest
request
)
{
// 重新映射下地址信息:系统行政区划存在错误,需要订正
this
.
resetAddress
(
request
.
getLegal
().
getLegalAddress
());
this
.
resetAddress
(
request
.
getBankCard
().
getCardAddress
());
this
.
resetAddress
(
request
.
getLicense
().
getLicenseAddress
());
this
.
resetAddress
(
request
.
getBusiness
().
getBusinessAddress
());
this
.
resetAddress
(
null
==
request
.
getLegal
()
?
null
:
request
.
getLegal
().
getLegalAddress
());
this
.
resetAddress
(
null
==
request
.
getBankCard
()
?
null
:
request
.
getBankCard
().
getCardAddress
());
this
.
resetAddress
(
null
==
request
.
getLicense
()
?
null
:
request
.
getLicense
().
getLicenseAddress
());
this
.
resetAddress
(
null
==
request
.
getBusiness
()
?
null
:
request
.
getBusiness
().
getBusinessAddress
());
}
private
static
final
Map
<
String
,
String
>
DISTRICT_CODE_MAP
=
Maps
.
newHashMap
();
...
...
@@ -74,6 +75,12 @@ public class MerchantRpcService {
}
private
void
resetAddress
(
Address
address
)
{
if
(
null
==
address
)
{
return
;
}
if
(
StringUtil
.
isBlank
(
address
.
getDistrict
()))
{
return
;
}
address
.
setDistrict
(
DISTRICT_CODE_MAP
.
getOrDefault
(
address
.
getDistrict
(),
address
.
getDistrict
()));
}
...
...
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