|
@@ -3,6 +3,7 @@ package com.ruoyi.gen.util;
|
|
3
|
import java.util.ArrayList;
|
3
|
import java.util.ArrayList;
|
|
4
|
import java.util.HashSet;
|
4
|
import java.util.HashSet;
|
|
5
|
import java.util.List;
|
5
|
import java.util.List;
|
|
|
|
6
|
+import java.util.Set;
|
|
6
|
import org.apache.velocity.VelocityContext;
|
7
|
import org.apache.velocity.VelocityContext;
|
|
7
|
import com.alibaba.fastjson.JSONObject;
|
8
|
import com.alibaba.fastjson.JSONObject;
|
|
8
|
import com.ruoyi.common.core.constant.GenConstants;
|
9
|
import com.ruoyi.common.core.constant.GenConstants;
|
|
@@ -270,7 +271,7 @@ public class VelocityUtils
|
|
270
|
public static String getDicts(GenTable genTable)
|
271
|
public static String getDicts(GenTable genTable)
|
|
271
|
{
|
272
|
{
|
|
272
|
List<GenTableColumn> columns = genTable.getColumns();
|
273
|
List<GenTableColumn> columns = genTable.getColumns();
|
|
273
|
- List<String> dicts = new ArrayList<String>();
|
|
|
|
|
|
274
|
+ Set<String> dicts = new HashSet<String>();
|
|
274
|
for (GenTableColumn column : columns)
|
275
|
for (GenTableColumn column : columns)
|
|
275
|
{
|
276
|
{
|
|
276
|
if (!column.isSuperColumn() && StringUtils.isNotEmpty(column.getDictType()) && StringUtils.equalsAny(
|
277
|
if (!column.isSuperColumn() && StringUtils.isNotEmpty(column.getDictType()) && StringUtils.equalsAny(
|