From 08fe7a22fb4cf9a74d10be78be9fa3a94c4a1c04 Mon Sep 17 00:00:00 2001 From: wenc000 <450292408@qq.com> Date: Sat, 14 Mar 2020 22:41:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=94=9F=E6=88=90mapper?= =?UTF-8?q?=E7=9A=84=E6=96=87=E4=BB=B6=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dynamic/config/impl/DynamicConfigTableServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }