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
Eladmin
Commits
7cef6f8b
Commit
7cef6f8b
authored
Jun 14, 2022
by
朱金耀
Committed by
Elune
Jun 14, 2022
Browse files
!30 解决生成前段代码字典数据重复bug
* 解决生产前段代码字典数据重复bug:但一个页面中多个项目管理同一个字典时,数据重复
parent
b7b721b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
eladmin-generator/src/main/java/me/zhengjie/utils/GenUtil.java
View file @
7cef6f8b
/*
/*
* Copyright 2019-2020 Zheng Jie
* Copyright 2019-2020 Zheng Jie
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
...
@@ -276,7 +276,8 @@ public class GenUtil {
...
@@ -276,7 +276,8 @@ public class GenUtil {
// 主键存在字典
// 主键存在字典
if
(
StringUtils
.
isNotBlank
(
column
.
getDictName
()))
{
if
(
StringUtils
.
isNotBlank
(
column
.
getDictName
()))
{
genMap
.
put
(
"hasDict"
,
true
);
genMap
.
put
(
"hasDict"
,
true
);
dicts
.
add
(
column
.
getDictName
());
if
(!
dicts
.
contains
(
column
.
getDictName
()))
dicts
.
add
(
column
.
getDictName
());
}
}
// 存储字段类型
// 存储字段类型
...
...
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