Toggle navigation
Toggle navigation
This project
Loading...
Sign in
jiujian
/
client-customer-order-service
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-04-22 17:29:31 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3875fde7cb1fe71088091d8f3b248f470e650b00
3875fde7
1 parent
f84ceef1
fix
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
src/main/java/com/tianting/infoloop/service/grpc/MealOrderGrpcService.java
src/main/java/com/tianting/infoloop/service/grpc/MealOrderGrpcService.java
View file @
3875fde
...
...
@@ -242,12 +242,12 @@ public class MealOrderGrpcService extends MealOrderServiceRpcGrpc.MealOrderServi
queryWrapper
.
eq
(
MealOrder:
:
getEnterpriseId
,
request
.
getEnterpriseId
());
queryWrapper
.
in
(!
request
.
getDinerIdsList
().
isEmpty
(),
MealOrder:
:
getDinerId
,
request
.
getDinerIdsList
());
LocalDate
today
=
LocalDate
.
now
();
LocalDate
thisMonday
=
today
.
with
(
TemporalAdjusters
.
previousOrSame
(
DayOfWeek
.
MONDAY
));
LocalDateTime
thisMondayStart
=
LocalDateTime
.
of
(
this
Monday
,
LocalTime
.
MIN
);
LocalDate
thisSunday
=
today
.
with
(
TemporalAdjusters
.
nextOrSame
(
DayOfWeek
.
SUNDAY
)
);
LocalDateTime
thisSundayEnd
=
LocalDateTime
.
of
(
this
Sunday
,
LocalTime
.
MAX
);
queryWrapper
.
ge
(
MealOrder:
:
getReserveDate
,
this
MondayStart
);
queryWrapper
.
lt
(
MealOrder:
:
getReserveDate
,
this
SundayEnd
);
LocalDate
nextMonday
=
today
.
with
(
TemporalAdjusters
.
next
(
DayOfWeek
.
MONDAY
));
LocalDateTime
nextMondayStart
=
LocalDateTime
.
of
(
next
Monday
,
LocalTime
.
MIN
);
LocalDate
nextSunday
=
nextMonday
.
plusDays
(
6
);
LocalDateTime
nextSundayEnd
=
LocalDateTime
.
of
(
next
Sunday
,
LocalTime
.
MAX
);
queryWrapper
.
ge
(
MealOrder:
:
getReserveDate
,
next
MondayStart
);
queryWrapper
.
lt
(
MealOrder:
:
getReserveDate
,
next
SundayEnd
);
final
var
mealOrders
=
mealOrderService
.
list
(
queryWrapper
);
if
(!
mealOrders
.
isEmpty
())
{
for
(
final
var
mealOrder
:
mealOrders
)
{
...
...
Please
register
or
login
to post a comment