From fa254a9ab510a6000293dac8859a1539842c59bb Mon Sep 17 00:00:00 2001 From: wanggongfeng <1305282856@qq.com> Date: Thu, 12 Dec 2019 16:25:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=8B=E5=85=AC=E5=B3=B0=EF=BC=9Aredis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/phrases/controller/ActPhraseController.java | 7 ------- .../elink/esua/epdc/support/initbean/InitRedisCache.java | 6 +++--- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/phrases/controller/ActPhraseController.java b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/phrases/controller/ActPhraseController.java index d793cfbcd..37d354243 100644 --- a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/phrases/controller/ActPhraseController.java +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/phrases/controller/ActPhraseController.java @@ -91,13 +91,6 @@ public class ActPhraseController { ExcelUtils.exportExcelToTarget(response, null, list, ActPhraseExcel.class); } - /** - * 查询常用语,更新Redis - */ - public void insertPhraseListToRedis(){ - actPhraseService.insertPhraseListToRedis(); - } - /*@PostMapping("queryCategoryInfo") public Result> queryCategoryInfo(@RequestBody CategoryInfoFormDTO formDTO) { List data = categoryService.listCategoryInfo(formDTO); diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/support/initbean/InitRedisCache.java b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/support/initbean/InitRedisCache.java index 7817b5d71..53f4593c6 100644 --- a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/support/initbean/InitRedisCache.java +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/support/initbean/InitRedisCache.java @@ -1,6 +1,6 @@ package com.elink.esua.epdc.support.initbean; -import com.elink.esua.epdc.modules.phrases.controller.ActPhraseController; +import com.elink.esua.epdc.modules.phrases.service.ActPhraseService; import org.springframework.beans.factory.InitializingBean; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; @@ -9,11 +9,11 @@ import org.springframework.stereotype.Component; public class InitRedisCache implements InitializingBean { @Autowired - private ActPhraseController actPhraseController; + private ActPhraseService actPhraseService; @Override public void afterPropertiesSet() throws Exception{ //redis存储常用语 - actPhraseController.insertPhraseListToRedis(); + actPhraseService.insertPhraseListToRedis(); } }