Просмотр исходного кода

Merge branch 'release_toaliyun_real_20230511' of https://git.malls.iformall.com/server/formallProject into release_toaliyun_real_20230511

release_toaliyun_real
winter 3 лет назад
Родитель
Сommit
f06dd6edea
1 измененных файлов: 8 добавлений и 3 удалений
  1. +8
    -3
      mallinkService/src/main/java/com/iformall/service/impl/TtGoodsCategoryServiceImpl.java

+ 8
- 3
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<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 {


Загрузка…
Отмена
Сохранить