提交 f95e9f02 authored 作者: 黄夏豪's avatar 黄夏豪

修复bug

上级 969e2186
......@@ -179,6 +179,7 @@ public class ModelImpl implements ModelService {
columnInfo.setPrimaryKey(columnVO.getPrimaryKey());
ColumnInfo save = columnInfoDao.save(columnInfo);
List<Quote> quoteList = columnVO.getQuoteList();
if (quoteList!=null){
for (Quote quote : quoteList) {
if (StringUtils.isNotEmpty(quote.getValue())){
quote.setColumnId(save.getId());
......@@ -186,6 +187,7 @@ public class ModelImpl implements ModelService {
}
}
}
}
//关闭会话
session.close();
return tableInfo;
......
......@@ -21,11 +21,11 @@ public class GroupSetting {
@ApiModelProperty("主键")
private Integer id;
@ApiModelProperty("类型")
private String type;
@ApiModelProperty("模型ID")
private Integer modelId;
@ApiModelProperty("分类字段名")
private String columnName;
@ApiModelProperty("字段ID")
private Integer columnId;
@ApiModelProperty("名称")
private String name;
......
spring:
datasource:
username: root
password: 123456
url: jdbc:mysql://localhost:3306/data?useSSL=false&serverTimezone=GMT%2b8&characterEncoding=utf-8
password: Huang123+
url: jdbc:mysql://47.106.142.73:3306/dataTest?useSSL=false&serverTimezone=GMT%2b8&characterEncoding=utf-8&nullCatalogMeansCurrent=true
driver-class-name: com.mysql.cj.jdbc.Driver
jpa:
show-sql: true
hibernate:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论