diff --git a/ruoyi-generator/src/main/resources/mapper/generator/GenTableColumnMapper.xml b/ruoyi-generator/src/main/resources/mapper/generator/GenTableColumnMapper.xml
index 5ca05b12..b62365a9 100644
--- a/ruoyi-generator/src/main/resources/mapper/generator/GenTableColumnMapper.xml
+++ b/ruoyi-generator/src/main/resources/mapper/generator/GenTableColumnMapper.xml
@@ -69,7 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
)values(
#{tableId},
#{columnName},
- (select SUBSTRING_INDEX(#{columnComment}, ' ', 1)),
+ #{columnComment},
#{columnType},
#{javaType},
#{javaField},
@@ -92,7 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
update gen_table_column
- column_comment = (select SUBSTRING_INDEX(#{columnComment}, ' ', 1)),
+ column_comment = #{columnComment},
java_type = #{javaType},
java_field = #{javaField},
is_insert = #{isInsert},