|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | switch (this.sqlOsType) { | 
|---|
|  |  |  | case MYSQL: | 
|---|
|  |  |  | Class.forName("com.mysql.jdbc.Driver").newInstance(); | 
|---|
|  |  |  | Class.forName("com.mysql.cj.jdbc.Driver").newInstance(); | 
|---|
|  |  |  | conn = DriverManager.getConnection("jdbc:mysql://"+url, username, password); | 
|---|
|  |  |  | this.columns = getMysqlColumns(conn, table, true, sqlOsType); | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (column.getName().equals("deleted")) { | 
|---|
|  |  |  | entityIm.append("import com.baomidou.mybatisplus.annotation.TableLogic;\n"); | 
|---|
|  |  |  | sb.append("    ") | 
|---|
|  |  |  | .append("@TableLogic\n"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if ("Date".equals(column.getType())){ | 
|---|
|  |  |  | if (setDateTimeFormat){ | 
|---|
|  |  |  | entityIm.append("import org.springframework.format.annotation.DateTimeFormat;").append("\n"); | 
|---|