Commit 7cef6f8b authored by 朱金耀's avatar 朱金耀 Committed by Elune
Browse files

!30 解决生成前段代码字典数据重复bug

* 解决生产前段代码字典数据重复bug:但一个页面中多个项目管理同一个字典时,数据重复
parent b7b721b1
/* /*
* Copyright 2019-2020 Zheng Jie * Copyright 2019-2020 Zheng Jie
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
...@@ -276,7 +276,8 @@ public class GenUtil { ...@@ -276,7 +276,8 @@ public class GenUtil {
// 主键存在字典 // 主键存在字典
if (StringUtils.isNotBlank(column.getDictName())) { if (StringUtils.isNotBlank(column.getDictName())) {
genMap.put("hasDict", true); genMap.put("hasDict", true);
dicts.add(column.getDictName()); if(!dicts.contains(column.getDictName()))
dicts.add(column.getDictName());
} }
// 存储字段类型 // 存储字段类型
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment