代码生成列extra属性

This commit is contained in:
RuoYi
2019-01-21 15:25:12 +08:00
parent c064115501
commit 00a10ed8df
3 changed files with 17 additions and 3 deletions

View File

@ -45,7 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<select id="selectTableColumnsByName" parameterType="String" resultMap="ColumnInfoResult">
select column_name, data_type, column_comment from information_schema.columns
select column_name, data_type, column_comment, extra from information_schema.columns
where table_name = #{tableName} and table_schema = (select database()) order by ordinal_position
</select>