将JSON数组转换为对象映射(Java)

huangapple go评论83阅读模式
英文:

Convert JSON array of arrays to map of objects (Java)

问题

以下是您要求的翻译:

我有一些数据,它是使用Java、Apache POI和Jackson从Excel文件中提取到JSON结构中的。生成的JSON数据结构如下所示:

data元素中,实际上是一个数组的数组,表示来自工作表的所有行。第一行数组是随后数据行的列标题。

我想要重组data,使其以对象的映射形式存在,其中每个键是(对于此示例PARENT ITEM NUMBER列中的值。与键相关联的映射值将是一个JSON对象,其中包含当前数据行的列标题和列值的键值对。

因此,使用上面的示例,我最终会得到类似于以下内容的东西:
(我可能对JSON语法/结构有错误)

我正在寻找一种将前者转换为后者的方法。

更新

我刚刚意识到我漏掉了一个重要的细节。

此表中(表格)的数据基本上是由PARENT ITEM NUMBER列进行索引的。然而,尽管该列是主要标识符,但它在表格中并不总是唯一的。

通常情况下,存在具有相同PARENT ITEM NUMBER值的多行。每行都包含有关构成“父项”的元素的信息(将它们视为子项)。这些子项由2ND ITEM NUMBER列标识。

此外,许多子项将在表格中有自己的行,其中PARENT ITEM NUMBER是由2ND ITEM NUMBER为父项标识的子项编号。这些子项,您可能已经猜到,可以有自己的子项,依此类推。

基本上,这是多个相关数据层次结构的表格表示。一些子项将出现(被重复使用)于多个父项。

我不知道这样做会使我想要做的事情变得复杂。

更新

感谢https://stackoverflow.com/users/51591/micha%c5%82-ziober提供的初始想法。我稍微调整了它,以生成子项列表的映射。修改后的代码如下:

public String convertToJson(File jsonFile) throws IOException {
    ArrayNode arrayNode = readDataArray(jsonFile);

    List<Map<String, JsonNode>> rowMaps = convertArrayToMaps(arrayNode);

    Map<Object, List<Map<String, JsonNode>>> dataMap = rowMaps.stream()
            .collect(Collectors.groupingBy(map -> map.get("PARENT ITEM NUMBER").textValue()));
    return jsonMapper.writeValueAsString(Collections.singletonMap("data", dataMap));
}

以下是输出的示例:

{
  "data": {
    "MTDMN97PJ1A9": [     <- 1个子项
      {
        "BRANCH": "B70",
        "PARENT ITEM NUMBER": "MTDMN97PJ1A9",
        "2ND ITEM NUMBER": "MTDMN970144XO",
        "QUANTITY REQUIRED": 12.0,
        "UNIT OF MEASURE": "SY",
        "ISSUE TYPE CODE": "I",
        "LINE TYPE": "S",
        "STOCK TYPE": "M",
        "TYPE BOM": "M",
        "LINE NUMBER": 1.0,
        "OPERATING SEQUENCE": 10.0,
        "EFFECTIVE FROM DATE": "01/18/19",
        "EFFECTIVE THRU DATE": "12/31/40",
        "DRAWING NUMBER": null,
        "UNIT COST": 0.0,
        "SCRAP PERCENT": 0.0
      }
    ],
    "ZCP723A1152": [     <- 4个子项
      {
        "BRANCH": "B70",
        "PARENT ITEM NUMBER": "ZCP723A1152",
        "2ND ITEM NUMBER": "5P587UMFSD2",
        "QUANTITY REQUIRED": 2.32222,
        ...
      },
      {
        "BRANCH": "B70",
        "PARENT ITEM NUMBER": "ZCP723A1152",
        "2ND ITEM NUMBER": "8P550ZPPOOLE",
        "QUANTITY REQUIRED": 2.32222,
        ...
      },
      {
        "BRANCH": "B70",
        "PARENT ITEM NUMBER": "ZCP723A1152",
        "2ND ITEM NUMBER": "8P906WPPA3077",
        "QUANTITY REQUIRED": 4.64444,
        ...
      },
      {
        "BRANCH": "B70",
        "PARENT ITEM NUMBER": "ZCP723A1152",
        "2ND ITEM NUMBER": "8U910LKSHBL",
        "QUANTITY REQUIRED": 2.32222,
        ...
      }
    ],
    ... 更多条目
  }
}

希望这对您有所帮助。

英文:

I have data that was pulled from an Excel file into a JSON structure using Java, Apache POI and Jackson. The resulting JSON data structure looks like the following:

{
  &quot;fileName&quot; : &quot;C:\\Users\\jgagnon\\sample_data\\PDM_BOM.xlsx&quot;,
  &quot;sheets&quot; : [ {
    &quot;name&quot; : &quot;PDM_BOM&quot;,
    &quot;data&quot; : [ [ &quot;BRANCH&quot;, &quot;PARENT ITEM NUMBER&quot;, &quot;2ND ITEM NUMBER&quot;, &quot;QUANTITY REQUIRED&quot;, &quot;UNIT OF MEASURE&quot;, &quot;ISSUE TYPE CODE&quot;, &quot;LINE TYPE&quot;, &quot;STOCK TYPE&quot;, &quot;TYPE BOM&quot;, &quot;LINE NUMBER&quot;, &quot;OPERATING SEQUENCE&quot;, &quot;EFFECTIVE FROM DATE&quot;, &quot;EFFECTIVE THRU DATE&quot;, &quot;DRAWING NUMBER&quot;, &quot;UNIT COST&quot;, &quot;SCRAP PERCENT&quot; ],
		[ &quot;B20&quot;, &quot;208E8840040&quot;, &quot;5P884LPFSR2&quot;, 0.32031, &quot;LB&quot;, &quot;I&quot;, &quot;S&quot;, &quot;M&quot;, &quot;M&quot;, 1.0, 10.0, &quot;09/11/13&quot;, &quot;12/31/40&quot;, null, 0.0, 0.0 ],
		[ &quot;B20&quot;, &quot;208E8840168&quot;, &quot;5P884LPFSR2&quot;, 1.36, &quot;LB&quot;, &quot;I&quot;, &quot;S&quot;, &quot;M&quot;, &quot;M&quot;, 1.0, 10.0, &quot;02/26/08&quot;, &quot;12/31/40&quot;, null, 0.0, 0.0 ],
		[ &quot;B20&quot;, &quot;208E8840172&quot;, &quot;5P884LPFSR2&quot;, 1.3924, &quot;LB&quot;, &quot;I&quot;, &quot;S&quot;, &quot;M&quot;, &quot;M&quot;, 1.0, 10.0, &quot;02/26/08&quot;, &quot;12/31/40&quot;, null, 0.0, 0.0 ],
		[ &quot;B20&quot;, &quot;208E8840180&quot;, &quot;5P884LPFSR2&quot;, 1.4565, &quot;LB&quot;, &quot;I&quot;, &quot;S&quot;, &quot;P&quot;, &quot;M&quot;, 1.0, 10.0, &quot;03/04/09&quot;, &quot;12/31/40&quot;, null, 0.0, 0.0 ],
		[ &quot;B20&quot;, &quot;21PPH150166&quot;, &quot;8P315TPMRG&quot;, 1.39629, &quot;LB&quot;, &quot;I&quot;, &quot;S&quot;, &quot;M&quot;, &quot;M&quot;, 1.0, 10.0, &quot;03/05/18&quot;, &quot;12/31/40&quot;, null, 0.0, 0.0 ] ],
	&quot;maxCols&quot; : 16,
    &quot;maxRows&quot; : 14996
  } ]
}

In the data element, there is essentially an array of arrays, representing all of the rows from a worksheet. The first row array is the column headers for the data rows that follow.

I'd like to be able to restructure the data so that it's in the form of a map of objects, where each key is (for this example) the value in the PARENT ITEM NUMBER column. The map value associated with the key would be a JSON object consisting of the key/value pairs of column header and column value for the current data row.

So, using the example above, I'd end up with something like this:
(I may have the JSON syntax/structuring incorrect)

{
  &quot;data&quot;: {
    &quot;208E8840040&quot;: {
	  &quot;BRANCH&quot;: &quot;B20&quot;,
	  &quot;PARENT ITEM NUMBER&quot;: &quot;208E8840040&quot;,
	  &quot;2ND ITEM NUMBER&quot;: &quot;5P884LPFSR2&quot;,
	  &quot;QUANTITY REQUIRED&quot;: 0.32031,
	  &quot;UNIT OF MEASURE&quot;: &quot;LB&quot;,
	  &quot;ISSUE TYPE CODE&quot;: &quot;I&quot;,
	  &quot;LINE TYPE&quot;: &quot;S&quot;,
	  &quot;STOCK TYPE&quot;: &quot;M&quot;,
	  &quot;TYPE BOM&quot;: &quot;M&quot;, 
	  &quot;LINE NUMBER&quot;: 1.0, 
	  &quot;OPERATING SEQUENCE&quot;: 10.0, 
	  &quot;EFFECTIVE FROM DATE&quot;: &quot;09/11/13&quot;, 
	  &quot;EFFECTIVE THRU DATE&quot;: &quot;12/31/40&quot;, 
	  &quot;DRAWING NUMBER&quot;: null, 
	  &quot;UNIT COST&quot;: 0.0, 
	  &quot;SCRAP PERCENT&quot;: 0.0
	},
    &quot;208E8840168&quot;: {
      &quot;BRANCH&quot;: &quot;B20&quot;,
      &quot;PARENT ITEM NUMBER&quot;: &quot;208E8840168&quot;,
      &quot;2ND ITEM NUMBER&quot;: &quot;5P884LPFSR2&quot;,
      &quot;QUANTITY REQUIRED&quot;: 1.36,
      ...
    },
    ...
  }
}

I'm looking for a way to convert the former into the latter.

UPDATE:

I just realized I left out an important detail.

The data in this sheet (table), is essentially keyed by the PARENT ITEM NUMBER column. However, although that column is the primary identifier, it is not always unique in the table.

There are often cases, where there are multiple rows with the same value for PARENT ITEM NUMBER. Each of these rows contains information about elements that make up the "parent" (think of them as child items). These child items are identified by the 2ND ITEM NUMBER column.

Moreover, many child items will have their own row in the table where the PARENT ITEM NUMBER is the child item number identified by 2ND ITEM NUMBER for the parent. These child items, as you may have guessed, can have their own child items, and so on.

Basically, this is a tabular representation of multiple hierarchies of related data. Some child items will appear (are re-used) for multiple parent items.

I don't know in what ways this complicates what I'm trying to do.

UPDATE:

Thanks to https://stackoverflow.com/users/51591/micha%c5%82-ziober for the initial idea. I adapted it slightly to yield a map of lists of child items. The modified code follows:

  public String convertToJson(File jsonFile) throws IOException {
	ArrayNode arrayNode = readDataArray(jsonFile);

	List&lt;Map&lt;String, JsonNode&gt;&gt; rowMaps = convertArrayToMaps(arrayNode);

	Map&lt;Object, List&lt;Map&lt;String, JsonNode&gt;&gt;&gt; dataMap = rowMaps.stream()
		.collect(Collectors.groupingBy(map -&gt; map.get(&quot;PARENT ITEM NUMBER&quot;).textValue()));
	return jsonMapper.writeValueAsString(Collections.singletonMap(&quot;data&quot;, dataMap));
  }

Here's an example of the output:

{
  &quot;data&quot; : {
	&quot;MTDMN97PJ1A9&quot; : [ {	&lt;- 1 child
	  &quot;BRANCH&quot; : &quot;B70&quot;,
	  &quot;PARENT ITEM NUMBER&quot; : &quot;MTDMN97PJ1A9&quot;,
	  &quot;2ND ITEM NUMBER&quot; : &quot;MTDMN970144XO&quot;,
	  &quot;QUANTITY REQUIRED&quot; : 12.0,
	  &quot;UNIT OF MEASURE&quot; : &quot;SY&quot;,
	  &quot;ISSUE TYPE CODE&quot; : &quot;I&quot;,
	  &quot;LINE TYPE&quot; : &quot;S&quot;,
	  &quot;STOCK TYPE&quot; : &quot;M&quot;,
	  &quot;TYPE BOM&quot; : &quot;M&quot;,
	  &quot;LINE NUMBER&quot; : 1.0,
	  &quot;OPERATING SEQUENCE&quot; : 10.0,
	  &quot;EFFECTIVE FROM DATE&quot; : &quot;01/18/19&quot;,
	  &quot;EFFECTIVE THRU DATE&quot; : &quot;12/31/40&quot;,
	  &quot;DRAWING NUMBER&quot; : null,
	  &quot;UNIT COST&quot; : 0.0,
	  &quot;SCRAP PERCENT&quot; : 0.0
	} ],
	&quot;ZCP723A1152&quot; : [ {		&lt;- 4 children
	  &quot;BRANCH&quot; : &quot;B70&quot;,
	  &quot;PARENT ITEM NUMBER&quot; : &quot;ZCP723A1152&quot;,
	  &quot;2ND ITEM NUMBER&quot; : &quot;5P587UMFSD2&quot;,
	  &quot;QUANTITY REQUIRED&quot; : 2.32222,
	  &quot;UNIT OF MEASURE&quot; : &quot;LB&quot;,
	  &quot;ISSUE TYPE CODE&quot; : &quot;I&quot;,
	  &quot;LINE TYPE&quot; : &quot;S&quot;,
	  &quot;STOCK TYPE&quot; : &quot;M&quot;,
	  &quot;TYPE BOM&quot; : &quot;M&quot;,
	  &quot;LINE NUMBER&quot; : 3.0,
	  &quot;OPERATING SEQUENCE&quot; : 10.0,
	  &quot;EFFECTIVE FROM DATE&quot; : &quot;05/15/17&quot;,
	  &quot;EFFECTIVE THRU DATE&quot; : &quot;12/31/40&quot;,
	  &quot;DRAWING NUMBER&quot; : null,
	  &quot;UNIT COST&quot; : 0.0,
	  &quot;SCRAP PERCENT&quot; : 0.0
	}, {
	  &quot;BRANCH&quot; : &quot;B70&quot;,
	  &quot;PARENT ITEM NUMBER&quot; : &quot;ZCP723A1152&quot;,
	  &quot;2ND ITEM NUMBER&quot; : &quot;8P550ZPPOOLE&quot;,
	  &quot;QUANTITY REQUIRED&quot; : 2.32222,
	  &quot;UNIT OF MEASURE&quot; : &quot;LB&quot;,
	  &quot;ISSUE TYPE CODE&quot; : &quot;I&quot;,
	  &quot;LINE TYPE&quot; : &quot;S&quot;,
	  &quot;STOCK TYPE&quot; : &quot;M&quot;,
	  &quot;TYPE BOM&quot; : &quot;M&quot;,
	  &quot;LINE NUMBER&quot; : 1.0,
	  &quot;OPERATING SEQUENCE&quot; : 10.0,
	  &quot;EFFECTIVE FROM DATE&quot; : &quot;05/15/17&quot;,
	  &quot;EFFECTIVE THRU DATE&quot; : &quot;12/31/40&quot;,
	  &quot;DRAWING NUMBER&quot; : null,
	  &quot;UNIT COST&quot; : 0.0,
	  &quot;SCRAP PERCENT&quot; : 0.0
	}, {
	  &quot;BRANCH&quot; : &quot;B70&quot;,
	  &quot;PARENT ITEM NUMBER&quot; : &quot;ZCP723A1152&quot;,
	  &quot;2ND ITEM NUMBER&quot; : &quot;8P906WPPA3077&quot;,
	  &quot;QUANTITY REQUIRED&quot; : 4.64444,
	  &quot;UNIT OF MEASURE&quot; : &quot;LB&quot;,
	  &quot;ISSUE TYPE CODE&quot; : &quot;I&quot;,
	  &quot;LINE TYPE&quot; : &quot;S&quot;,
	  &quot;STOCK TYPE&quot; : &quot;M&quot;,
	  &quot;TYPE BOM&quot; : &quot;M&quot;,
	  &quot;LINE NUMBER&quot; : 2.0,
	  &quot;OPERATING SEQUENCE&quot; : 10.0,
	  &quot;EFFECTIVE FROM DATE&quot; : &quot;05/15/17&quot;,
	  &quot;EFFECTIVE THRU DATE&quot; : &quot;12/31/40&quot;,
	  &quot;DRAWING NUMBER&quot; : null,
	  &quot;UNIT COST&quot; : 0.0,
	  &quot;SCRAP PERCENT&quot; : 0.0
	}, {
	  &quot;BRANCH&quot; : &quot;B70&quot;,
	  &quot;PARENT ITEM NUMBER&quot; : &quot;ZCP723A1152&quot;,
	  &quot;2ND ITEM NUMBER&quot; : &quot;8U910LKSHBL&quot;,
	  &quot;QUANTITY REQUIRED&quot; : 2.32222,
	  &quot;UNIT OF MEASURE&quot; : &quot;LB&quot;,
	  &quot;ISSUE TYPE CODE&quot; : &quot;I&quot;,
	  &quot;LINE TYPE&quot; : &quot;S&quot;,
	  &quot;STOCK TYPE&quot; : &quot;M&quot;,
	  &quot;TYPE BOM&quot; : &quot;M&quot;,
	  &quot;LINE NUMBER&quot; : 4.01,
	  &quot;OPERATING SEQUENCE&quot; : 10.0,
	  &quot;EFFECTIVE FROM DATE&quot; : &quot;12/13/17&quot;,
	  &quot;EFFECTIVE THRU DATE&quot; : &quot;12/31/40&quot;,
	  &quot;DRAWING NUMBER&quot; : null,
	  &quot;UNIT COST&quot; : 0.0,
	  &quot;SCRAP PERCENT&quot; : 0.0
	} ],
	... many more entries
}

答案1

得分: 1

以下是翻译后的代码:

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.databind.node.ArrayNode;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;

public class Excel2JonsApp {
    public static void main(String[] args) throws IOException {
        File jsonFile = new File("./resource/test.json").getAbsoluteFile();

        Excel2JsonMapper mapper = new Excel2JsonMapper();
        String json = mapper.convertToJson(jsonFile);
        System.out.println(json);
    }
}

class Excel2JsonMapper {
    private final ObjectMapper jsonMapper;

    Excel2JsonMapper() {
        this.jsonMapper = createJsonMapper();
    }

    private ObjectMapper createJsonMapper() {
        ObjectMapper mapper = new ObjectMapper();
        mapper.enable(SerializationFeature.INDENT_OUTPUT);

        return mapper;
    }

    String convertToJson(File jsonFile) throws IOException {
        ArrayNode arrayNode = readDataArray(jsonFile);
        Map<Object, Map<String, JsonNode>> dataMap = convertArrayToMaps(arrayNode)
                .stream()
                .collect(Collectors.toMap(
                        map -> map.get("PARENT ITEM NUMBER").textValue(), //key generator function
                        Function.identity()));

        return jsonMapper.writeValueAsString(Collections.singletonMap("data", dataMap));
    }

    private List<Map<String, JsonNode>> convertArrayToMaps(ArrayNode arrayNode) {
        ArrayNode names = (ArrayNode) arrayNode.get(0);

        Iterator<JsonNode> iterator = arrayNode.iterator();
        iterator.next();// skip names

        List<Map<String, JsonNode>> list = new ArrayList<>();
        while (iterator.hasNext()) {
            ArrayNode values = (ArrayNode) iterator.next();
            Map<String, JsonNode> map = new LinkedHashMap<>();
            for (int i = 0; i < names.size(); i++) {
                map.put(names.get(i).textValue(), values.get(i));
            }
            list.add(map);
        }
        return list;
    }

    private ArrayNode readDataArray(File jsonFile) throws IOException {
        JsonNode root = jsonMapper.readTree(jsonFile);
        return (ArrayNode) root.at("/sheets/0/data");
    }
}

以上是你提供的代码的中文翻译部分。

英文:

You can read whole JSON payload as JsonNode and retrieve data property which is an array. If we can assume that always first element is array of names and all other elements are equal in size you can create Map manually and serialise it back to JSON. One tricky part is how to generate unique key value for the result JSON. Example code could look like below:

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.databind.node.ArrayNode;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;
public class Excel2JonsApp {
public static void main(String[] args) throws IOException {
File jsonFile = new File(&quot;./resource/test.json&quot;).getAbsoluteFile();
Excel2JsonMapper mapper = new Excel2JsonMapper();
String json = mapper.convertToJson(jsonFile);
System.out.println(json);
}
}
class Excel2JsonMapper {
private final ObjectMapper jsonMapper;
Excel2JsonMapper() {
this.jsonMapper = createJsonMapper();
}
private ObjectMapper createJsonMapper() {
ObjectMapper mapper = new ObjectMapper();
mapper.enable(SerializationFeature.INDENT_OUTPUT);
return mapper;
}
String convertToJson(File jsonFile) throws IOException {
ArrayNode arrayNode = readDataArray(jsonFile);
Map&lt;Object, Map&lt;String, JsonNode&gt;&gt; dataMap = convertArrayToMaps(arrayNode)
.stream()
.collect(Collectors.toMap(
map -&gt; map.get(&quot;PARENT ITEM NUMBER&quot;).textValue(), //key generator function
Function.identity()));
return jsonMapper.writeValueAsString(Collections.singletonMap(&quot;data&quot;, dataMap));
}
private List&lt;Map&lt;String, JsonNode&gt;&gt; convertArrayToMaps(ArrayNode arrayNode) {
ArrayNode names = (ArrayNode) arrayNode.get(0);
Iterator&lt;JsonNode&gt; iterator = arrayNode.iterator();
iterator.next();// skip names
List&lt;Map&lt;String, JsonNode&gt;&gt; list = new ArrayList&lt;&gt;();
while (iterator.hasNext()) {
ArrayNode values = (ArrayNode) iterator.next();
Map&lt;String, JsonNode&gt; map = new LinkedHashMap&lt;&gt;();
for (int i = 0; i &lt; names.size(); i++) {
map.put(names.get(i).textValue(), values.get(i));
}
list.add(map);
}
return list;
}
private ArrayNode readDataArray(File jsonFile) throws IOException {
JsonNode root = jsonMapper.readTree(jsonFile);
return (ArrayNode) root.at(&quot;/sheets/0/data&quot;);
}
}

Above code prints:

{
&quot;data&quot; : {
&quot;208E8840168&quot; : {
&quot;BRANCH&quot; : &quot;B20&quot;,
&quot;PARENT ITEM NUMBER&quot; : &quot;208E8840168&quot;,
&quot;2ND ITEM NUMBER&quot; : &quot;5P884LPFSR2&quot;,
&quot;QUANTITY REQUIRED&quot; : 1.36,
&quot;UNIT OF MEASURE&quot; : &quot;LB&quot;,
&quot;ISSUE TYPE CODE&quot; : &quot;I&quot;,
&quot;LINE TYPE&quot; : &quot;S&quot;,
&quot;STOCK TYPE&quot; : &quot;M&quot;,
&quot;TYPE BOM&quot; : &quot;M&quot;,
&quot;LINE NUMBER&quot; : 1.0,
&quot;OPERATING SEQUENCE&quot; : 10.0,
&quot;EFFECTIVE FROM DATE&quot; : &quot;02/26/08&quot;,
&quot;EFFECTIVE THRU DATE&quot; : &quot;12/31/40&quot;,
&quot;DRAWING NUMBER&quot; : null,
&quot;UNIT COST&quot; : 0.0,
&quot;SCRAP PERCENT&quot; : 0.0
},
&quot;21PPH150166&quot; : {
&quot;BRANCH&quot; : &quot;B20&quot;,
&quot;PARENT ITEM NUMBER&quot; : &quot;21PPH150166&quot;,
&quot;2ND ITEM NUMBER&quot; : &quot;8P315TPMRG&quot;,
&quot;QUANTITY REQUIRED&quot; : 1.39629,
&quot;UNIT OF MEASURE&quot; : &quot;LB&quot;,
&quot;ISSUE TYPE CODE&quot; : &quot;I&quot;,
&quot;LINE TYPE&quot; : &quot;S&quot;,
&quot;STOCK TYPE&quot; : &quot;M&quot;,
&quot;TYPE BOM&quot; : &quot;M&quot;,
&quot;LINE NUMBER&quot; : 1.0,
&quot;OPERATING SEQUENCE&quot; : 10.0,
&quot;EFFECTIVE FROM DATE&quot; : &quot;03/05/18&quot;,
&quot;EFFECTIVE THRU DATE&quot; : &quot;12/31/40&quot;,
&quot;DRAWING NUMBER&quot; : null,
&quot;UNIT COST&quot; : 0.0,
&quot;SCRAP PERCENT&quot; : 0.0
},
&quot;208E8840180&quot; : {
&quot;BRANCH&quot; : &quot;B20&quot;,
&quot;PARENT ITEM NUMBER&quot; : &quot;208E8840180&quot;,
&quot;2ND ITEM NUMBER&quot; : &quot;5P884LPFSR2&quot;,
&quot;QUANTITY REQUIRED&quot; : 1.4565,
&quot;UNIT OF MEASURE&quot; : &quot;LB&quot;,
&quot;ISSUE TYPE CODE&quot; : &quot;I&quot;,
&quot;LINE TYPE&quot; : &quot;S&quot;,
&quot;STOCK TYPE&quot; : &quot;P&quot;,
&quot;TYPE BOM&quot; : &quot;M&quot;,
&quot;LINE NUMBER&quot; : 1.0,
&quot;OPERATING SEQUENCE&quot; : 10.0,
&quot;EFFECTIVE FROM DATE&quot; : &quot;03/04/09&quot;,
&quot;EFFECTIVE THRU DATE&quot; : &quot;12/31/40&quot;,
&quot;DRAWING NUMBER&quot; : null,
&quot;UNIT COST&quot; : 0.0,
&quot;SCRAP PERCENT&quot; : 0.0
},
&quot;208E8840172&quot; : {
&quot;BRANCH&quot; : &quot;B20&quot;,
&quot;PARENT ITEM NUMBER&quot; : &quot;208E8840172&quot;,
&quot;2ND ITEM NUMBER&quot; : &quot;5P884LPFSR2&quot;,
&quot;QUANTITY REQUIRED&quot; : 1.3924,
&quot;UNIT OF MEASURE&quot; : &quot;LB&quot;,
&quot;ISSUE TYPE CODE&quot; : &quot;I&quot;,
&quot;LINE TYPE&quot; : &quot;S&quot;,
&quot;STOCK TYPE&quot; : &quot;M&quot;,
&quot;TYPE BOM&quot; : &quot;M&quot;,
&quot;LINE NUMBER&quot; : 1.0,
&quot;OPERATING SEQUENCE&quot; : 10.0,
&quot;EFFECTIVE FROM DATE&quot; : &quot;02/26/08&quot;,
&quot;EFFECTIVE THRU DATE&quot; : &quot;12/31/40&quot;,
&quot;DRAWING NUMBER&quot; : null,
&quot;UNIT COST&quot; : 0.0,
&quot;SCRAP PERCENT&quot; : 0.0
},
&quot;208E8840040&quot; : {
&quot;BRANCH&quot; : &quot;B20&quot;,
&quot;PARENT ITEM NUMBER&quot; : &quot;208E8840040&quot;,
&quot;2ND ITEM NUMBER&quot; : &quot;5P884LPFSR2&quot;,
&quot;QUANTITY REQUIRED&quot; : 0.32031,
&quot;UNIT OF MEASURE&quot; : &quot;LB&quot;,
&quot;ISSUE TYPE CODE&quot; : &quot;I&quot;,
&quot;LINE TYPE&quot; : &quot;S&quot;,
&quot;STOCK TYPE&quot; : &quot;M&quot;,
&quot;TYPE BOM&quot; : &quot;M&quot;,
&quot;LINE NUMBER&quot; : 1.0,
&quot;OPERATING SEQUENCE&quot; : 10.0,
&quot;EFFECTIVE FROM DATE&quot; : &quot;09/11/13&quot;,
&quot;EFFECTIVE THRU DATE&quot; : &quot;12/31/40&quot;,
&quot;DRAWING NUMBER&quot; : null,
&quot;UNIT COST&quot; : 0.0,
&quot;SCRAP PERCENT&quot; : 0.0
}
}
}

huangapple
  • 本文由 发表于 2020年9月12日 21:44:38
  • 转载请务必保留本文链接:https://go.coder-hub.com/63860944.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定