Quellcode durchsuchen

fix:收款,支付添加锁

ly vor 9 Monaten
Ursprung
Commit
ee70fa831c

+ 2 - 2
src/main/java/cn/ezhizao/project/business/collection/controller/BizCollectionController.java

@@ -359,7 +359,7 @@ public class BizCollectionController extends BaseController {
     @PostMapping("/checkArrive")
     @Transactional(rollbackFor = Exception.class)
     @ResponseBody
-    @distributedLock(prefix = "financialCollectionCheckArrive",key = "#conditions.id")
+    @distributedLock(prefix = "financialCollectionCheckArrive",key = "#collection.id")
     public AjaxResult checkArrive(@RequestBody BizCollection collection) {
 
         AtomicBoolean collectionCheck = new AtomicBoolean(true);
@@ -388,7 +388,7 @@ public class BizCollectionController extends BaseController {
     @PostMapping("/verified")
     @Transactional(rollbackFor = Exception.class)
     @Log(title = "收款管理审核", businessType = BusinessType.UPDATE)
-    @distributedLock(prefix = "financialCollectionVerified",key = "#conditions.id")
+    @distributedLock(prefix = "financialCollectionVerified",key = "#collection.id")
     public AjaxResult verified(@RequestBody BizCollection collection) {
         try {
             collection.setVerifyId(getUserId());