diff --git a/mallinkService/src/main/java/com/iformall/service/impl/TtGoodsCategoryServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/TtGoodsCategoryServiceImpl.java index 0106167a4..6e966d351 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/TtGoodsCategoryServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/TtGoodsCategoryServiceImpl.java @@ -588,7 +588,7 @@ public class TtGoodsCategoryServiceImpl implements TtGoodsCategoryService { handSyncCategory(ttWebService,0,new Date()); }else { TenantEntity defaultEntity = new TenantEntity(); - defaultEntity.setTenantId("789"); + defaultEntity.setTenantId("1036"); TtGoodLifeSaasService ttWebService = ttMerchantPoiService.getTtGoodLifeSassService(defaultEntity); handSyncCategoryForNew(ttWebService,0,new Date()); } @@ -596,7 +596,12 @@ public class TtGoodsCategoryServiceImpl implements TtGoodsCategoryService { @Override public List categoryGet(Integer categoryId,boolean isNew) { - String key = "goods_category:"+categoryId; + String key = null; + if(isNew){ + key = "goods_category:new:"+categoryId; + }else{ + key = "goods_category:"+categoryId; + } List cacheListObject = RedisCacheUtils.getCacheListObject(categoryRedisTemplate, key, GoodsCategory.class); if(cacheListObject != null && cacheListObject.size() > 0){ return cacheListObject; @@ -605,7 +610,7 @@ public class TtGoodsCategoryServiceImpl implements TtGoodsCategoryService { List goodsCategories = null; if (isNew) { TenantEntity defaultEntity = new TenantEntity(); - defaultEntity.setTenantId("789"); + defaultEntity.setTenantId("1036"); TtGoodLifeSaasService ttWebService = ttMerchantPoiService.getTtGoodLifeSassService(defaultEntity); goodsCategories = ttWebService.getGoodsService().categoryGet(categoryId, null); }else {