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
9d817f09
Commit
9d817f09
authored
Jul 27, 2017
by
hewei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LogicalDeletePlugin 删除过期常量
parent
2b2061f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
src/main/java/com/itfsw/mybatis/generator/plugins/LogicalDeletePlugin.java
.../itfsw/mybatis/generator/plugins/LogicalDeletePlugin.java
+0
-8
No files found.
src/main/java/com/itfsw/mybatis/generator/plugins/LogicalDeletePlugin.java
View file @
9d817f09
...
@@ -328,14 +328,6 @@ public class LogicalDeletePlugin extends BasePlugin {
...
@@ -328,14 +328,6 @@ public class LogicalDeletePlugin extends BasePlugin {
ArrayList
<
Field
>
fields
=
(
ArrayList
<
Field
>)
topLevelClass
.
getFields
();
ArrayList
<
Field
>
fields
=
(
ArrayList
<
Field
>)
topLevelClass
.
getFields
();
// TODO 过期的
Field
field2
=
JavaElementGeneratorTools
.
generateStaticFinalField
(
"DEL_FLAG"
,
this
.
logicalDeleteColumn
.
getFullyQualifiedJavaType
(),
DEL_FLAG_NAME
);
commentGenerator
.
addFieldComment
(
field2
,
introspectedTable
);
field2
.
addAnnotation
(
"@Deprecated"
);
// 常量插入到第一位
fields
.
add
(
0
,
field2
);
logger
.
debug
(
"itfsw(逻辑删除插件):"
+
topLevelClass
.
getType
().
getShortName
()+
"增加方法DEL_FLAG的常量。"
);
// 添加删除标志位常量 DEL_FLAG_OFF
// 添加删除标志位常量 DEL_FLAG_OFF
String
delFlagOnValue
;
String
delFlagOnValue
;
if
(
this
.
logicalDeleteValue
==
null
||
"NULL"
.
equalsIgnoreCase
(
this
.
logicalDeleteValue
)){
if
(
this
.
logicalDeleteValue
==
null
||
"NULL"
.
equalsIgnoreCase
(
this
.
logicalDeleteValue
)){
...
...
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