Explorar o código

fix:客户导入零申报添加锁

ly hai 10 meses
pai
achega
b70739d3d6

+ 2 - 0
src/main/java/cn/ezhizao/project/business/company/controller/BizCompanyController.java

@@ -131,7 +131,9 @@ public class BizCompanyController extends BaseController
         String message = bizCompanyService.importCompany(companyList, operName, getTenantId() == null ? 0 : getTenantId());
         return success(message);
     }
+    @Log(title = "客户管理", businessType = BusinessType.IMPORT)
     @PostMapping("/importZero")
+    @distributedLock(prefix = "crmComImportZero",key = "@tenantId")
     public AjaxResult importZero(MultipartFile file) throws Exception
     {
         Long tenantId = getTenantId();