Skip to content

Commit df1cdb3

Browse files
author
Washmore
committed
"``"特殊处理;
washmore
1 parent 70302fb commit df1cdb3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

autocode.core/src/main/java/tech/washmore/autocode/core/generator/mysql/MysqlAbstractMapperXmlGenerator.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,10 @@ private void generateMapper(TableModel tm) throws IOException {
179179
file.createNewFile();
180180

181181
OutputStream ops = new FileOutputStream(file);
182-
ops.write(sb.toString().getBytes());
182+
ops.write(sb.toString()
183+
.replace("\"`", "\"")
184+
.replace("`\"", "\"")
185+
.getBytes());
183186
ops.flush();
184187
ops.close();
185188
System.out.println("\t输出文件:" + file.getPath().replace(new File(config.getProject().getPath()).getPath(), ""));

0 commit comments

Comments
 (0)