若依
2023-04-23 848560514550a853b7a9d2b61adbfef9ac997a15
!710 修复代码生成表字段注释不全问题
Merge pull request !710 from zouhuu/dev
2 files modified
9 ■■■■ changed files
pom.xml 5 ●●●●● patch | view | raw | blame | history
ruoyi-generator/src/main/resources/mapper/generator/GenTableColumnMapper.xml 4 ●●●● patch | view | raw | blame | history
pom.xml
@@ -183,11 +183,6 @@
    </modules>
    <packaging>pom</packaging>
    <dependencies>
    </dependencies>
    <build>
        <plugins>
            <plugin>
ruoyi-generator/src/main/resources/mapper/generator/GenTableColumnMapper.xml
@@ -69,7 +69,7 @@
         )values(
            <if test="tableId != null and tableId != ''">#{tableId},</if>
            <if test="columnName != null and columnName != ''">#{columnName},</if>
            <if test="columnComment != null and columnComment != ''">(select SUBSTRING_INDEX(#{columnComment}, ' ', 1)),</if>
            <if test="columnComment != null and columnComment != ''">#{columnComment},</if>
            <if test="columnType != null and columnType != ''">#{columnType},</if>
            <if test="javaType != null and javaType != ''">#{javaType},</if>
            <if test="javaField != null and javaField != ''">#{javaField},</if>
@@ -92,7 +92,7 @@
    <update id="updateGenTableColumn" parameterType="GenTableColumn">
        update gen_table_column
        <set>
            <if test="columnComment != null">column_comment = (select SUBSTRING_INDEX(#{columnComment}, ' ', 1)),</if>
            <if test="columnComment != null">column_comment = #{columnComment},</if>
            <if test="javaType != null">java_type = #{javaType},</if>
            <if test="javaField != null">java_field = #{javaField},</if>
            <if test="isInsert != null">is_insert = #{isInsert},</if>