|
@@ -523,8 +523,10 @@ public class AutoGenerator {
|
|
bw.newLine();
|
|
bw.newLine();
|
|
bw.write("import com.baomidou.mybatisplus.annotations.TableId;");
|
|
bw.write("import com.baomidou.mybatisplus.annotations.TableId;");
|
|
bw.newLine();
|
|
bw.newLine();
|
|
- bw.write("import com.baomidou.mybatisplus.annotations.TableName;");
|
|
|
|
- bw.newLine();
|
|
|
|
|
|
+ if (table.contains("_")) {
|
|
|
|
+ bw.write("import com.baomidou.mybatisplus.annotations.TableName;");
|
|
|
|
+ bw.newLine();
|
|
|
|
+ }
|
|
bw = buildClassComment(bw, tableComment);
|
|
bw = buildClassComment(bw, tableComment);
|
|
bw.newLine();
|
|
bw.newLine();
|
|
/* 包含下划线注解 */
|
|
/* 包含下划线注解 */
|