Browse Source

fix transactional

huodongdong 7 years ago
parent
commit
1cd5f51282

+ 1 - 0
rankin-user-service/src/main/java/cn/rankin/userservice/service/PayingService.java

@@ -21,6 +21,7 @@ public class PayingService {
     @Autowired
     private LedgerService ledgerService;
 
+    @Transactional
     public APIResult<Boolean> pay(String merchantId, BigDecimal quantity, LedgerTypeEnum type, String receiptId, String note) {
         return this.change(merchantId, quantity.negate(), type, receiptId, note);
     }