Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
5a252125
Commit
5a252125
authored
Mar 30, 2023
by
“baozhigang”
Browse files
解决表字段comment过长问题
parent
cfce89be
Changes
1
Show whitespace changes
Inline
Side-by-side
ruoyi-generator/src/main/resources/mapper/generator/GenTableColumnMapper.xml
View file @
5a252125
...
...
@@ -69,7 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
)values(
<if
test=
"tableId != null and tableId != ''"
>
#{tableId},
</if>
<if
test=
"columnName != null and columnName != ''"
>
#{columnName},
</if>
<if
test=
"columnComment != null and columnComment != ''"
>
#{columnComment},
</if>
<if
test=
"columnComment != null and columnComment != ''"
>
(select SUBSTRING_INDEX(
#{columnComment},
' ', 1)),
</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 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<update
id=
"updateGenTableColumn"
parameterType=
"GenTableColumn"
>
update gen_table_column
<set>
<if
test=
"columnComment != null"
>
column_comment = #{columnComment},
</if>
<if
test=
"columnComment != null"
>
column_comment =
(select SUBSTRING_INDEX(
#{columnComment},
' ', 1)),
</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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment