From 6b9fa12ad15e66a52ae09183b8d7b334552c3e17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AC=A7=E6=96=87?= Date: Mon, 11 Jun 2018 00:15:31 +0800 Subject: [PATCH] =?UTF-8?q?fix=E7=95=8C=E9=9D=A2=E4=B8=8A=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89DAO=E5=90=8D=E7=A7=B0=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E6=A1=86=E4=B8=BA=E7=A9=BA=EF=BC=8C=E7=94=9F=E6=88=90=E7=9A=84?= =?UTF-8?q?Mapper=20XML=E6=96=87=E4=BB=B6=E4=B8=8D=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E7=9A=84Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../generator/bridge/MybatisGeneratorBridge.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/zzg/mybatis/generator/bridge/MybatisGeneratorBridge.java b/src/main/java/com/zzg/mybatis/generator/bridge/MybatisGeneratorBridge.java index 8ae98841..db32b45b 100644 --- a/src/main/java/com/zzg/mybatis/generator/bridge/MybatisGeneratorBridge.java +++ b/src/main/java/com/zzg/mybatis/generator/bridge/MybatisGeneratorBridge.java @@ -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(); }