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
2025-01-08 14:40:30 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d5aaf13ef001b2f1bd8da5d43cb1f288d29d7248
d5aaf13e
1 parent
426eb538
fix
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
src/main/java/com/infoloop/tianting/service/impl/ClientCustomerServiceImpl.java
src/main/java/com/infoloop/tianting/service/impl/ClientCustomerServiceImpl.java
View file @
d5aaf13
...
...
@@ -440,13 +440,6 @@ public class ClientCustomerServiceImpl implements ClientCustomerService {
notOrderedHisCustomers
=
currentCustomers
.
stream
().
filter
(
c
->
!
mappingHisCustomerIds
.
contains
(
c
.
getId
())).
collect
(
Collectors
.
toList
());
if
(
customerIds
.
isEmpty
())
{
return
TodayOrderDto
.
builder
()
.
totalCurrentCustomerCount
(
0
)
.
notOrderCustomers
(
new
ArrayList
<>())
.
build
();
}
final
var
operatorLoginInfo
=
LoginContextHolder
.
getLoginInfo
();
LocalDate
today
=
LocalDate
.
now
();
LocalDateTime
todayZero
=
today
.
atStartOfDay
();
...
...
@@ -461,7 +454,11 @@ public class ClientCustomerServiceImpl implements ClientCustomerService {
.
shouldFilterMealTimeEnd
(
true
)
.
mealTimeEnd
(
tomorrowZero
)
.
build
();
final
var
orderedResponseList
=
orderServiceRpcClient
.
getOrdersByCondition
(
queryOrderDto
);
List
<
SingleClientCustomerOrderRpcResponse
>
orderedResponseList
=
new
ArrayList
<>();
if
(!
customerIds
.
isEmpty
())
{
orderedResponseList
=
orderServiceRpcClient
.
getOrdersByCondition
(
queryOrderDto
);
}
List
<
Integer
>
uniqueOrderedCustomerIds
=
orderedResponseList
.
stream
().
map
(
SingleClientCustomerOrderRpcResponse:
:
getCustomerId
).
distinct
()
.
collect
(
Collectors
.
toList
());
...
...
Please
register
or
login
to post a comment