From effd504d482c89379daa63a4025336f5bd348913 Mon Sep 17 00:00:00 2001 From: yhan219 <yhan219@sina.com> Date: 星期五, 16 六月 2023 22:58:36 +0800 Subject: [PATCH] !359 [需求认领] 对接 powerjob 实现分布式任务调度 集成方式参考框架内 xxl-job * 对接powerjob替换xxl-job实现分布式任务调度 --- ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/controller/system/SysTenantController.java | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/controller/system/SysTenantController.java b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/controller/system/SysTenantController.java index dc8fbc0..865b57a 100644 --- a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/controller/system/SysTenantController.java +++ b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/controller/system/SysTenantController.java @@ -4,6 +4,7 @@ import cn.dev33.satoken.annotation.SaCheckRole; import com.baomidou.lock.annotation.Lock4j; import jakarta.servlet.http.HttpServletResponse; +import jakarta.validation.constraints.Min; import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.NotEmpty; import jakarta.validation.constraints.NotNull; @@ -174,7 +175,8 @@ @SaCheckPermission("system:tenant:edit") @Log(title = "绉熸埛", businessType = BusinessType.UPDATE) @GetMapping("/syncTenantPackage") - public R<Void> syncTenantPackage(@NotBlank(message = "绉熸埛ID涓嶈兘涓虹┖") String tenantId, @NotBlank(message = "濂楅ID涓嶈兘涓虹┖") Long packageId) { + public R<Void> syncTenantPackage(@NotBlank(message = "绉熸埛ID涓嶈兘涓虹┖") String tenantId, + @NotNull(message = "濂楅ID涓嶈兘涓虹┖") Long packageId) { return toAjax(TenantHelper.ignore(() -> tenantService.syncTenantPackage(tenantId, packageId))); } -- Gitblit v1.9.3