From 50859624fbd3273b895b05fb90653b9b9515c9d8 Mon Sep 17 00:00:00 2001 From: WendyYang Date: Mon, 29 Apr 2024 09:14:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B6=88=E6=81=AF=E5=9B=9E?= =?UTF-8?q?=E5=86=99=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/hz/pm/api/meeting/task/MsgCallReplyRewriteTask.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hz-pm-api/src/main/java/com/hz/pm/api/meeting/task/MsgCallReplyRewriteTask.java b/hz-pm-api/src/main/java/com/hz/pm/api/meeting/task/MsgCallReplyRewriteTask.java index d816b1c..22da85a 100644 --- a/hz-pm-api/src/main/java/com/hz/pm/api/meeting/task/MsgCallReplyRewriteTask.java +++ b/hz-pm-api/src/main/java/com/hz/pm/api/meeting/task/MsgCallReplyRewriteTask.java @@ -16,8 +16,8 @@ import com.hz.pm.api.sys.model.entity.MsgCallRecord.SendStatus; import com.hz.pm.api.sys.model.enumeration.SubmitTypeEnum; import com.hz.pm.api.sys.service.IMsgCallRecordService; import com.ningdatech.basic.util.CollUtils; -import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; +import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; import org.springframework.stereotype.Component; @@ -40,6 +40,7 @@ import static com.hz.pm.api.external.MobileCallClient.ReplyCallDTO; */ @Slf4j @Component +@ConditionalOnProperty(prefix = "msg-call-reply-write", value = "open", havingValue = "true", matchIfMissing = true) public class MsgCallReplyRewriteTask { private static final ThreadPoolTaskExecutor EXECUTOR;