Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
e4df0c6d
Commit
e4df0c6d
authored
Dec 24, 2021
by
RuoYi
Browse files
优化代码生成字典组重复问题
parent
7b23b6db
Changes
1
Hide whitespace changes
Inline
Side-by-side
ruoyi-generator/src/main/java/com/ruoyi/generator/util/VelocityUtils.java
View file @
e4df0c6d
...
...
@@ -3,6 +3,7 @@ package com.ruoyi.generator.util;
import
java.util.ArrayList
;
import
java.util.HashSet
;
import
java.util.List
;
import
java.util.Set
;
import
org.apache.velocity.VelocityContext
;
import
com.alibaba.fastjson.JSONObject
;
import
com.ruoyi.common.constant.GenConstants
;
...
...
@@ -270,7 +271,7 @@ public class VelocityUtils
public
static
String
getDicts
(
GenTable
genTable
)
{
List
<
GenTableColumn
>
columns
=
genTable
.
getColumns
();
Lis
t
<
String
>
dicts
=
new
ArrayLis
t
<
String
>();
Se
t
<
String
>
dicts
=
new
HashSe
t
<
String
>();
for
(
GenTableColumn
column
:
columns
)
{
if
(!
column
.
isSuperColumn
()
&&
StringUtils
.
isNotEmpty
(
column
.
getDictType
())
&&
StringUtils
.
equalsAny
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment