From 4d9450919dccd9b20d4fc21f9288148c9257da61 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期二, 28 四月 2026 10:19:25 +0800
Subject: [PATCH] feat(ai): 添加审批待办助手功能
---
src/main/java/com/ruoyi/inspectiontask/service/impl/QuartzConfig.java | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/main/java/com/ruoyi/inspectiontask/service/impl/QuartzConfig.java b/src/main/java/com/ruoyi/inspectiontask/service/impl/QuartzConfig.java
index 40d9965..1644033 100644
--- a/src/main/java/com/ruoyi/inspectiontask/service/impl/QuartzConfig.java
+++ b/src/main/java/com/ruoyi/inspectiontask/service/impl/QuartzConfig.java
@@ -1,8 +1,8 @@
package com.ruoyi.inspectiontask.service.impl;
+import lombok.RequiredArgsConstructor;
import org.quartz.Scheduler;
import org.quartz.spi.TriggerFiredBundle;
-import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.AutowireCapableBeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
@@ -15,13 +15,12 @@
@Configuration
+@RequiredArgsConstructor
public class QuartzConfig {
- @Autowired
- private ApplicationContext applicationContext;
+ private final ApplicationContext applicationContext;
// 鍋囪宸查厤缃悕涓篸ataSource鐨勬暟鎹簮Bean
- @Autowired
- private DataSource dataSource;
+ private final DataSource dataSource;
@Bean
public SchedulerFactoryBean schedulerFactoryBean() {
--
Gitblit v1.9.3