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

* 解决生产前段代码字典数据重复bug:但一个页面中多个项目管理同一个字典时,数据重复
pull/751/head
朱金耀 2022-06-14 07:24:56 +00:00 committed by Elune
parent b7b721b13b
commit 7cef6f8bf2
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/*
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
@ -276,7 +276,8 @@ public class GenUtil {
// 主键存在字典
if (StringUtils.isNotBlank(column.getDictName())) {
genMap.put("hasDict", true);
dicts.add(column.getDictName());
if(!dicts.contains(column.getDictName()))
dicts.add(column.getDictName());
}
// 存储字段类型