Skip to content

Commit

Permalink
fix界面上自定义DAO名称输入框为空,生成的Mapper XML文件不正确的Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zouzg committed Jun 10, 2018
1 parent a8f93a5 commit 6b9fa12
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,11 @@ private String getMappingXMLFilePath(GeneratorConfig generatorConfig) {
if (StringUtils.isNotEmpty(mappingXMLPackage)) {
sb.append(mappingXMLPackage.replace(".", "/")).append("/");
}
if (generatorConfig.getMapperName() != null) {
sb.append(generatorConfig.getMapperName()).append(".xml");
}else {
sb.append(generatorConfig.getDomainObjectName()).append("Mapper.xml");
}
if (StringUtils.isNotEmpty(generatorConfig.getMapperName())) {
sb.append(generatorConfig.getMapperName()).append(".xml");
} else {
sb.append(generatorConfig.getDomainObjectName()).append("Mapper.xml");
}

return sb.toString();
}
Expand Down

0 comments on commit 6b9fa12

Please sign in to comment.