Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fzm-joying
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lei
fzm-joying
Commits
6f75f9ce
Commit
6f75f9ce
authored
May 17, 2022
by
33
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复退款相关BUG
parent
6304fcd0
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
6 deletions
+7
-6
CopyrightApplyServiceImpl.java
...om/fzm/common/service/impl/CopyrightApplyServiceImpl.java
+1
-1
OrderServiceImpl.java
...in/java/com/fzm/common/service/impl/OrderServiceImpl.java
+2
-2
PaymentServiceImpl.java
.../java/com/fzm/common/service/impl/PaymentServiceImpl.java
+1
-1
RefundServiceImpl.java
...n/java/com/fzm/common/service/impl/RefundServiceImpl.java
+1
-1
UserServiceImpl.java
...ain/java/com/fzm/common/service/impl/UserServiceImpl.java
+1
-1
WxPayServiceImpl.java
...in/java/com/fzm/common/service/impl/WxPayServiceImpl.java
+1
-0
No files found.
joying-common/src/main/java/com/fzm/common/service/impl/CopyrightApplyServiceImpl.java
View file @
6f75f9ce
...
...
@@ -53,7 +53,7 @@ import java.util.concurrent.TimeUnit;
*/
@Slf4j
@Service
@Transactional
(
rollbackFor
=
Runtime
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
class
CopyrightApplyServiceImpl
extends
ServiceImpl
<
CopyrightApplyMapper
,
CopyrightApply
>
implements
CopyrightApplyService
{
@Resource
private
CopyrightApplyMapper
copyrightApplyMapper
;
...
...
joying-common/src/main/java/com/fzm/common/service/impl/OrderServiceImpl.java
View file @
6f75f9ce
...
...
@@ -66,7 +66,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
}
@Override
@Transactional
(
rollbackFor
=
Runtime
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
Order
createOrder
(
OrderDto
orderDto
)
{
Charge
charge
=
chargeService
.
getByType
(
orderDto
.
getPayScene
());
if
(!
orderDto
.
getFee
().
equals
(
charge
.
getFee
()))
{
...
...
@@ -121,7 +121,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
}
@Override
@Transactional
(
rollbackFor
=
Runtime
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
Boolean
cancel
(
Long
orderId
,
OrderStatus
orderStatus
)
{
Order
order
=
this
.
getById
(
orderId
);
Integer
productId
=
order
.
getProductId
();
...
...
joying-common/src/main/java/com/fzm/common/service/impl/PaymentServiceImpl.java
View file @
6f75f9ce
...
...
@@ -23,7 +23,7 @@ import java.util.List;
* @date 2022/1/20 16:40
*/
@Service
@Transactional
(
rollbackFor
=
Runtime
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@RequiredArgsConstructor
(
onConstructor
=
@__
(
@Autowired
))
public
class
PaymentServiceImpl
extends
ServiceImpl
<
PaymentMapper
,
Payment
>
implements
PaymentService
{
private
final
PaymentMapper
paymentMapper
;
...
...
joying-common/src/main/java/com/fzm/common/service/impl/RefundServiceImpl.java
View file @
6f75f9ce
...
...
@@ -26,7 +26,7 @@ import java.util.List;
* @date 2022/1/24 14:27
*/
@Service
@Transactional
(
rollbackFor
=
Runtime
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@RequiredArgsConstructor
(
onConstructor
=
@__
(
@Autowired
))
public
class
RefundServiceImpl
extends
ServiceImpl
<
RefundMapper
,
Refund
>
implements
RefundService
{
...
...
joying-common/src/main/java/com/fzm/common/service/impl/UserServiceImpl.java
View file @
6f75f9ce
...
...
@@ -60,7 +60,7 @@ import java.util.List;
*/
@Slf4j
@Service
@Transactional
(
rollbackFor
=
Runtime
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@RequiredArgsConstructor
(
onConstructor
=
@__
(
@Autowired
))
public
class
UserServiceImpl
extends
ServiceImpl
<
UserMapper
,
User
>
implements
UserService
{
private
final
UserMapper
userMapper
;
...
...
joying-common/src/main/java/com/fzm/common/service/impl/WxPayServiceImpl.java
View file @
6f75f9ce
...
...
@@ -358,6 +358,7 @@ public class WxPayServiceImpl implements WxPayService {
refund
.
setRefundStatus
(
RefundStatus
.
SUCCESS
.
getStatus
());
refund
.
setSuccessTime
(
obj
.
getStr
(
"success_time"
));
refund
.
setContent
(
JSONUtil
.
toJsonStr
(
obj
));
refund
.
setFailMessage
(
""
);
refundService
.
updateById
(
refund
);
// 更新流水的退款状态
Payment
payment
=
paymentService
.
getByOrderId
(
out_trade_no
);
...
...
Write
Preview
Markdown
is supported
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