|
|
|
@ -314,7 +314,12 @@ public class ExcelServiceImpl implements ExcelService { |
|
|
|
|
|
|
|
Material material = materialService.findMaterialByMnameAndVersion(insert); |
|
|
|
if (material == null) { |
|
|
|
material = materialService.findMaterialByCode(excelInfoByInventory.getCode()); |
|
|
|
String code = excelInfoByInventory.getCode(); |
|
|
|
if (code != null && !"".equals(code)) { |
|
|
|
material = materialService.findMaterialByCode(code); |
|
|
|
}else{ |
|
|
|
material = materialMapper.findMaterialByCondition(insert).get(0); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 添加库存记录
|
|
|
|
|