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
zhuyifan
2025-03-05 12:55:42 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0f9b0d051e66d89aa6bdbab38b11d30d822a2fb4
0f9b0d05
1 parent
d2c43a4e
feat(customer): 添加通过 hisCustomerNo 查询客户信息接口
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
0 deletions
src/main/java/com/infoloop/tianting/controller/ClientCustomerController.java
src/main/java/com/infoloop/tianting/service/ClientCustomerService.java
src/main/java/com/infoloop/tianting/service/impl/ClientCustomerServiceImpl.java
src/main/java/com/infoloop/tianting/controller/ClientCustomerController.java
View file @
0f9b0d0
...
...
@@ -37,6 +37,13 @@ public class ClientCustomerController {
return
clientCustomerService
.
getClientCustomerByHISCustomerId
(
hisCustomerId
);
}
@ApiOperation
(
value
=
"根据hisCustomerNo获取ClientCustomer"
)
@GetMapping
(
"/his/customer/{hisCustomerNo}"
)
@ResponseStatus
(
HttpStatus
.
OK
)
public
ClientCustomerDto
getClientCustomerByHISCustomerNo
(
@PathVariable
String
hisCustomerNo
)
{
return
clientCustomerService
.
getClientCustomerByHISCustomerNo
(
hisCustomerNo
);
}
@ApiOperation
(
value
=
"根据customerId获取ClientCustomer"
)
@GetMapping
(
"/customers/{customerId}"
)
@ResponseStatus
(
HttpStatus
.
OK
)
...
...
src/main/java/com/infoloop/tianting/service/ClientCustomerService.java
View file @
0f9b0d0
...
...
@@ -8,6 +8,7 @@ import com.infoloop.tianting.model.dto.ClientLabelDTO.BatchCreateCustomerLabelRe
import
com.infoloop.tianting.model.dto.ClientLabelDTO.BatchDeleteCustomerLabelRefRequestDto
;
import
com.infoloop.tianting.model.dto.ClientLabelDTO.BatchDeleteCustomerLabelRefResponseDto
;
import
com.infoloop.tianting.model.dto.ClientLabelDTO.CustomerLabelRefDetailDto
;
import
java.util.List
;
public
interface
ClientCustomerService
{
...
...
@@ -34,4 +35,5 @@ public interface ClientCustomerService {
TodayOrderDto
getTodayOrderStatisticForHis
(
String
token
);
ClientCustomerDto
getClientCustomerByHISCustomerNo
(
String
hisCustomerNo
);
}
...
...
src/main/java/com/infoloop/tianting/service/impl/ClientCustomerServiceImpl.java
View file @
0f9b0d0
...
...
@@ -547,4 +547,32 @@ public class ClientCustomerServiceImpl implements ClientCustomerService {
.
build
();
}
@Override
public
ClientCustomerDto
getClientCustomerByHISCustomerNo
(
String
hisCustomerNo
)
{
var
response
=
clientCustomerServiceRpcClient
.
getClientCustomerByHISCustomerNo
(
hisCustomerNo
).
getResponse
();
return
ClientCustomerDto
.
builder
()
.
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