Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
YZG
yzg-util
Commits
4fba420b
Commit
4fba420b
authored
Jun 18, 2019
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
常规BUG的修改
parent
5790b880
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
TableStruct.java
...b/src/main/java/com/yanzuoguang/dao/impl/TableStruct.java
+3
-3
No files found.
yzg-util-db/src/main/java/com/yanzuoguang/dao/impl/TableStruct.java
View file @
4fba420b
...
@@ -174,20 +174,20 @@ public class TableStruct {
...
@@ -174,20 +174,20 @@ public class TableStruct {
return
from
;
return
from
;
}
else
{
}
else
{
// 缓存需要排除的子弹
// 缓存需要排除的子弹
Map
<
TableFieldVo
,
Boolean
>
exceptCache
=
new
HashMap
<>(
10
);
Map
<
String
,
Boolean
>
exceptCache
=
new
HashMap
<>(
10
);
for
(
int
except
:
exceptType
)
{
for
(
int
except
:
exceptType
)
{
if
(!
typeFieldCache
.
containsKey
(
except
))
{
if
(!
typeFieldCache
.
containsKey
(
except
))
{
continue
;
continue
;
}
}
List
<
TableFieldVo
>
exceptList
=
typeFieldCache
.
get
(
except
);
List
<
TableFieldVo
>
exceptList
=
typeFieldCache
.
get
(
except
);
for
(
TableFieldVo
exceptField
:
exceptList
)
{
for
(
TableFieldVo
exceptField
:
exceptList
)
{
exceptCache
.
put
(
exceptField
,
true
);
exceptCache
.
put
(
exceptField
.
name
,
true
);
}
}
}
}
// 剩下的字段
// 剩下的字段
List
<
TableFieldVo
>
to
=
new
ArrayList
<>();
List
<
TableFieldVo
>
to
=
new
ArrayList
<>();
for
(
TableFieldVo
fromItem
:
from
)
{
for
(
TableFieldVo
fromItem
:
from
)
{
if
(
exceptCache
.
containsKey
(
fromItem
))
{
if
(
exceptCache
.
containsKey
(
fromItem
.
name
))
{
continue
;
continue
;
}
}
to
.
add
(
fromItem
);
to
.
add
(
fromItem
);
...
...
Write
Preview
Markdown
is supported
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