#
zhou zhou
1 天以前 c65d967bee45b38f0077cfd8f7971787b7042e98
rsf-framework/src/main/java/com/vincent/rsf/framework/generators/ReactGenerator.java
@@ -258,8 +258,8 @@
        }
        switch (this.sqlOsType) {
            case MYSQL:
                Class.forName("com.mysql.jdbc.Driver").newInstance();
                conn = DriverManager.getConnection("jdbc:mysql://"+url+"?useUnicode=true&characterEncoding=UTF-8&useSSL=false", username, password);
                Class.forName("com.mysql.cj.jdbc.Driver").newInstance();
                conn = DriverManager.getConnection("jdbc:mysql://"+url, username, password);
                this.columns = getMysqlColumns(conn, table, true, sqlOsType);
                break;
            case SQL_SERVER:
@@ -387,6 +387,9 @@
        boolean setTableId = true;
        boolean setDateTimeFormat = true;
        for (Column column : columns){
//            System.out.println("------==========>");
//            System.out.println(column.getName());
//            System.out.println(column.getType());
            if (column.getType().equals("Date")){
                entityIm.append("import java.text.SimpleDateFormat;\n")
                        .append("import java.util.Date;\n");
@@ -403,7 +406,7 @@
            }
            // swagger
            sb.append("    @ApiModelProperty(value= \"")
            sb.append("    @Schema(description = \"")
                    .append(column.getWholeComment())
                    .append("\")\n");