| | |
| | | * @param attribItemList 属性的列表 |
| | | */ |
| | | @Override |
| | | public void batchAddAttribute(List<AttribItem> attribItemList) { |
| | | public void batchAddAttribute(List<AttributeDef> attribItemList) { |
| | | if(!CollectionUtils.isEmpty(attribItemList)){ |
| | | attribItemList.stream().forEach(attribItem -> { |
| | | try { |
| | | platformClientUtil.getAttributeService().addAttribItem(attribItem); |
| | | } catch (VCIError e) { |
| | | platformClientUtil.getAttributeService().addAttributeDef(attribItem); |
| | | } catch (PLException e) { |
| | | throw WebUtil.getVciBaseException(e); |
| | | } |
| | | }); |
| | |
| | | * @param editAttrList 属性的列表 |
| | | */ |
| | | @Override |
| | | public void batchEditAttribute(List<AttribItem> editAttrList) { |
| | | public void batchEditAttribute(List<AttributeDef> editAttrList) { |
| | | if(!CollectionUtils.isEmpty(editAttrList)){ |
| | | editAttrList.stream().forEach(attribItem -> { |
| | | try { |
| | | platformClientUtil.getAttributeService().modifyAbItem(attribItem); |
| | | } catch (VCIError e) { |
| | | platformClientUtil.getAttributeService().modifyAttributeDef(attribItem); |
| | | } catch (PLException e) { |
| | | throw WebUtil.getVciBaseException(e); |
| | | } |
| | | }); |