Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sts网站
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyang
sts网站
Commits
84856051
Unverified
Commit
84856051
authored
Apr 23, 2023
by
若依
Committed by
Gitee
Apr 23, 2023
Browse files
Options
Browse Files
Download
Plain Diff
!710 修复代码生成表字段注释不全问题
Merge pull request !710 from zouhuu/dev
parents
a4fe88ca
f04ca57f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
pom.xml
pom.xml
+0
-5
GenTableColumnMapper.xml
.../main/resources/mapper/generator/GenTableColumnMapper.xml
+2
-2
No files found.
pom.xml
View file @
84856051
...
@@ -183,11 +183,6 @@
...
@@ -183,11 +183,6 @@
</modules>
</modules>
<packaging>
pom
</packaging>
<packaging>
pom
</packaging>
<dependencies>
</dependencies>
<build>
<build>
<plugins>
<plugins>
<plugin>
<plugin>
...
...
ruoyi-generator/src/main/resources/mapper/generator/GenTableColumnMapper.xml
View file @
84856051
...
@@ -69,7 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -69,7 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
)values(
)values(
<if
test=
"tableId != null and tableId != ''"
>
#{tableId},
</if>
<if
test=
"tableId != null and tableId != ''"
>
#{tableId},
</if>
<if
test=
"columnName != null and columnName != ''"
>
#{columnName},
</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=
"columnType != null and columnType != ''"
>
#{columnType},
</if>
<if
test=
"javaType != null and javaType != ''"
>
#{javaType},
</if>
<if
test=
"javaType != null and javaType != ''"
>
#{javaType},
</if>
<if
test=
"javaField != null and javaField != ''"
>
#{javaField},
</if>
<if
test=
"javaField != null and javaField != ''"
>
#{javaField},
</if>
...
@@ -92,7 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -92,7 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<update
id=
"updateGenTableColumn"
parameterType=
"GenTableColumn"
>
<update
id=
"updateGenTableColumn"
parameterType=
"GenTableColumn"
>
update gen_table_column
update gen_table_column
<set>
<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=
"javaType != null"
>
java_type = #{javaType},
</if>
<if
test=
"javaField != null"
>
java_field = #{javaField},
</if>
<if
test=
"javaField != null"
>
java_field = #{javaField},
</if>
<if
test=
"isInsert != null"
>
is_insert = #{isInsert},
</if>
<if
test=
"isInsert != null"
>
is_insert = #{isInsert},
</if>
...
...
Write
Preview
Markdown
is supported
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