Commit 4fba420b authored by yanzg's avatar yanzg

常规BUG的修改

parent 5790b880
...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment