|
@@ -631,7 +631,10 @@ public class ExcelUtil {
|
|
|
//处理数据行
|
|
|
for(int i=2;i<=sheet.getLastRowNum();i++){
|
|
|
Row row = sheet.getRow(i);
|
|
|
+ //判断excel的cell类型
|
|
|
+ row.getCell(2).setCellType(Cell.CELL_TYPE_STRING);
|
|
|
String materialCode = row.getCell(2).getStringCellValue();
|
|
|
+
|
|
|
if(materialCode!=null&&!materialCode.isEmpty()){
|
|
|
Cell standardCell = row.createCell(14);
|
|
|
standardCell.setCellValue(standardMap.get(materialCode).getPurchaseStandardId());
|