Browse Source

fix:锁属性修改

ly 10 months ago
parent
commit
385d4f5fdf

+ 1 - 1
src/main/java/cn/ezhizao/project/business/order/controller/BizArchiveInputController.java

@@ -194,7 +194,7 @@ public class BizArchiveInputController extends BaseController {
     @Log(title = "档案入库", businessType = BusinessType.UPDATE)
     @Log(title = "档案入库", businessType = BusinessType.UPDATE)
     @PutMapping
     @PutMapping
     @Transactional(rollbackFor = Exception.class)
     @Transactional(rollbackFor = Exception.class)
-    @distributedLock(prefix = "crmInputAdd",key = "@tenantId")
+    @distributedLock(prefix = "crmInputEdit",key = "#bizArchiveInput.id")
     public AjaxResult edit(@RequestBody BizArchiveInput bizArchiveInput) throws NoSuchFieldException, IllegalAccessException {
     public AjaxResult edit(@RequestBody BizArchiveInput bizArchiveInput) throws NoSuchFieldException, IllegalAccessException {
         setTenantId(bizArchiveInput);
         setTenantId(bizArchiveInput);
         return toAjax(bizArchiveInputService.updateById(bizArchiveInput));
         return toAjax(bizArchiveInputService.updateById(bizArchiveInput));