xiongzhu 7 жил өмнө
parent
commit
6840a83a33

+ 2 - 1
migrate.sql

@@ -9,4 +9,5 @@ create table sharerecord
 )
   comment '分享记录';
 
-ALTER TABLE cashrecord ALTER COLUMN AccountingDate SET DEFAULT CURRENT_TIMESTAMP;
+ALTER TABLE cashrecord ALTER COLUMN AccountingDate SET DEFAULT CURRENT_TIMESTAMP;
+ALTER TABLE cashrecord ALTER COLUMN FeeDate SET DEFAULT CURRENT_TIMESTAMP;

+ 6 - 1
src/main/java/dbconnection/DbConnection.java

@@ -111,7 +111,6 @@ public class DbConnection {
             stmt = conn.createStatement();
             Number = stmt.executeUpdate(sql);
             // update by gongbaolei for getGeneratedKeys
-            // �õ�����ӻ��߸��µ����ID
             if (Number > 0) {
                 ResultSet rs = stmt.getGeneratedKeys();
                 while (rs.next()) {
@@ -224,4 +223,10 @@ public class DbConnection {
         }
         return Number;
     }
+
+    public static void main(String[] args){
+        DbConnection connection=new DbConnection();
+        connection.executeQuery("Select a.PK AS BrokerPK, a.MemberPK, a.superPK, \t   b.Tel, b.Pass, a.Name, a.IsAdmin, a.Auth, b.MembType From BrokerInfor a Left Join MemberInfo b on a.MemberPK = b.PK Where b.Tel='admin' ");
+        System.out.println("");
+    }
 }