Skip to content

Commit 4108a42

Browse files
author
hewei
committed
[issues#26][issues#27]:插件因为是复用的,需要进行属性的清空。
1 parent d523989 commit 4108a42

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/main/java/com/itfsw/mybatis/generator/plugins/SelectSelectivePlugin.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,24 +132,25 @@ public boolean clientSelectByPrimaryKeyMethodGenerated(Method method, Interface
132132

133133
// ============================================== sqlMap 生成 ===================================================
134134

135+
135136
@Override
136-
public boolean clientSelectByExampleWithBLOBsMethodGenerated(Method method, TopLevelClass topLevelClass, IntrospectedTable introspectedTable) {
137+
public boolean sqlMapSelectByExampleWithoutBLOBsElementGenerated(XmlElement element, IntrospectedTable introspectedTable) {
137138
this.selectByExampleSelectiveEle = this.generateSelectSelectiveElement(METHOD_SELECT_BY_EXAMPLE_SELECTIVE, introspectedTable, false, true);
138-
return super.clientSelectByExampleWithBLOBsMethodGenerated(method, topLevelClass, introspectedTable);
139+
return super.sqlMapSelectByExampleWithoutBLOBsElementGenerated(element, introspectedTable);
139140
}
140141

141142
@Override
142-
public boolean clientSelectByExampleWithoutBLOBsMethodGenerated(Method method, TopLevelClass topLevelClass, IntrospectedTable introspectedTable) {
143+
public boolean sqlMapSelectByExampleWithBLOBsElementGenerated(XmlElement element, IntrospectedTable introspectedTable) {
143144
if (!introspectedTable.hasBLOBColumns()) {
144145
this.selectByExampleSelectiveEle = this.generateSelectSelectiveElement(METHOD_SELECT_BY_EXAMPLE_SELECTIVE, introspectedTable, false, true);
145146
}
146-
return super.clientSelectByExampleWithoutBLOBsMethodGenerated(method, topLevelClass, introspectedTable);
147+
return super.sqlMapSelectByExampleWithBLOBsElementGenerated(element, introspectedTable);
147148
}
148149

149150
@Override
150-
public boolean clientSelectByPrimaryKeyMethodGenerated(Method method, TopLevelClass topLevelClass, IntrospectedTable introspectedTable) {
151+
public boolean sqlMapSelectByPrimaryKeyElementGenerated(XmlElement element, IntrospectedTable introspectedTable) {
151152
this.selectByPrimaryKeySelectiveEle = this.generateSelectSelectiveElement(METHOD_SELECT_BY_PRIMARY_KEY_SELECTIVE, introspectedTable, false, false);
152-
return super.clientSelectByPrimaryKeyMethodGenerated(method, topLevelClass, introspectedTable);
153+
return super.sqlMapSelectByPrimaryKeyElementGenerated(element, introspectedTable);
153154
}
154155

155156
/**

0 commit comments

Comments
 (0)