|
@@ -66,52 +66,55 @@ public class MethodGoodsTransitService {
|
|
|
tbGoodsTransit.setPrice(cell6.getNumericCellValue());
|
|
|
|
|
|
if(row.getCell(7) != null && !row.getCell(7).toString().trim().equals(""))
|
|
|
- tbGoodsTransit.setPlaceOrigin(row.getCell(7).getStringCellValue());
|
|
|
+ tbGoodsTransit.setDeclareOdd(row.getCell(7).getStringCellValue());
|
|
|
|
|
|
if(row.getCell(8) != null && !row.getCell(8).toString().trim().equals(""))
|
|
|
- tbGoodsTransit.setDescription(row.getCell(8).getStringCellValue() );
|
|
|
+ tbGoodsTransit.setPlaceOrigin(row.getCell(8).getStringCellValue());
|
|
|
|
|
|
- HSSFCell cell9 = row.getCell(9);
|
|
|
+ if(row.getCell(9) != null && !row.getCell(9).toString().trim().equals(""))
|
|
|
+ tbGoodsTransit.setDescription(row.getCell(9).getStringCellValue() );
|
|
|
+
|
|
|
+ HSSFCell cell9 = row.getCell(10);
|
|
|
if (cell9 != null && (cell9.getCellType() == CellType.NUMERIC || cell9.getCellType() == CellType.FORMULA))
|
|
|
tbGoodsTransit.setStock((int)cell9.getNumericCellValue());
|
|
|
|
|
|
- HSSFCell cell10 = row.getCell(10);
|
|
|
+ HSSFCell cell10 = row.getCell(11);
|
|
|
if (cell10 != null && (cell10.getCellType() == CellType.NUMERIC || cell10.getCellType() == CellType.FORMULA))
|
|
|
tbGoodsTransit.setGoodsStatus((int)cell10.getNumericCellValue());
|
|
|
|
|
|
- HSSFCell cell11 = row.getCell(11);
|
|
|
+ HSSFCell cell11 = row.getCell(12);
|
|
|
if (cell11 != null && (cell11.getCellType() == CellType.NUMERIC || cell11.getCellType() == CellType.FORMULA))
|
|
|
tbGoodsTransit.setAuditStatus((int) cell11.getNumericCellValue());
|
|
|
|
|
|
- HSSFCell cell2 = row.getCell(12);
|
|
|
+ HSSFCell cell2 = row.getCell(13);
|
|
|
if (cell2 != null && cell2.getCellType() == CellType.NUMERIC && DateUtil.isCellDateFormatted(cell2))
|
|
|
- if(row.getCell(12) != null && !row.getCell(12).toString().trim().equals(""))
|
|
|
+ if(row.getCell(13) != null && !row.getCell(13).toString().trim().equals(""))
|
|
|
tbGoodsTransit.setAuditTime(cell2.getDateCellValue());
|
|
|
|
|
|
- if(row.getCell(13) != null && !row.getCell(13).toString().trim().equals(""))
|
|
|
- tbGoodsTransit.setRemark(row.getCell(13).getStringCellValue());
|
|
|
+ if(row.getCell(14) != null && !row.getCell(14).toString().trim().equals(""))
|
|
|
+ tbGoodsTransit.setRemark(row.getCell(14).getStringCellValue());
|
|
|
|
|
|
//公共字段
|
|
|
- HSSFCell cell4 = row.getCell(14);
|
|
|
+ HSSFCell cell4 = row.getCell(15);
|
|
|
if (cell4 != null && cell4.getCellType() == CellType.NUMERIC && DateUtil.isCellDateFormatted(cell4)) {
|
|
|
tbGoodsTransit.setCreateTime(cell4.getDateCellValue());
|
|
|
}
|
|
|
|
|
|
- if(row.getCell(15) != null && !row.getCell(15).toString().trim().equals(""))
|
|
|
- tbGoodsTransit.setCreateBy(row.getCell(15).getStringCellValue());
|
|
|
-
|
|
|
if(row.getCell(16) != null && !row.getCell(16).toString().trim().equals(""))
|
|
|
- tbGoodsTransit.setCreateName(row.getCell(16).getStringCellValue());
|
|
|
+ tbGoodsTransit.setCreateBy(row.getCell(16).getStringCellValue());
|
|
|
|
|
|
if(row.getCell(17) != null && !row.getCell(17).toString().trim().equals(""))
|
|
|
- tbGoodsTransit.setUpdateBy(row.getCell(17).getStringCellValue());
|
|
|
+ tbGoodsTransit.setCreateName(row.getCell(17).getStringCellValue());
|
|
|
|
|
|
if(row.getCell(18) != null && !row.getCell(18).toString().trim().equals(""))
|
|
|
- tbGoodsTransit.setUpdateName(row.getCell(18).getStringCellValue());
|
|
|
+ tbGoodsTransit.setUpdateBy(row.getCell(18).getStringCellValue());
|
|
|
+
|
|
|
+ if(row.getCell(19) != null && !row.getCell(19).toString().trim().equals(""))
|
|
|
+ tbGoodsTransit.setUpdateName(row.getCell(19).getStringCellValue());
|
|
|
|
|
|
- HSSFCell cell3 = row.getCell(19);
|
|
|
+ HSSFCell cell3 = row.getCell(20);
|
|
|
if (cell3 != null && cell3.getCellType() == CellType.NUMERIC && DateUtil.isCellDateFormatted(cell3)) {
|
|
|
- tbGoodsTransit.setUpdateTime(row.getCell(19).getDateCellValue());
|
|
|
+ tbGoodsTransit.setUpdateTime(cell3.getDateCellValue());
|
|
|
}
|
|
|
//删除状态,默认可用
|
|
|
tbGoodsTransit.setDeleteStatus(1);
|