Skip to content

Commit

Permalink
兼容mysql不同版本int类型字段 fix sunchenbin#19
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouwm808 committed Jun 1, 2022
1 parent f875b91 commit b66c539
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,6 @@ private List<Object> getModifyFieldList(List<SysMysqlColumns> tableColumnList, L
}

// 判断类型+长度是否相同

if (!sysColumn.getColumn_type().toLowerCase().equals(typeAndLength)) {
modifyFieldList.add(modifyTableParam);
continue;
Expand Down Expand Up @@ -665,8 +664,6 @@ private Field[] recursionParents(Class<?> clas, Field[] fields) {
if (clas.getSuperclass() != null) {
Class clsSup = clas.getSuperclass();
List<Field> fieldList = new ArrayList<Field>();
//把父类属性字段放到最前面
List<Field> superFieldList = new ArrayList<Field>();
fieldList.addAll(Arrays.asList(fields));
// 获取当前class的所有fields的name列表
List<String> fdNames = getFieldNames(fieldList);
Expand All @@ -677,7 +674,6 @@ private Field[] recursionParents(Class<?> clas, Field[] fields) {
}
fieldList.add(pfd);
}
fieldList.addAll(0, superFieldList);
fields = new Field[fieldList.size()];
int i = 0;
for (Object field : fieldList.toArray()) {
Expand Down

0 comments on commit b66c539

Please sign in to comment.