File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
src/com/yanglb/utilitys/codegen Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,9 @@ public String genDdl(DdlModel model) throws CodeGenException {
166166 if (autoIncrement != null ) {
167167 info .append (String .format ("AUTO_INCREMENT=%d " , autoIncrement ));
168168 }
169+
170+ // 注释
171+ info .append (String .format ("COMMENT='%s'" , model .getSheetName ()));
169172
170173 // 结束
171174 sb .append (String .format (") %s;\r \n \r \n " , info .toString ().trim ()));
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ public boolean invoke(String[] args) {
8181 * 显示帮助信息
8282 */
8383 private void showHelp () {
84- System .out .println ("代码生成器 v2.0.2 使用说明" );
84+ System .out .println ("代码生成器 v2.0.3 使用说明" );
8585 System .out .println ("Copyright 2015-2019 yanglb.com All Rights Reserved." );
8686 System .out .println ();
8787 System .out .println ("用法:" );
You can’t perform that action at this time.
0 commit comments