|
@@ -673,7 +673,12 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
|
org.springblade.manager.entity.TableInfo table = tableInfoService.getBaseMapper().selectById(wbsTreePrivate.getInitTableId());
|
|
|
if (ObjectUtil.isNotEmpty(table)) {
|
|
|
//获取首件记录ID
|
|
|
- String firstId = tableInfoList.get(0).getFirstId();
|
|
|
+// String firstId = tableInfoList.get(0).getFirstId();
|
|
|
+ String firstId = "";
|
|
|
+ InformationQuery firstInfoByWbsId = informationQueryClient.getFirstInfoByWbsId(firstNodeId);
|
|
|
+ if (firstInfoByWbsId != null){
|
|
|
+ firstId = firstInfoByWbsId.getId() + "";
|
|
|
+ }
|
|
|
if (StringUtils.isNotEmpty(firstId)) {
|
|
|
//删除掉旧数据
|
|
|
this.jdbcTemplate.execute("DELETE FROM " + table.getTabEnName() + " WHERE group_id = " + firstId);
|
|
@@ -682,7 +687,7 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
|
}
|
|
|
|
|
|
//获取上传的文件相关
|
|
|
- String sourceUrl = tableInfoList.get(0).getSourceUrl(),
|
|
|
+ String sourceUrl = tableInfoList.get(0).getSourceUrl(),
|
|
|
pdfUrl = tableInfoList.get(0).getPdfUrl(),
|
|
|
firstFileName = tableInfoList.get(0).getFirstFileName();
|
|
|
|