|
|
|
@@ -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<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); |
|
|
|
if(cacheListObject != null && cacheListObject.size() > 0){ |
|
|
|
return cacheListObject; |
|
|
|
@@ -605,7 +610,7 @@ public class TtGoodsCategoryServiceImpl implements TtGoodsCategoryService { |
|
|
|
List<GoodsCategory> 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 { |
|
|
|
|