mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-29 18:51:53 +08:00
缺陷-修复代码生成器的同步报错问题
This commit is contained in:
parent
1391e20e1f
commit
de8f8b450a
@ -158,7 +158,7 @@ public class CodegenServiceImpl implements CodegenService {
|
|||||||
|
|
||||||
//计算需要修改的字段,插入时重新插入,删除时将原来的删除
|
//计算需要修改的字段,插入时重新插入,删除时将原来的删除
|
||||||
BiPredicate<TableField, CodegenColumnDO> pr =
|
BiPredicate<TableField, CodegenColumnDO> pr =
|
||||||
(tableField, codegenColumn) -> tableField.getType().equals(codegenColumn.getDataType())
|
(tableField, codegenColumn) -> tableField.getMetaInfo().getJdbcType().name().equals(codegenColumn.getDataType())
|
||||||
&& tableField.getMetaInfo().isNullable() == codegenColumn.getNullable()
|
&& tableField.getMetaInfo().isNullable() == codegenColumn.getNullable()
|
||||||
&& tableField.isKeyFlag() == codegenColumn.getPrimaryKey()
|
&& tableField.isKeyFlag() == codegenColumn.getPrimaryKey()
|
||||||
&& tableField.getComment().equals(codegenColumn.getColumnComment());
|
&& tableField.getComment().equals(codegenColumn.getColumnComment());
|
||||||
|
Loading…
Reference in New Issue
Block a user