57325 法规技术评估-条款评估-导入条款处理导入数字带小数点问题。
This commit is contained in:
+24
-2
@@ -410,9 +410,31 @@ public class LawsTechnologyEvaluationEOServiceImpl extends ServiceImpl<LawsTechn
|
||||
for (int i = 0; i < rowNos ; i++) {
|
||||
Row row = sheet.getRow(i + 1);
|
||||
if(row != null){
|
||||
String itemNum = row.getCell(0, Row.MissingCellPolicy.CREATE_NULL_AS_BLANK).toString();
|
||||
String itemNum = "";
|
||||
Cell itemNumCell = row.getCell(0);
|
||||
if(itemNumCell != null){
|
||||
itemNumCell.setCellType(CellType.STRING);
|
||||
itemNum = itemNumCell.toString();
|
||||
}
|
||||
|
||||
String itemName = "";
|
||||
Cell itemNameCell = row.getCell(1);
|
||||
if(itemNameCell != null){
|
||||
itemNameCell.setCellType(CellType.STRING);
|
||||
itemName = itemNameCell.toString();
|
||||
}
|
||||
|
||||
String itemContents = "";
|
||||
Cell itemContentsCell = row.getCell(2);
|
||||
if(itemContentsCell != null){
|
||||
itemContentsCell.setCellType(CellType.STRING);
|
||||
itemContents = itemContentsCell.toString();
|
||||
}
|
||||
|
||||
/*String itemNum = row.getCell(0, Row.MissingCellPolicy.CREATE_NULL_AS_BLANK).toString();
|
||||
String itemName = row.getCell(1, Row.MissingCellPolicy.CREATE_NULL_AS_BLANK).toString();
|
||||
String itemContents = row.getCell(2, Row.MissingCellPolicy.CREATE_NULL_AS_BLANK).toString();
|
||||
String itemContents = row.getCell(2, Row.MissingCellPolicy.CREATE_NULL_AS_BLANK).toString();*/
|
||||
|
||||
Map<String,Object> itemInfoMap = new HashMap<>();
|
||||
String itemId = UUID.randomUUID().toString().replace("-", "");
|
||||
itemInfoMap.put("itemId",itemId);
|
||||
|
||||
Reference in New Issue
Block a user