update 优化 工作流配置书写错误

This commit is contained in:
疯狂的狮子Li 2025-01-15 09:56:02 +08:00
parent 62b7d96551
commit 3444b50da6
2 changed files with 2 additions and 2 deletions

View File

@ -196,7 +196,7 @@ public class SysTenantServiceImpl implements ISysTenantService {
configMapper.insertBatch(sysConfigList);
// 未开启工作流不执行下方操作
if (SpringUtils.getProperty("work-flow.enabled", Boolean.class, false)) {
if (SpringUtils.getProperty("warm-flow.enabled", Boolean.class, false)) {
WorkflowService workflowService = SpringUtils.getBean(WorkflowService.class);
// 新增租户流程定义
workflowService.syncDef(tenantId);

View File

@ -9,6 +9,6 @@ import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE, ElementType.METHOD })
@ConditionalOnProperty(value = "work-flow.enabled", havingValue = "true")
@ConditionalOnProperty(value = "warm-flow.enabled", havingValue = "true")
public @interface ConditionalOnEnable {
}