Browse Source

fix 修复 postgreSQL 代码生成 查出多余的已删除字段

疯狂的狮子Li 2 năm trước cách đây
mục cha
commit
8095db9e28

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

@@ -71,6 +71,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.mybatis.helper.DataBaseHelper@isSqlServer()">
             SELECT