|
|
@ -249,8 +249,10 @@ public class ExcelServiceImpl implements ExcelService { |
|
|
map.put("version", version); |
|
|
map.put("version", version); |
|
|
List<Material> materialPByCondition = materialService.findMaterialPByConditionForTable(map); |
|
|
List<Material> materialPByCondition = materialService.findMaterialPByConditionForTable(map); |
|
|
if (materialPByCondition.size() == 0) { |
|
|
if (materialPByCondition.size() == 0) { |
|
|
|
|
|
Material materialByCode = null; |
|
|
Material materialByCode = materialService.findMaterialByCode(excelInfoByInventory.getCode()); |
|
|
if (excelInfoByInventory.getCode() != null && !"".equals(excelInfoByInventory.getCode())) { |
|
|
|
|
|
materialByCode = materialService.findMaterialByCode(excelInfoByInventory.getCode()); |
|
|
|
|
|
} |
|
|
if (materialByCode == null) { |
|
|
if (materialByCode == null) { |
|
|
// 如果没有当前物料
|
|
|
// 如果没有当前物料
|
|
|
String s = dataIndex.get(i); |
|
|
String s = dataIndex.get(i); |
|
|
@ -311,8 +313,7 @@ public class ExcelServiceImpl implements ExcelService { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Material material = materialService.findMaterialByMnameAndVersion(insert); |
|
|
Material material = materialService.findMaterialByMnameAndVersion(insert); |
|
|
if(material == null) |
|
|
if (material == null) { |
|
|
{ |
|
|
|
|
|
material = materialService.findMaterialByCode(excelInfoByInventory.getCode()); |
|
|
material = materialService.findMaterialByCode(excelInfoByInventory.getCode()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|