|
|
|
@@ -84,7 +84,7 @@ public class TtGoodsCategoryServiceImpl implements TtGoodsCategoryService { |
|
|
|
return keyList; |
|
|
|
} |
|
|
|
|
|
|
|
private List<String> getAttrAdminIsNotShowKey(){ |
|
|
|
private List<String> getSkuAttrAdminIsNotShowKey(){ |
|
|
|
List<String> 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<GoodsTemplateGet.ProductAttrs> 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); |
|
|
|
|