法规技术评估-条款导入完善。
This commit is contained in:
+12
-11
@@ -394,17 +394,18 @@ public class LawsTechnologyEvaluationEOServiceImpl extends ServiceImpl<LawsTechn
|
|||||||
int rowNos = sheet.getPhysicalNumberOfRows();// 得到excel的总记录条数
|
int rowNos = sheet.getPhysicalNumberOfRows();// 得到excel的总记录条数
|
||||||
for (int i = 0; i < rowNos ; i++) {
|
for (int i = 0; i < rowNos ; i++) {
|
||||||
Row row = sheet.getRow(i + 1);
|
Row row = sheet.getRow(i + 1);
|
||||||
|
if(row != null){
|
||||||
String itemNum = row.getCell(0, Row.MissingCellPolicy.CREATE_NULL_AS_BLANK).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 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<>();
|
Map<String,Object> itemInfoMap = new HashMap<>();
|
||||||
String itemId = UUID.randomUUID().toString().replace("-", "");
|
String itemId = UUID.randomUUID().toString().replace("-", "");
|
||||||
itemInfoMap.put("itemId",itemId);
|
itemInfoMap.put("itemId",itemId);
|
||||||
itemInfoMap.put("itemNum",itemNum);
|
itemInfoMap.put("itemNum",itemNum);
|
||||||
itemInfoMap.put("itemName",itemName);
|
itemInfoMap.put("itemName",itemName);
|
||||||
itemInfoMap.put("itemContent",itemContents);
|
itemInfoMap.put("itemContent",itemContents);
|
||||||
result.add(itemInfoMap);
|
result.add(itemInfoMap);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user