From be0ada3c82fef892606afe80bdad771223495630 Mon Sep 17 00:00:00 2001 From: xhxu Date: Tue, 7 Jun 2022 17:22:51 +0800 Subject: [PATCH] //tt product --- .../iformall/service/impl/TtGoodsCategoryServiceImpl.java | 7 +++---- 1 file changed, 3 insertions(+), 4 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 e9f040257..68c21aadb 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/TtGoodsCategoryServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/TtGoodsCategoryServiceImpl.java @@ -84,7 +84,7 @@ public class TtGoodsCategoryServiceImpl implements TtGoodsCategoryService { return keyList; } - private List getAttrAdminIsNotShowKey(){ + private List getSkuAttrAdminIsNotShowKey(){ List keyList = new ArrayList<>(); keyList.add("code_source_type"); //券码生成方式 默认2 // keyList.add("commodity"); //菜品搭配 @@ -109,9 +109,8 @@ public class TtGoodsCategoryServiceImpl implements TtGoodsCategoryService { attr.setIsShow(true); } } - List skuAttrs = new ArrayList<>(); - for (GoodsTemplateGet.ProductAttrs attr: temp.getProductAttrs()) { - if(getAttrAdminIsNotShowKey().contains(attr.getKey())){ + for (GoodsTemplateGet.ProductAttrs attr: temp.getSkuAttrs()) { + if(getSkuAttrAdminIsNotShowKey().contains(attr.getKey())){ attr.setIsShow(false); }else{ attr.setIsShow(true);