正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -3,6 +3,7 @@ package com.ruoyi.generator.util; | @@ -3,6 +3,7 @@ package com.ruoyi.generator.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.constant.GenConstants; | 9 | import com.ruoyi.common.constant.GenConstants; |
| @@ -270,7 +271,7 @@ public class VelocityUtils | @@ -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( |
-
请 注册 或 登录 后发表评论