| @@ -84,7 +84,7 @@ public class TtGoodsCategoryServiceImpl implements TtGoodsCategoryService { | |||||
| return keyList; | return keyList; | ||||
| } | } | ||||
| private List<String> getAttrAdminIsNotShowKey(){ | |||||
| private List<String> getSkuAttrAdminIsNotShowKey(){ | |||||
| List<String> keyList = new ArrayList<>(); | List<String> keyList = new ArrayList<>(); | ||||
| keyList.add("code_source_type"); //券码生成方式 默认2 | keyList.add("code_source_type"); //券码生成方式 默认2 | ||||
| // keyList.add("commodity"); //菜品搭配 | // keyList.add("commodity"); //菜品搭配 | ||||
| @@ -109,9 +109,8 @@ public class TtGoodsCategoryServiceImpl implements TtGoodsCategoryService { | |||||
| attr.setIsShow(true); | 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); | attr.setIsShow(false); | ||||
| }else{ | }else{ | ||||
| attr.setIsShow(true); | attr.setIsShow(true); | ||||