Toggle navigation
Toggle navigation
This project
Loading...
Sign in
jiujian
/
client-customer-order-api
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wangyingyang
2024-11-14 12:35:28 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0e6fb43b18ee641b2be714095286460d842e6d46
0e6fb43b
1 parent
a45f9cf3
fix contract no user
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
22 deletions
src/main/java/com/infoloop/tianting/service/impl/ClientCustomerServiceImpl.java
src/main/java/com/infoloop/tianting/service/impl/ClientCustomerServiceImpl.java
View file @
0e6fb43
...
...
@@ -27,29 +27,32 @@ public class ClientCustomerServiceImpl implements ClientCustomerService {
@Override
public
ClientCustomerDto
getClientCustomerByHISCustomerId
(
String
hisCustomerId
)
{
final
var
response
=
clientCustomerServiceRpcClient
.
getClientCustomerByHISCustomerId
(
hisCustomerId
);
var
response
=
clientCustomerServiceRpcClient
.
getClientCustomerByHISCustomerId
(
hisCustomerId
).
getResponse
();
if
(
response
.
getId
()
==
0
)
{
response
=
clientCustomerServiceRpcClient
.
getClientCustomerByContactNo
(
hisCustomerId
).
getResponse
();
}
return
ClientCustomerDto
.
builder
()
.
id
(
response
.
get
Response
().
get
Id
())
.
clientId
(
response
.
get
Response
().
get
ClientId
())
.
enterpriseId
(
response
.
get
Response
().
get
EnterpriseId
())
.
age
(
response
.
get
Response
().
get
Age
())
.
height
(
response
.
get
Response
().
get
Height
())
.
HISCustomerId
(
response
.
get
Response
().
get
HISCustomerId
())
.
identityCardNo
(
response
.
get
Response
().
get
IdentityCardNo
())
.
mobile
(
response
.
get
Response
().
get
Mobile
())
.
name
(
response
.
get
Response
().
get
Name
())
.
openId
(
response
.
get
Response
().
get
OpenId
())
.
sex
(
response
.
get
Response
().
get
Sex
())
.
stallId
(
response
.
get
Response
().
get
StallId
())
.
weight
(
response
.
get
Response
().
get
Weight
())
.
isDeleted
(
response
.
get
Response
().
get
IsDeleted
())
.
birthday
(
DateUtil
.
formatDate
(
response
.
get
Response
().
get
Birthday
()))
.
createdAt
(
DateUtil
.
formatDate
(
response
.
get
Response
().
get
CreatedAt
()))
.
createdBy
(
response
.
get
Response
().
get
CreatedBy
())
.
creationSource
(
response
.
get
Response
().
get
CreationSource
())
.
updatedAt
(
DateUtil
.
formatDate
(
response
.
get
Response
().
get
UpdatedAt
()))
.
updateSource
(
response
.
get
Response
().
get
UpdateSource
())
.
updatedBy
(
response
.
get
Response
().
get
UpdatedBy
())
.
id
(
response
.
getId
())
.
clientId
(
response
.
getClientId
())
.
enterpriseId
(
response
.
getEnterpriseId
())
.
age
(
response
.
getAge
())
.
height
(
response
.
getHeight
())
.
HISCustomerId
(
response
.
getHISCustomerId
())
.
identityCardNo
(
response
.
getIdentityCardNo
())
.
mobile
(
response
.
getMobile
())
.
name
(
response
.
getName
())
.
openId
(
response
.
getOpenId
())
.
sex
(
response
.
getSex
())
.
stallId
(
response
.
getStallId
())
.
weight
(
response
.
getWeight
())
.
isDeleted
(
response
.
getIsDeleted
())
.
birthday
(
DateUtil
.
formatDate
(
response
.
getBirthday
()))
.
createdAt
(
DateUtil
.
formatDate
(
response
.
getCreatedAt
()))
.
createdBy
(
response
.
getCreatedBy
())
.
creationSource
(
response
.
getCreationSource
())
.
updatedAt
(
DateUtil
.
formatDate
(
response
.
getUpdatedAt
()))
.
updateSource
(
response
.
getUpdateSource
())
.
updatedBy
(
response
.
getUpdatedBy
())
.
build
();
}
...
...
Please
register
or
login
to post a comment