|
@@ -2121,16 +2121,6 @@ public class ExcelTabController extends BladeController {
|
|
|
String projectId = tableInfo1.getString("projectId");
|
|
|
String classify = tableInfo1.getString("classify");
|
|
|
|
|
|
- /*String groupId = tableInfo1.getString("tabGroupId");
|
|
|
- String pkeyId = tableInfo1.getString("pkeyId");
|
|
|
- String pkeyIds = pkeyId;
|
|
|
- String groupIds = groupId;
|
|
|
- for (int i = 1; i < dataArray.size(); i++) {
|
|
|
- JSONObject jsonObject = dataArray.getJSONObject(i);
|
|
|
- pkeyIds += "," + jsonObject.getString("pkeyId");
|
|
|
- groupIds += "," + jsonObject.getString("tabGroupId");
|
|
|
- }*/
|
|
|
-
|
|
|
/*全加载,或者可以优化成依赖加载*/
|
|
|
List<AppWbsTreeContractVO> tableAll = new ArrayList<>();
|
|
|
List<TableInfo> tableInfoList = this.excelTabService.getTableInfoList(dataArray);
|
|
@@ -2170,13 +2160,13 @@ public class ExcelTabController extends BladeController {
|
|
|
|
|
|
//公式填充
|
|
|
this.excelTabService.formulaFillData(tableInfoList, Long.parseLong(nodeId), ExecuteType.INSPECTION);
|
|
|
-
|
|
|
//保存数据到数据库
|
|
|
R<Object> result = this.excelTabService.saveOrUpdateInfo(tableInfoList);
|
|
|
if (!result.isSuccess()) {
|
|
|
return R.fail("以下的表在保存数据时发生了异常【" + result.getMsg() + "】");
|
|
|
}
|
|
|
|
|
|
+
|
|
|
List<String> errorPKeyIds = new ArrayList<>();
|
|
|
//单个pdf加载
|
|
|
if (tableInfoList != null) {
|
|
@@ -2205,7 +2195,6 @@ public class ExcelTabController extends BladeController {
|
|
|
|
|
|
//合并pdf加载
|
|
|
excelTabService.getBussPdfs(nodeId, classify, contractId, projectId);
|
|
|
-
|
|
|
//更新缓存
|
|
|
informationQueryClient.delAsyncWbsTree(contractId);
|
|
|
|
|
@@ -3776,5 +3765,4 @@ public class ExcelTabController extends BladeController {
|
|
|
return R.fail("操作失败");
|
|
|
}
|
|
|
|
|
|
-
|
|
|
}
|