| @@ -588,7 +588,7 @@ public class TtGoodsCategoryServiceImpl implements TtGoodsCategoryService { | |||||
| handSyncCategory(ttWebService,0,new Date()); | handSyncCategory(ttWebService,0,new Date()); | ||||
| }else { | }else { | ||||
| TenantEntity defaultEntity = new TenantEntity(); | TenantEntity defaultEntity = new TenantEntity(); | ||||
| defaultEntity.setTenantId("789"); | |||||
| defaultEntity.setTenantId("1036"); | |||||
| TtGoodLifeSaasService ttWebService = ttMerchantPoiService.getTtGoodLifeSassService(defaultEntity); | TtGoodLifeSaasService ttWebService = ttMerchantPoiService.getTtGoodLifeSassService(defaultEntity); | ||||
| handSyncCategoryForNew(ttWebService,0,new Date()); | handSyncCategoryForNew(ttWebService,0,new Date()); | ||||
| } | } | ||||
| @@ -596,7 +596,12 @@ public class TtGoodsCategoryServiceImpl implements TtGoodsCategoryService { | |||||
| @Override | @Override | ||||
| public List<GoodsCategory> categoryGet(Integer categoryId,boolean isNew) { | public List<GoodsCategory> 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<GoodsCategory> cacheListObject = RedisCacheUtils.getCacheListObject(categoryRedisTemplate, key, GoodsCategory.class); | List<GoodsCategory> cacheListObject = RedisCacheUtils.getCacheListObject(categoryRedisTemplate, key, GoodsCategory.class); | ||||
| if(cacheListObject != null && cacheListObject.size() > 0){ | if(cacheListObject != null && cacheListObject.size() > 0){ | ||||
| return cacheListObject; | return cacheListObject; | ||||
| @@ -605,7 +610,7 @@ public class TtGoodsCategoryServiceImpl implements TtGoodsCategoryService { | |||||
| List<GoodsCategory> goodsCategories = null; | List<GoodsCategory> goodsCategories = null; | ||||
| if (isNew) { | if (isNew) { | ||||
| TenantEntity defaultEntity = new TenantEntity(); | TenantEntity defaultEntity = new TenantEntity(); | ||||
| defaultEntity.setTenantId("789"); | |||||
| defaultEntity.setTenantId("1036"); | |||||
| TtGoodLifeSaasService ttWebService = ttMerchantPoiService.getTtGoodLifeSassService(defaultEntity); | TtGoodLifeSaasService ttWebService = ttMerchantPoiService.getTtGoodLifeSassService(defaultEntity); | ||||
| goodsCategories = ttWebService.getGoodsService().categoryGet(categoryId, null); | goodsCategories = ttWebService.getGoodsService().categoryGet(categoryId, null); | ||||
| }else { | }else { | ||||