|
@@ -167,6 +167,24 @@ public class JfGridUpdateService {
|
|
|
return listId;
|
|
|
}
|
|
|
|
|
|
+ public String initExcel(Map<String, List<JSONObject>> map) {
|
|
|
+ List<JSONObject> structureList = map.get("structureList");
|
|
|
+ List<JSONObject> dataList = map.get("dataList");
|
|
|
+ String listId = String.valueOf(new Date().getTime()).concat("#").concat(String.valueOf(snowFlake.nextId().longValue()));
|
|
|
+ structureList.forEach((item->{
|
|
|
+ GridRecordDataModel entity = item.toJavaObject(GridRecordDataModel.class);
|
|
|
+ entity.setBlock_id(JfGridConfigModel.FirstBlockID);
|
|
|
+ entity.setList_id(listId);
|
|
|
+ insert(entity);
|
|
|
+ }));
|
|
|
+ dataList.forEach((item->{
|
|
|
+ GridRecordDataModel entity = item.toJavaObject(GridRecordDataModel.class);
|
|
|
+ entity.setList_id(listId);
|
|
|
+ insert(entity);
|
|
|
+ }));
|
|
|
+ return listId;
|
|
|
+ };
|
|
|
+
|
|
|
/**
|
|
|
* 设置其他默认配置
|
|
|
*
|
|
@@ -2450,5 +2468,4 @@ public class JfGridUpdateService {
|
|
|
addList.addAll(modelList);
|
|
|
recordDataInsertHandle.InsertIntoBatch(addList);
|
|
|
}
|
|
|
-
|
|
|
}
|