Browse Source

fix(ruoyi-generator): 修复使用postgreSQL数据库时实体类代码生成多余的已删除字段的属性bug

杨祖安 2 years ago
parent
commit
8f87da19ea

+ 1 - 0
ruoyi-generator/src/main/resources/mapper/generator/GenTableColumnMapper.xml

@@ -93,6 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 ORDER BY c.relname, a.attnum
             ) temp
             WHERE table_name = (#{tableName})
+                AND column_type <![CDATA[ <> ]]> '-'
         </if>
         <if test="@com.ruoyi.common.helper.DataBaseHelper@isSqlServer()">
             SELECT