yuliang 5 anos atrás
pai
commit
74480249a3

+ 19 - 0
whepi-ui/templates/yeweihui/home.ftl

@@ -82,6 +82,25 @@
                 console.log(reportDate);
                 $("#exportRiBaoLink").val(window.location.hostname + "/yeweihui/exportRiBao?userId=" + $('#userId').val() + "&date=" + reportDate);
 
+                $.ajax({
+                    url: '/yeweihui/ribaohuiz',
+                    data: {
+                        "userCreate": $('#userId').val(),
+                        "reportDate": reportDate,
+                    },
+                    type: 'GET',
+                    success: function (data) {
+                        // $('#ribao_famliy').empty();
+                        for (var i = 0; i < data.data.length; i++) {
+                            var v = data.data[i];
+                            var t1 = $('<td align="center">' + v.num + '</td>');
+                            $("#huiz").append(t1);
+                        }
+                    },
+                    error: function () {
+                    }
+                });
+
 
             }
         });

+ 3 - 3
whepi-web/src/main/resources/application-dev.yml

@@ -63,9 +63,9 @@ spring:
     #driverClassName: com.mysql.jdbc.Driver
     #url: jdbc:mysql://localhost:3306/bofeng_test?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false
     driverClassName: net.sf.log4jdbc.DriverSpy
-    url: jdbc:log4jdbc:mysql://39.99.148.1:3306/whepi_test?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false
-    username: whepi_test
-    password: 123456
+    url: jdbc:log4jdbc:mysql://localhost:3306/whepi_test?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false
+    username: root
+    password:
 
   redis:
     database: 4