Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mybatis-generator-plugin
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
mybatis-generator-plugin
Commits
9d17c497
Commit
9d17c497
authored
Nov 14, 2018
by
hewei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issues#54 在注释未采用标准格式添加时(<!--和-->存在其他字符),OptimisticLockerPlugin会出错。
parent
edbca726
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
src/main/java/com/itfsw/mybatis/generator/plugins/LogicalDeletePlugin.java
.../itfsw/mybatis/generator/plugins/LogicalDeletePlugin.java
+0
-2
src/main/java/com/itfsw/mybatis/generator/plugins/utils/FormatTools.java
...om/itfsw/mybatis/generator/plugins/utils/FormatTools.java
+2
-2
No files found.
src/main/java/com/itfsw/mybatis/generator/plugins/LogicalDeletePlugin.java
View file @
9d17c497
...
...
@@ -331,8 +331,6 @@ public class LogicalDeletePlugin extends BasePlugin {
selectByPrimaryKey
.
addAttribute
(
new
Attribute
(
"parameterType"
,
"map"
));
context
.
getCommentGenerator
().
addComment
(
selectByPrimaryKey
);
sb
=
new
StringBuilder
();
sb
.
append
(
"select "
);
...
...
src/main/java/com/itfsw/mybatis/generator/plugins/utils/FormatTools.java
View file @
9d17c497
...
...
@@ -215,7 +215,7 @@ public class FormatTools {
boolean
flag
=
false
;
while
(
elementIterator
.
hasNext
())
{
Element
ele
=
elementIterator
.
next
();
if
(
ele
instanceof
TextElement
&&
((
TextElement
)
ele
).
getContent
().
matches
(
"
<!--
"
))
{
if
(
ele
instanceof
TextElement
&&
((
TextElement
)
ele
).
getContent
().
matches
(
"
.*<!--.*
"
))
{
flag
=
true
;
}
...
...
@@ -223,7 +223,7 @@ public class FormatTools {
elementIterator
.
remove
();
}
if
(
ele
instanceof
TextElement
&&
((
TextElement
)
ele
).
getContent
().
matches
(
"
-->
"
))
{
if
(
ele
instanceof
TextElement
&&
((
TextElement
)
ele
).
getContent
().
matches
(
"
.*-->.*
"
))
{
flag
=
false
;
}
}
...
...
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