From b27598f5c370ef74d74f5459eeeda4c403f1ff4b Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 17 七月 2019 18:14:59 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
fanli/src/main/java/com/yeshi/fanli/service/impl/lable/LabelServiceImpl.java | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/lable/LabelServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/lable/LabelServiceImpl.java
index 505b70a..5da3b12 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/lable/LabelServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/lable/LabelServiceImpl.java
@@ -24,7 +24,6 @@
import com.yeshi.fanli.entity.bus.lable.LabelGoods;
import com.yeshi.fanli.entity.common.AdminUser;
import com.yeshi.fanli.exception.LabelException;
-import com.yeshi.fanli.log.LogHelper;
import com.yeshi.fanli.service.inter.lable.LabelService;
import com.yeshi.fanli.util.StringUtil;
@@ -157,14 +156,21 @@
@Override
public List<Label> selectByTitle(String title) throws LabelException{
- LogHelper.test("鏌ヨ鏍囩锛� "+title);
return labelMapper.selectByTitle(title);
}
+
@Override
- @Cacheable(value = "labelCache",key="'selectByTitleCache-'+#labKey +'-'+#title")
- public List<Label> selectByTitleCache(String labKey, String title) throws LabelException{
- return selectByTitle(title);
+ @Cacheable(value = "labelCache",key="'getByTitleCache-'+#labKey +'-'+#title")
+ public Label getByTitleCache(String labKey, String title) throws LabelException{
+ return labelMapper.getByTitle(title);
+ }
+
+
+ @Override
+ @Cacheable(value = "labelCache",key="'listByTitlesCache-'+#list")
+ public List<Label> listByTitlesCache(List<String> list){
+ return labelMapper.listByTitles(list);
}
--
Gitblit v1.8.0