From ecf9f0669734d4397aa1277f9a22f515aa410062 Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期四, 20 六月 2019 17:04:11 +0800 Subject: [PATCH] 冲突文件 --- fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SpecialServiceImpl.java | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SpecialServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SpecialServiceImpl.java index f093639..9327edc 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SpecialServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SpecialServiceImpl.java @@ -30,7 +30,6 @@ import com.yeshi.fanli.util.VersionUtil; import net.sf.json.JSONObject; -import sun.security.krb5.internal.ccache.CCacheInputStream; @Service public class SpecialServiceImpl implements SpecialService { @@ -317,24 +316,24 @@ } @Override - @Cacheable(value = "configCache", key = "'listBySystemAndCard-'+#card+'-'+#systemId") + @Cacheable(value = "specialCache", key = "'listBySystemAndCard-'+#card+'-'+#systemId") public List<Special> listBySystemAndCard(String card, Long systemId) { return specialMapper.listBySystemAndCard(card, systemId); } @Override - @Cacheable(value = "configCache", key = "'listPageBySystemAndCard-'+#start+'-'+#count+'-'+#card+'-'+#systemId") + @Cacheable(value = "specialCache", key = "'listPageBySystemAndCard-'+#start+'-'+#count+'-'+#card+'-'+#systemId") public List<Special> listPageBySystemAndCard(long start, int count, String card, Long systemId) { return specialMapper.listPageBySystemAndCard(start, count, card, systemId); } @Override - @Cacheable(value = "configCache", key = "'listCacheSpecialToIndex'+#acceptData.platform+'-'+#acceptData.version") - public JSONObject listCacheSpecialToIndex(AcceptData acceptData) throws Exception { + @Cacheable(value = "specialCache", key = "'listCacheSpecialToIndex'+#acceptData.platform+'-'+#acceptData.version+'-'+#sex") + public JSONObject listCacheSpecialToIndex(AcceptData acceptData, Integer sex) throws Exception { // 棣栭〉-5鍦嗗舰2鎺掑尯鍩� JSONObject arcMap = new JSONObject(); - List<Special> listArc = specialMapper.listByPlaceKey("index_arc"); + List<Special> listArc = specialMapper.listByPlaceKey("index_arc", sex); if (listArc == null) { listArc = new ArrayList<Special>(); } else if (listArc.size() > 0) { @@ -368,7 +367,7 @@ && configService.iosOnLining(Integer.parseInt(acceptData.getVersion()))) { // 濡傛灉IOS褰撳墠鐗堟湰澶勪簬瀹℃牳鐘舵�佸氨涓嶈繑鍥� } else { - listActivity = specialMapper.listByPlaceKey("index_activity"); + listActivity = specialMapper.listByPlaceKey("index_activity", null); } if (listActivity == null) { @@ -387,7 +386,7 @@ // 棣栭〉-鏂瑰舰涓撻锛堝搧鐗屽埜銆佹瘝濠�...锛� JSONObject blockJsonMap = new JSONObject(); - List<Special> listBlock = specialMapper.listByPlaceKey("index_block"); + List<Special> listBlock = specialMapper.listByPlaceKey("index_block", sex); if (listBlock == null) { listBlock = new ArrayList<Special>(); } else if (listBlock.size() > 0) { @@ -398,6 +397,7 @@ } } + // 鍝佺墝鍒� // >=1.5.40鍚庣殑鐗堟湰鍙互鐢� if (("android".equalsIgnoreCase(acceptData.getPlatform()) && Integer.parseInt(acceptData.getVersion()) > 39) @@ -422,7 +422,7 @@ @Override public List<Special> listByPlaceKey(String placeKey) { - return specialMapper.listByPlaceKey(placeKey); + return specialMapper.listByPlaceKey(placeKey, null); } /** -- Gitblit v1.8.0