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-10-27 18:58:44 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
b987c51e9889e46b5fa9c57f6465eb952bb57301
b987c51e
2 parents
d80716a7
c543510a
Merge branch 'feature/2025-10-23' into 'master'
Feature/2025 10 23 See merge request
!4
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
3 deletions
src/main/java/com/tianting/infoloop/model/db/OrderDb.java
src/main/java/com/tianting/infoloop/service/grpc/OrderGrpcService.java
src/main/java/com/tianting/infoloop/service/impl/OrderDbServiceImpl.java
src/main/java/com/tianting/infoloop/utils/DbToProtoUtil.java
src/main/proto/ClientCustomerOrderService.proto
src/main/java/com/tianting/infoloop/model/db/OrderDb.java
View file @
b987c51
...
...
@@ -181,4 +181,9 @@ public class OrderDb extends Model<OrderDb> implements Serializable {
* 是否撤销订单
*/
private
Boolean
isCanceled
;
/**
* 忌口备注
*/
private
String
avoidRemark
;
}
\ No newline at end of file
...
...
src/main/java/com/tianting/infoloop/service/grpc/OrderGrpcService.java
View file @
b987c51
...
...
@@ -299,9 +299,6 @@ public class OrderGrpcService extends ClientCustomerOrderServiceRpcGrpc.ClientCu
LambdaQueryWrapper
<
OrderDb
>
queryWrapper
=
Wrappers
.
lambdaQuery
();
queryWrapper
.
eq
(
OrderDb:
:
getEnterpriseId
,
request
.
getEnterpriseId
());
if
(
request
.
getShouldFilterClientIds
())
{
queryWrapper
.
in
(
OrderDb:
:
getId
,
request
.
getClientIdsList
());
}
if
(
request
.
getShouldFilterOrderCode
())
{
queryWrapper
.
likeLeft
(
OrderDb:
:
getOrderCode
,
request
.
getOrderCode
());
...
...
src/main/java/com/tianting/infoloop/service/impl/OrderDbServiceImpl.java
View file @
b987c51
...
...
@@ -416,6 +416,9 @@ public class OrderDbServiceImpl extends ServiceImpl<OrderDbMapper, OrderDb> impl
if
(
updateOrderRequest
.
getModification
().
getShouldUpdateIsCanceled
())
{
orderDb
.
setIsCanceled
(
updateOrderRequest
.
getModification
().
getIsCanceled
());
}
if
(
updateOrderRequest
.
getModification
().
getShouldUpdateAvoidRemark
())
{
orderDb
.
setAvoidRemark
(
updateOrderRequest
.
getModification
().
getAvoidRemark
());
}
return
orderDbMapper
.
updateById
(
orderDb
)
>
0
;
}
...
...
src/main/java/com/tianting/infoloop/utils/DbToProtoUtil.java
View file @
b987c51
...
...
@@ -140,6 +140,10 @@ public class DbToProtoUtil {
protoBuilder
.
setPayTime
((
orderDb
.
getPayTime
().
toEpochSecond
(
ZoneOffset
.
UTC
)
*
1000
));
}
if
(
orderDb
.
getAvoidRemark
()
!=
null
)
{
protoBuilder
.
setAvoidRemark
(
orderDb
.
getAvoidRemark
());
}
// 处理嵌套的CustomerNotice字段
if
(
orderDb
.
getCustomerNoticeJson
()!=
null
)
{
// Constructor<CustomerNotice> customerNoticeConstructor =
...
...
src/main/proto/ClientCustomerOrderService.proto
View file @
b987c51
...
...
@@ -89,6 +89,11 @@ enum OnlinePayEnum {
LEAVE_HOSPITAL
=
3
;
//出院
EMPLOYEE_CARD
=
4
;
//员工卡
PAPER_VERIFICATION
=
5
;
//纸质核销
CASH
=
6
;
//现金
MEAL_CARD
=
7
;
//餐卡
BAND_CARD
=
8
;
//银行卡
ALIPAY
=
9
;
//支付宝
WECHATPAY
=
10
;
//微信支付
}
enum
ServeStatusEnum
{
...
...
@@ -141,6 +146,7 @@ message SingleClientCustomerOrderRpcResponse {
bool
isAllocation
=
35
;
string
syncRoomNo
=
36
;
bool
isCanceled
=
37
;
string
avoidRemark
=
38
;
}
message
GetClientCustomerOrderByIdRpcRequest
{
...
...
@@ -385,6 +391,8 @@ message ClientCustomerOrderModification {
string
syncRoomNo
=
55
;
bool
shouldUpdateIsCanceled
=
56
;
bool
isCanceled
=
57
;
bool
shouldUpdateAvoidRemark
=
58
;
string
avoidRemark
=
59
;
}
message
UpdateClientCustomerOrderRpcRequest
{
...
...
Please
register
or
login
to post a comment