Skip to content

Commit

Permalink
!30 解决生成前段代码字典数据重复bug
Browse files Browse the repository at this point in the history
* 解决生产前段代码字典数据重复bug:但一个页面中多个项目管理同一个字典时,数据重复
  • Loading branch information
goldenzjy authored and elunez committed Jun 14, 2022
1 parent b7b721b commit 7cef6f8
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -276,7 +276,8 @@ private static Map<String, Object> getGenMap(List<ColumnInfo> columnInfos, GenCo
// 主键存在字典
if (StringUtils.isNotBlank(column.getDictName())) {
genMap.put("hasDict", true);
dicts.add(column.getDictName());
if(!dicts.contains(column.getDictName()))
dicts.add(column.getDictName());
}

// 存储字段类型
Expand Down

0 comments on commit 7cef6f8

Please sign in to comment.