From 72800e1e44b0fd7566b250b2dddb7d508b5d96fa Mon Sep 17 00:00:00 2001 From: hzj <826100833@qq.com> Date: Tue, 1 Jul 2025 13:50:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E7=89=88=E6=9C=AC=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/LargeScreenCountServiceImpl.java | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/event_smart/src/main/java/com/njcn/gather/event/transientes/service/impl/LargeScreenCountServiceImpl.java b/event_smart/src/main/java/com/njcn/gather/event/transientes/service/impl/LargeScreenCountServiceImpl.java index e0cbc7cf..149d1956 100644 --- a/event_smart/src/main/java/com/njcn/gather/event/transientes/service/impl/LargeScreenCountServiceImpl.java +++ b/event_smart/src/main/java/com/njcn/gather/event/transientes/service/impl/LargeScreenCountServiceImpl.java @@ -48,6 +48,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import org.springframework.util.CollectionUtils; +import javax.annotation.PostConstruct; import java.time.LocalDate; import java.time.LocalDateTime; import java.util.*; @@ -78,15 +79,22 @@ public class LargeScreenCountServiceImpl implements LargeScreenCountService { private final MsgEventInfoService msgEventInfoService; private final MessageEventFeedbackService messageEventFeedbackService; private final CommGeneralService commGeneralService; - + private final MsgEventConfigService msgEventConfigService; private final PqsUsersetService pqsUsersetService; private final PqsUserService pqsUserService; private final PqLinedetailMapper pqLinedetailMapper; - @Value("${WAVETYPE.LIST}") - private List WAVETYPE_LIST; + + private List WAVETYPE_LIST = new ArrayList<>(); @Value("${SYS_TYPE_ZT}") private String sysTypeZt; + @PostConstruct + public void init() { + MsgEventConfig one = msgEventConfigService.queryConfig(); + this.WAVETYPE_LIST = one.getEventTypeList(); + } + + @Override public LedgerCountVO scaleStatistics(LargeScreenCountParam largeScreenCountParam) { LedgerCountVO ledgerCountVO = new LedgerCountVO();