diff --git a/cloud-common-plugin-dynamic/src/main/java/com/cm/common/plugin/service/dynamic/config/impl/DynamicConfigTableServiceImpl.java b/cloud-common-plugin-dynamic/src/main/java/com/cm/common/plugin/service/dynamic/config/impl/DynamicConfigTableServiceImpl.java index 2c01d7f..bf27ba7 100644 --- a/cloud-common-plugin-dynamic/src/main/java/com/cm/common/plugin/service/dynamic/config/impl/DynamicConfigTableServiceImpl.java +++ b/cloud-common-plugin-dynamic/src/main/java/com/cm/common/plugin/service/dynamic/config/impl/DynamicConfigTableServiceImpl.java @@ -401,7 +401,7 @@ public class DynamicConfigTableServiceImpl extends AbstractService implements ID String codePath = String.format("%s/mapper/%s", baseCodeFolder, params.get("lowerTableName").toString()); FolderUtil.createFolder(codePath); Template template = freeMarkerConfigurer.getConfiguration().getTemplate(String.format("%s/mapper/mapper.ftl", templatePath)); - Writer writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(String.format("%s/mapper-%s.xml", codePath, params.get("lowerTableName").toString())), ISystemConstant.CHARSET_UTF8)); + Writer writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(String.format("%s/%s-mapper.xml", codePath, params.get("lowerTableName").toString())), ISystemConstant.CHARSET_UTF8)); generatorCode(params, writer, template); }