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-11-19 15:29:57 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3dba7a337f78c80f1c71226f7e0b4f808ef56c36
3dba7a33
1 parent
de053f16
feat(proto): 添加交易参考号字段以支持支付回调处理
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
5 deletions
src/main/java/com/infoloop/tianting/model/dto/SettlementDTO.java
src/main/java/com/infoloop/tianting/service/client/PayServiceClient.java
src/main/java/com/infoloop/tianting/service/impl/SettlementServiceImpl.java
src/main/proto/ClientCustomerOrderService.proto
src/main/java/com/infoloop/tianting/model/dto/SettlementDTO.java
View file @
3dba7a3
...
...
@@ -104,7 +104,7 @@ public class SettlementDTO {
private
String
avoidRemark
;
private
String
onlinePay
;
private
String
operationType
;
private
String
tra
nsactionId
;
private
String
tra
deReferenceNo
;
}
@Data
...
...
src/main/java/com/infoloop/tianting/service/client/PayServiceClient.java
View file @
3dba7a3
...
...
@@ -202,8 +202,10 @@ public class PayServiceClient {
.
setPayStatus
(
PayStatusEnum
.
SUCCEED
)
.
setShouldUpdateStatus
(
true
)
.
setStatus
(
OrderStatusEnum
.
PREPARING
)
.
setShouldUpdateTransactionId
(
StringUtils
.
isNotEmpty
(
paymentCallbackResult
.
getTradeReferenceNo
()))
.
setTransactionId
(
StringUtils
.
isNotEmpty
(
paymentCallbackResult
.
getTradeReferenceNo
())
?
paymentCallbackResult
.
getTradeReferenceNo
()
:
""
)
.
setShouldUpdateTransactionId
(
true
)
.
setTransactionId
(
paymentCallbackResult
.
getTransSN
())
.
setShouldUpdateTradeReferenceNo
(
StringUtils
.
isNotEmpty
(
paymentCallbackResult
.
getTradeReferenceNo
()))
.
setTradeReferenceNo
(
StringUtils
.
isNotEmpty
(
paymentCallbackResult
.
getTradeReferenceNo
())
?
paymentCallbackResult
.
getTradeReferenceNo
()
:
""
)
.
build
();
final
var
updateResponse
=
orderServiceRpcClient
.
updateClientCustomerOrderPaymentResult
(
orderById
,
build
);
...
...
src/main/java/com/infoloop/tianting/service/impl/SettlementServiceImpl.java
View file @
3dba7a3
...
...
@@ -486,7 +486,7 @@ public class SettlementServiceImpl implements SettlementService {
dataCell13
.
setCellStyle
(
dataStyle
);
Cell
dataCell14
=
dataRow
.
createCell
(
columnNum
++);
dataCell14
.
setCellValue
(
orderDetail
.
getTra
nsactionId
()
!=
null
?
orderDetail
.
getTransactionId
()
:
""
);
dataCell14
.
setCellValue
(
orderDetail
.
getTra
deReferenceNo
()
!=
null
?
orderDetail
.
getTradeReferenceNo
()
:
""
);
dataCell14
.
setCellStyle
(
dataStyle
);
// 合并备注和忌口备注,用分号分割,备注在前
...
...
@@ -977,7 +977,7 @@ public class SettlementServiceImpl implements SettlementService {
.
avoidRemark
(
order
.
getAvoidRemark
())
.
onlinePay
(
onlinePayDesc
)
.
operationType
(
operationType
)
.
tra
nsactionId
(
operationType
.
equals
(
"已退款"
)
?
""
:
order
.
getTransactionId
())
.
tra
deReferenceNo
(
operationType
.
equals
(
"已退款"
)
?
""
:
order
.
getTradeReferenceNo
())
.
build
();
}
...
...
src/main/proto/ClientCustomerOrderService.proto
View file @
3dba7a3
...
...
@@ -148,6 +148,7 @@ message SingleClientCustomerOrderRpcResponse {
string
syncRoomNo
=
36
;
bool
isCanceled
=
37
;
string
avoidRemark
=
38
;
string
tradeReferenceNo
=
39
;
}
message
GetClientCustomerOrderByIdRpcRequest
{
...
...
@@ -394,6 +395,8 @@ message ClientCustomerOrderModification {
bool
isCanceled
=
57
;
bool
shouldUpdateAvoidRemark
=
58
;
string
avoidRemark
=
59
;
bool
shouldUpdateTradeReferenceNo
=
60
;
string
tradeReferenceNo
=
61
;
}
message
UpdateClientCustomerOrderRpcRequest
{
...
...
Please
register
or
login
to post a comment