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
wangyingyang
2025-03-18 12:23:01 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
be7f26c4192b63d24c4e374980abd5a7c538d12d
be7f26c4
1 parent
217069f3
fix refund
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
src/main/java/com/tianting/infoloop/service/grpc/OrderGrpcService.java
src/main/proto/ClientCustomerOrderService.proto
src/main/java/com/tianting/infoloop/service/grpc/OrderGrpcService.java
View file @
be7f26c
...
...
@@ -214,7 +214,11 @@ public class OrderGrpcService extends ClientCustomerOrderServiceRpcGrpc.ClientCu
queryWrapper
.
eq
(
OrderDb:
:
getClientId
,
request
.
getClientId
());
queryWrapper
.
in
(
OrderDb:
:
getStallId
,
request
.
getStallIdsList
());
queryWrapper
.
eq
(
OrderDb:
:
getStatus
,
request
.
getStatusValue
());
if
(
request
.
getShouldFilterPayStatus
())
{
queryWrapper
.
eq
(
OrderDb:
:
getPayStatus
,
request
.
getPayStatus
());
}
else
{
queryWrapper
.
in
(
OrderDb:
:
getPayStatus
,
List
.
of
(
PayStatusEnum
.
SUCCEED_VALUE
,
PayStatusEnum
.
PAY_CANCELED_VALUE
));
}
queryWrapper
.
orderByDesc
(
OrderDb:
:
getCreatedAt
);
final
var
result
=
orderDbService
.
page
(
page
,
queryWrapper
);
...
...
src/main/proto/ClientCustomerOrderService.proto
View file @
be7f26c
...
...
@@ -74,6 +74,7 @@ enum PayStatusEnum {
SUCCEED
=
3
;
FAILED
=
4
;
PAY_CANCELED
=
5
;
REFUND
=
6
;
}
enum
CloseTimeType
{
...
...
@@ -181,8 +182,8 @@ message QueryClientCustomerOrdersByPaginationRpcRequest {
int32
pageNo
=
6
;
int32
pageSize
=
7
;
repeated
int32
stallIds
=
8
;
bool
shouldFilter
IsCanceled
=
9
;
bool
isCanceled
=
10
;
bool
shouldFilter
PayStatus
=
9
;
PayStatusEnum
payStatus
=
10
;
}
message
OrderCountByStatus
{
...
...
Please
register
or
login
to post a comment