wu
2023-11-03 17b8d077f7efe3db20344987cdad9da9d9ab3de6
springboot-vue3/src/main/java/com/example/springboot/service/JdbcConnections.java
@@ -32,7 +32,7 @@
         ps.setInt(1, glassid);
         rs= ps.executeQuery();
         while (rs.next()) {
         glass.setOrderId(rs.getShort("orderid"));
         glass.setOrderId(rs.getString("orderid"));
         }
       conn.close();
         return glass;
@@ -56,7 +56,7 @@
    */
   public static Connection getConn() throws SQLException {
      Connection conn = null;
      conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/canadameserp?serverTimezone=GMT%2B8&characterEncoding=utf-8", "root", "beibo.123/");
      conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/canadames?serverTimezone=GMT%2B8&characterEncoding=utf-8", "root", "beibo.123/");
      return conn;
   }