This commit is contained in:
parent
fb06f5ffaa
commit
318ffb1919
|
@ -225,6 +225,12 @@ public class MaterialInventoryUtilsExt {
|
||||||
for (Map.Entry<String, BigDecimal> entry : materialQtyMap.entrySet()) {
|
for (Map.Entry<String, BigDecimal> entry : materialQtyMap.entrySet()) {
|
||||||
String materialKey = entry.getKey();
|
String materialKey = entry.getKey();
|
||||||
String[] keys = materialKey.split("\\|");
|
String[] keys = materialKey.split("\\|");
|
||||||
|
|
||||||
|
if (keys.length < 4) {
|
||||||
|
log.error("Invalid material key format: " + materialKey);
|
||||||
|
continue; // 跳过无效数据
|
||||||
|
}
|
||||||
|
|
||||||
String matId = keys[0];
|
String matId = keys[0];
|
||||||
String modelnum = keys[1];
|
String modelnum = keys[1];
|
||||||
String lot = keys[2];
|
String lot = keys[2];
|
||||||
|
|
Loading…
Reference in New Issue