From 8f584055bfc7fd4d703cbaa4ba413bb5b21b9fb7 Mon Sep 17 00:00:00 2001 From: xhxu Date: Mon, 29 May 2023 18:41:44 +0800 Subject: [PATCH] //token --- .../service/impl/TtGoodsCategoryServiceImpl.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 {