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
f50f031d
Commit
f50f031d
authored
Jan 22, 2018
by
hewei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix[issues#16]:修复选择返回插件对于自定义column异常问题,不能直接使用resultType而只能使用resultMap进行
parent
21743bf0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
src/test/java/com/itfsw/mybatis/generator/plugins/SelectSelectivePluginTest.java
.../mybatis/generator/plugins/SelectSelectivePluginTest.java
+12
-10
No files found.
src/test/java/com/itfsw/mybatis/generator/plugins/SelectSelectivePluginTest.java
View file @
f50f031d
...
...
@@ -82,6 +82,9 @@ public class SelectSelectivePluginTest {
Assert
.
assertEquals
(
list
.
size
(),
3
);
int
index
=
0
;
for
(
Object
obj
:
list
)
{
if
(
index
==
1
)
{
Assert
.
assertNull
(
obj
);
}
else
{
ObjectUtil
objectUtil
=
new
ObjectUtil
(
obj
);
// 没有查询这两个字段
if
(
objectUtil
.
get
(
"id"
)
!=
null
||
objectUtil
.
get
(
"field2"
)
!=
null
)
{
...
...
@@ -89,11 +92,10 @@ public class SelectSelectivePluginTest {
}
if
(
index
==
0
)
{
Assert
.
assertEquals
(
objectUtil
.
get
(
"field1"
),
"fd1"
);
}
else
if
(
index
==
1
)
{
Assert
.
assertNull
(
objectUtil
.
get
(
"field1"
));
}
else
{
Assert
.
assertEquals
(
objectUtil
.
get
(
"field1"
),
"fd3"
);
}
}
index
++;
}
...
...
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