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

修复bug

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