Ver código fonte

导入报错 款号单元格格式

liuchaohui 1 ano atrás
pai
commit
639860bb0b

+ 3 - 0
jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/oa/controller/SyCarryController.java

@@ -254,6 +254,9 @@ public class SyCarryController {
 					break;
 				}
 				syCarryB.setOrderDate(row.getCell(0).getDateCellValue());
+			 	if(row.getCell(1)!=null){
+					row.getCell(1).setCellType(Cell.CELL_TYPE_STRING);
+				}
 			 	syCarryB.setInvoiceNo(row.getCell(1)==null?"":row.getCell(1).getStringCellValue());
 			 	syCarryB.setSaleInvoiceNo(row.getCell(2)==null?"":row.getCell(2).getStringCellValue());
 			 	syCarryB.setAllNum(row.getCell(3)==null?0:row.getCell(3).getNumericCellValue());