|
|
|
@ -554,7 +554,7 @@ public class IfsInventoryInitServiceImpl implements IfsInventoryInitService { |
|
|
|
* <li>R列: 最大直径max -> diameter(直径mm)</li> |
|
|
|
* <li>S列: HU -> handling_unit_flag(HU标志)</li> |
|
|
|
* <li>T列: 密封性 -> is_commonly_used(是否常用)</li> |
|
|
|
* <li>U列: A02型号 -> (暂不处理)</li> |
|
|
|
* <li>U列: A02型号 -> pallet_type(托盘类型)</li> |
|
|
|
* </ul> |
|
|
|
* <p><b>默认值:</b>print_qty=0, inventory_stock_ifs.length=0, inventory_stock_ifs.width=0</p> |
|
|
|
* <p><b>注意:</b></p> |
|
|
|
@ -617,7 +617,7 @@ public class IfsInventoryInitServiceImpl implements IfsInventoryInitService { |
|
|
|
String diameterStr = getValue(data, 17); // R列: 最大直径max |
|
|
|
String handlingUnitFlag = getValue(data, 18); // S列: HU |
|
|
|
String isCommonlyUsed = getValue(data, 19); // T列: 密封性 |
|
|
|
// U列(20): A02型号 - 暂不处理 |
|
|
|
String palletType = getValue(data, 20); // U列: A02型号(托盘类型) |
|
|
|
|
|
|
|
// 检查是否为空行(所有必填字段都为空) |
|
|
|
if (StringUtils.isBlank(rowSite) && StringUtils.isBlank(partNo) |
|
|
|
@ -697,7 +697,9 @@ public class IfsInventoryInitServiceImpl implements IfsInventoryInitService { |
|
|
|
|| StringUtils.isNotBlank(widthStr) |
|
|
|
|| StringUtils.isNotBlank(heightStr) |
|
|
|
|| StringUtils.isNotBlank(diameterStr) |
|
|
|
|| StringUtils.isNotBlank(isCommonlyUsed); |
|
|
|
|| StringUtils.isNotBlank(handlingUnitFlag) |
|
|
|
|| StringUtils.isNotBlank(isCommonlyUsed) |
|
|
|
|| StringUtils.isNotBlank(palletType); |
|
|
|
|
|
|
|
if (hasPartAttributeData) { |
|
|
|
PartAttribute partAttribute = new PartAttribute(); |
|
|
|
@ -708,9 +710,11 @@ public class IfsInventoryInitServiceImpl implements IfsInventoryInitService { |
|
|
|
partAttribute.setWeight(parseBigDecimal(weightStr)); |
|
|
|
partAttribute.setLength(parseBigDecimal(lengthStr)); |
|
|
|
partAttribute.setWidth(parseBigDecimal(widthStr)); |
|
|
|
partAttribute.setHeight(parseBigDecimal(heightStr)); |
|
|
|
partAttribute.setHeight(parseBigDecimal(heightStr)!=null ? parseBigDecimal(heightStr) : BigDecimal.ZERO); // 高度不能为空,默认0 |
|
|
|
partAttribute.setDiameter(parseBigDecimal(diameterStr)); |
|
|
|
partAttribute.setHandlingUnitFlag(normalizeYN(handlingUnitFlag)); |
|
|
|
partAttribute.setIsCommonlyUsed(normalizeYN(isCommonlyUsed)); |
|
|
|
partAttribute.setPalletType(palletType); |
|
|
|
|
|
|
|
rowData.put("part_attribute", partAttribute); |
|
|
|
} |
|
|
|
@ -823,9 +827,7 @@ public class IfsInventoryInitServiceImpl implements IfsInventoryInitService { |
|
|
|
try { |
|
|
|
// 检查是否已存在 |
|
|
|
PartAttribute existing = partAttributeMapper.getPartAttributeByKey( |
|
|
|
partAttribute.getSite(), |
|
|
|
partAttribute.getPartNo() |
|
|
|
); |
|
|
|
partAttribute.getSite(), partAttribute.getPartNo(), partAttribute.getHeight()); |
|
|
|
|
|
|
|
if (existing != null) { |
|
|
|
log.debug("料件属性已存在,跳过: site={}, partNo={}", |
|
|
|
|