From 04e5403878917b19356a1229136cb3522cd82c85 Mon Sep 17 00:00:00 2001 From: bayuzhen Date: Mon, 26 Aug 2024 10:13:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E6=B3=A8=E5=85=A5=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bocloud/sms/booter/scheduler/YunKongGetAppSchedule.java | 3 +-- .../main/java/com/bocloud/sms/service/TrxServiceImpl.java | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/bocloud.sms.booter/src/main/java/com/bocloud/sms/booter/scheduler/YunKongGetAppSchedule.java b/bocloud.sms.booter/src/main/java/com/bocloud/sms/booter/scheduler/YunKongGetAppSchedule.java index d204e0a..6d3fb99 100644 --- a/bocloud.sms.booter/src/main/java/com/bocloud/sms/booter/scheduler/YunKongGetAppSchedule.java +++ b/bocloud.sms.booter/src/main/java/com/bocloud/sms/booter/scheduler/YunKongGetAppSchedule.java @@ -23,8 +23,7 @@ import java.util.*; @RequiredArgsConstructor public class YunKongGetAppSchedule { private final Logger logger = LoggerFactory.getLogger(this.getClass()); - @Autowired - private YkUtils ykUtils; + private final YkUtils ykUtils; private final StringRedisTemplate redisTemplate; diff --git a/bocloud.sms.service/src/main/java/com/bocloud/sms/service/TrxServiceImpl.java b/bocloud.sms.service/src/main/java/com/bocloud/sms/service/TrxServiceImpl.java index bb25391..f7ea86b 100644 --- a/bocloud.sms.service/src/main/java/com/bocloud/sms/service/TrxServiceImpl.java +++ b/bocloud.sms.service/src/main/java/com/bocloud/sms/service/TrxServiceImpl.java @@ -44,10 +44,8 @@ public class TrxServiceImpl implements TrxService { private UserServiceImpl userServiceImpl; @Autowired private UserRepository userRepository; - @Autowired - private YkUtils ykUtils; - @Autowired - private QxUtils qxUtils; + private final YkUtils ykUtils; + private final QxUtils qxUtils; @Autowired private RoleRepository roleRepository; private final StringRedisTemplate redisTemplate;