fix:连接postgre数据库

master
Saisai Liu 2024-04-28 09:04:26 +08:00
parent 07a2fc9618
commit 389f0be640
2 changed files with 8 additions and 1 deletions

View File

@ -18,6 +18,11 @@
</properties>
<dependencies>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.3.8</version>
</dependency>
<dependency>
<groupId>com.muyu</groupId>

View File

@ -164,7 +164,8 @@ public class BasicConfigInfoServiceImpl extends ServiceImpl<BasicConfigInfoMapp
TableInfo build = TableInfo.builder()
.basicId(basicConfigInfo.getId())
.tableName(tableName1)
.tableRemark(tableRemark.isEmpty()? "null":tableRemark)
//bug点tableRemark为空造成空指针异常
.tableRemark(tableRemark==null? "null":tableRemark)
.parentId(tableInfo.getId())
.center("Y")
.updateBy(SecurityUtils.getUsername())
@ -190,6 +191,7 @@ public class BasicConfigInfoServiceImpl extends ServiceImpl<BasicConfigInfoMapp
thread.run();
}
} catch (SQLException e) {
log.error(e.getMessage());
throw new ServletException("连接失败");
}
return true;