| | |
| | | |
| | | //保存动态属性 |
| | | for _, attributesColumn := range attributesColumns { |
| | | attributeValueList = append(attributeValueList, &models.AttributeValue{ |
| | | EntityID: material.ID, |
| | | //AttributeID: mapAttribute[insert[attributesColumn]], |
| | | AttributeID: mapAttribute[headers[attributesColumn]], |
| | | Value: insert[attributesColumn], |
| | | }) |
| | | if len(insert) > attributesColumn { |
| | | attributeValueList = append(attributeValueList, &models.AttributeValue{ |
| | | EntityID: material.ID, |
| | | //AttributeID: mapAttribute[insert[attributesColumn]], |
| | | AttributeID: mapAttribute[headers[attributesColumn]], |
| | | Value: insert[attributesColumn], |
| | | }) |
| | | } |
| | | } |
| | | |
| | | } |