Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Jeepay
Commits
67680e51
Commit
67680e51
authored
Nov 18, 2021
by
terrfly
Browse files
更新订单状态
parent
f5b8cfd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
jeepay-service/src/main/java/com/jeequan/jeepay/service/mapper/PayOrderMapper.xml
View file @
67680e51
...
...
@@ -91,6 +91,7 @@
update t_pay_order
set refund_times = refund_times + 1,
<!-- 退款次数 +1 -->
refund_state = CASE WHEN refund_amount + #{currentRefundAmount} >= amount THEN 2 ELSE 1 END,
<!-- 更新是否已全额退款。 此更新需在refund_amount更新之前,否则需要去掉累加逻辑 -->
`state` = CASE WHEN refund_amount + #{currentRefundAmount} >= amount THEN 5 ELSE 2 END,
<!-- 更新订单状态 -->
refund_amount = refund_amount + #{currentRefundAmount}
<!-- 退款金额累加 -->
where
pay_order_id = #{payOrderId} and `state` = 2
<!-- 订单号 & 成功状态的可退款 -->
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment