Commit e41466a9 authored by hewei's avatar hewei

SelectSelectivePlugin插件重构

parent 16a02477
......@@ -147,14 +147,7 @@ public class SelectSelectivePlugin extends BasePlugin implements ISelectOneByExa
if (introspectedTable.isConstructorBased()) {
XmlElement resultMapEle = new XmlElement("resultMap");
resultMapEle.addAttribute(new Attribute("id", ID_FOR_PROPERTY_BASED_RESULT_MAP));
String returnType;
if (introspectedTable.getRules().generateBaseRecordClass()) {
returnType = introspectedTable.getBaseRecordType();
} else {
returnType = introspectedTable.getPrimaryKeyType();
}
resultMapEle.addAttribute(new Attribute("type", returnType));
resultMapEle.addAttribute(new Attribute("type", introspectedTable.getRules().calculateAllFieldsClass().getFullyQualifiedName()));
commentGenerator.addComment(resultMapEle);
for (IntrospectedColumn introspectedColumn : introspectedTable.getPrimaryKeyColumns()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment