Administrator 3 年之前
父節點
當前提交
93ffb57491
共有 30 個文件被更改,包括 1144 次插入761 次删除
  1. 4 1
      leiSP-admin/pom.xml
  2. 6 1
      leiSP-admin/src/main/resources/application-druid.yml
  3. 8 8
      leiSP-admin/src/main/resources/application.yml
  4. 64 44
      leiSP-admin/src/main/resources/templates/main.html
  5. 2 1
      leiSP-framework/src/main/java/com/sooka/framework/config/ShiroConfig.java
  6. 7 4
      mybusiness/pom.xml
  7. 17 0
      mybusiness/src/main/java/com/business/controller/Imputation_GJJ.java
  8. 26 0
      mybusiness/src/main/java/com/sooka/mainpage/controller/MainPageController.java
  9. 15 0
      mybusiness/src/main/java/com/sooka/mainpage/domain/InterfaceCallCount_Bean.java
  10. 12 0
      mybusiness/src/main/java/com/sooka/mainpage/domain/InterfacePinci_Day_Bean.java
  11. 9 0
      mybusiness/src/main/java/com/sooka/mainpage/domain/MainPageBean.java
  12. 15 0
      mybusiness/src/main/java/com/sooka/mainpage/domain/Qssjgxqk_Bean.java
  13. 20 0
      mybusiness/src/main/java/com/sooka/mainpage/mapper/MainPageMapper.java
  14. 10 0
      mybusiness/src/main/java/com/sooka/mainpage/service/MainPageService.java
  15. 65 0
      mybusiness/src/main/java/com/sooka/mainpage/service/impl/MainPageServiceImpl.java
  16. 13 9
      mybusiness/src/main/java/com/util/HttpUtil.java
  17. 58 0
      mybusiness/src/main/java/com/util/HttpUtil2.java
  18. 27 0
      mybusiness/src/main/java/com/util/TrustAllTrustManager.java
  19. 53 0
      mybusiness/src/main/resources/mapper/mainpage/MainPageMapper.xml
  20. 55 50
      mybusiness/src/main/resources/static/visualization/allcharts/eventPieTh.js
  21. 91 211
      mybusiness/src/main/resources/static/visualization/allcharts/humanTh.js
  22. 92 85
      mybusiness/src/main/resources/static/visualization/allcharts/jkTh.js
  23. 90 85
      mybusiness/src/main/resources/static/visualization/allcharts/jkTh2.js
  24. 98 83
      mybusiness/src/main/resources/static/visualization/allcharts/jkpcTh.js
  25. 130 123
      mybusiness/src/main/resources/static/visualization/allcharts/th-echart1.js
  26. 1 1
      mybusiness/src/main/resources/templates/system/interfaceinfo/edit.html
  27. 6 4
      mybusiness/src/main/resources/templates/system/interfaceinfo/interfaceinfo.html
  28. 8 8
      mybusiness/src/main/resources/templates/system/sfz/detail.html
  29. 130 33
      mybusiness/src/main/resources/templates/visualization/index.html
  30. 12 10
      pom.xml

+ 4 - 1
leiSP-admin/pom.xml

@@ -91,6 +91,9 @@
             <version>1.13</version>
         </dependency>
 
+
+
+
     </dependencies>
 
     <build>
@@ -116,7 +119,7 @@
                 <version>3.0.0</version>
                 <configuration>
                     <failOnMissingWebXml>false</failOnMissingWebXml>
-                    <!--<warName>${project.artifactId}</warName>-->
+                    <!--<warName>thsjzt</warName>-->
                 </configuration>
            </plugin>
         </plugins>

+ 6 - 1
leiSP-admin/src/main/resources/application-druid.yml

@@ -1,12 +1,17 @@
 # 数据源配置
 spring:
+    jmx:
+      default-domain: thsjzt
     datasource:
         type: com.alibaba.druid.pool.DruidDataSource
         driverClassName: com.mysql.cj.jdbc.Driver
         druid:
             # 主库数据源
             master:
-                url: jdbc:mysql://36.97.65.105:53306/thsjzt?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+#                url: jdbc:mysql://36.97.65.105:53306/thsjzt?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+                url: jdbc:mysql://172.17.5.7:3306/thsjzt?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+#                url: jdbc:mysql://10.0.51.4:8888/thsjzt?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+
                 username: thsjzt
                 password: thsjzt
             # 从库数据源

+ 8 - 8
leiSP-admin/src/main/resources/application.yml

@@ -7,7 +7,7 @@ leisp:
   # 版权年份
   copyrightYear: 2019
   # 实例演示开关
-  demoEnabled: true
+  demoEnabled: false
   # 文件路径 示例( Windows配置D:/leisp/uploadPath,Linux配置 /home/leisp/uploadPath)
   profile: D:/workingSpace/IEDA_Pro/lEISP/leiSP-admin/src/main/resources/static/img/upload
   # 获取ip地址开关
@@ -16,7 +16,7 @@ leisp:
 # 开发环境配置
 server:
   # 服务器的HTTP端口,默认为80
-  port: 80
+  port: 9090
   servlet:
     # 应用的访问路径
     context-path: /
@@ -27,7 +27,7 @@ server:
     max-threads: 800
     # Tomcat启动初始化的线程数,默认值25
     min-spare-threads: 30
- 
+
 # 日志配置
 logging:
   level:
@@ -55,7 +55,7 @@ spring:
   jackson:
     time-zone: GMT+8
     date-format: yyyy-MM-dd HH:mm:ss
-  profiles: 
+  profiles:
     active: druid
   # 文件上传
   servlet:
@@ -80,11 +80,11 @@ mybatis:
     configLocation: classpath:mybatis/mybatis-config.xml
 
 # PageHelper分页插件
-pagehelper: 
+pagehelper:
   helperDialect: mysql
   reasonable: true
   supportMethodsArguments: true
-  params: count=countSql 
+  params: count=countSql
 
 # Shiro
 shiro:
@@ -101,7 +101,7 @@ shiro:
     captchaType: math
   cookie:
     # 设置Cookie的域名 默认空,即当前访问的域名
-    domain: 
+    domain:
     # 设置cookie的有效访问路径
     path: /
     # 设置HttpOnly属性
@@ -123,7 +123,7 @@ shiro:
     kickoutAfter: false
 
 # 防止XSS攻击
-xss: 
+xss:
   # 过滤开关
   enabled: true
   # 排除链接(多个用逗号分隔)

+ 64 - 44
leiSP-admin/src/main/resources/templates/main.html

@@ -90,61 +90,61 @@
         <div class="th-wid-6 ibox-th-colorbar1">
 
             <div class="col-sm-6 ibox-left-th">
-                <img src="/img/jkzs.png">
+                <img th:src="@{/img/jkzs.png}">
                 <h5>接口总数</h5>
             </div>
             <div class="col-sm-6 ibox-right-th">
-                <span>39</span>
+                <span id="tj_interface_total">39</span>
             </div>
         </div>
         <div class="th-wid-6 ibox-th-colorbar2">
 
             <div class="col-sm-6 ibox-left-th">
-                <img src="/img/dypc.png">
+                <img th:src="@{/img/dypc.png}">
                 <h5>调用频次</h5>
             </div>
             <div class="col-sm-6 ibox-right-th">
-                <span>39</span>
+                <span id="tj_dypc">39</span>
             </div>
         </div>
         <div class="th-wid-6 ibox-th-colorbar3">
 
             <div class="col-sm-6 ibox-left-th">
-                <img src="/img/gjpc.png">
+                <img th:src="@{/img/gjpc.png}">
                 <h5>归集频次</h5>
             </div>
             <div class="col-sm-6 ibox-right-th">
-                <span>39</span>
+                <span id="tj_gjpc">39</span>
             </div>
         </div>
         <div class="th-wid-6 ibox-th-colorbar4">
 
             <div class="col-sm-6 ibox-left-th">
-                <img src="/img/gxpc.png">
+                <img th:src="@{/img/gxpc.png}">
                 <h5>共享频次</h5>
             </div>
             <div class="col-sm-6 ibox-right-th">
-                <span>39</span>
+                <span id="tj_gxpc">39</span>
             </div>
         </div>
         <div class="th-wid-6 ibox-th-colorbar5">
 
             <div class="col-sm-6 ibox-left-th">
-                <img src="/img/jrbm.png">
-                <h5>接入部门</h5>
+                <img th:src="@{/img/jrbm.png}">
+                <h5 >接入部门</h5>
             </div>
             <div class="col-sm-6 ibox-right-th">
-                <span>39</span>
+                <span id="tj_jrbm">39</span>
             </div>
         </div>
         <div class="th-wid-6 ibox-th-colorbar6">
 
             <div class="col-sm-6 ibox-left-th">
-                <img src="/img/jkgz.png">
+                <img th:src="@{/img/jkgz.png}">
                 <h5>接口故障</h5>
             </div>
             <div class="col-sm-6 ibox-right-th">
-                <span>39</span>
+                <span id="tj_jkgz">39</span>
             </div>
         </div>
 
@@ -187,34 +187,28 @@
 
 <th:block th:include="include :: sparkline-js"/>
 <script type="text/javascript">
-    $(document).ready(function () {
-        var data2 = [
-            [gd(2012, 1, 1), 7], [gd(2012, 1, 2), 6], [gd(2012, 1, 3), 4], [gd(2012, 1, 4), 8],
-            [gd(2012, 1, 5), 9], [gd(2012, 1, 6), 7], [gd(2012, 1, 7), 5], [gd(2012, 1, 8), 4],
-            [gd(2012, 1, 9), 7], [gd(2012, 1, 10), 8], [gd(2012, 1, 11), 9], [gd(2012, 1, 12), 6],
-            [gd(2012, 1, 13), 4], [gd(2012, 1, 14), 5], [gd(2012, 1, 15), 11], [gd(2012, 1, 16), 8],
-            [gd(2012, 1, 17), 8], [gd(2012, 1, 18), 11], [gd(2012, 1, 19), 11], [gd(2012, 1, 20), 6],
-            [gd(2012, 1, 21), 6], [gd(2012, 1, 22), 8], [gd(2012, 1, 23), 11], [gd(2012, 1, 24), 13],
-            [gd(2012, 1, 25), 7], [gd(2012, 1, 26), 9], [gd(2012, 1, 27), 9], [gd(2012, 1, 28), 8],
-            [gd(2012, 1, 29), 5], [gd(2012, 1, 30), 8], [gd(2012, 1, 31), 25]
-        ];
 
-        var data3 = [
-            [gd(2012, 1, 1), 800], [gd(2012, 1, 2), 500], [gd(2012, 1, 3), 600], [gd(2012, 1, 4), 700],
-            [gd(2012, 1, 5), 500], [gd(2012, 1, 6), 456], [gd(2012, 1, 7), 800], [gd(2012, 1, 8), 589],
-            [gd(2012, 1, 9), 467], [gd(2012, 1, 10), 876], [gd(2012, 1, 11), 689], [gd(2012, 1, 12), 700],
-            [gd(2012, 1, 13), 500], [gd(2012, 1, 14), 600], [gd(2012, 1, 15), 700], [gd(2012, 1, 16), 786],
-            [gd(2012, 1, 17), 345], [gd(2012, 1, 18), 888], [gd(2012, 1, 19), 888], [gd(2012, 1, 20), 888],
-            [gd(2012, 1, 21), 987], [gd(2012, 1, 22), 444], [gd(2012, 1, 23), 999], [gd(2012, 1, 24), 567],
-            [gd(2012, 1, 25), 786], [gd(2012, 1, 26), 666], [gd(2012, 1, 27), 888], [gd(2012, 1, 28), 900],
-            [gd(2012, 1, 29), 178], [gd(2012, 1, 30), 555], [gd(2012, 1, 31), 993]
-        ];
+
+    function drawPlot(d2){
+        // var data2 = [
+        //     [gd(2012, 1, 1), 7], [gd(2012, 1, 2), 6], [gd(2012, 1, 3), 4], [gd(2012, 1, 4), 8],
+        //     [gd(2012, 1, 5), 9], [gd(2012, 1, 6), 7], [gd(2012, 1, 7), 5], [gd(2012, 1, 8), 4],
+        //     [gd(2012, 1, 9), 7], [gd(2012, 1, 10), 8], [gd(2012, 1, 11), 9], [gd(2012, 1, 12), 6],
+        //     [gd(2012, 1, 13), 4], [gd(2012, 1, 14), 5], [gd(2012, 1, 15), 11], [gd(2012, 1, 16), 8],
+        //     [gd(2012, 1, 17), 8], [gd(2012, 1, 18), 11], [gd(2012, 1, 19), 11], [gd(2012, 1, 20), 6],
+        //     [gd(2012, 1, 21), 6], [gd(2012, 1, 22), 8], [gd(2012, 1, 23), 11], [gd(2012, 1, 24), 13],
+        //     [gd(2012, 1, 25), 7], [gd(2012, 1, 26), 9], [gd(2012, 1, 27), 9], [gd(2012, 1, 28), 8],
+        //     [gd(2012, 1, 29), 5], [gd(2012, 1, 30), 8], [gd(2012, 1, 31), 25]
+        // ];
+        var data2 = d2;
+
+        var data3 = d2;
 
 
         var dataset = [
             {
-                label: "订单数",
-                data: data3,
+                label: "调用频次",
+                data: data2,
                 color: "#1ab394",
                 bars: {
                     show: true,
@@ -253,7 +247,7 @@
         var options = {
             xaxis: {
                 mode: "time",
-                tickSize: [3, "day"],
+                tickSize: [1000, "day"],
                 tickLength: 0,
                 axisLabel: "Date",
                 axisLabelUseCanvas: true,
@@ -290,16 +284,42 @@
                 color: '#838383'
             }
         };
+        $.plot($("#flot-dashboard-chart"), dataset, options);
+    }
+    function gd(year, month, day) {
+        return new Date(year, month - 1, day).getTime();
+    }
 
-        function gd(year, month, day) {
-            return new Date(year, month - 1, day).getTime();
-        }
-
-        var previousPoint = null,
-            previousLabel = null;
+    $(document).ready(function () {
+        getVisualization();
 
-        $.plot($("#flot-dashboard-chart"), dataset, options);
     });
 </script>
+<script>
+    function getVisualization() {
+        $.ajax({
+            url: '/MainPageController/getVisualization',
+            method: 'POST',
+            success: getVisualization_Success
+        })
+    }
+    function getVisualization_Success(d) {
+
+        $("#tj_interface_total").text(d.tj_interface_total);
+        $("#tj_dypc").text(d.tj_dypc);
+        $("#tj_gjpc").text(d.tj_gjpc);
+        $("#tj_gxpc").text(d.tj_gxpc);
+        $("#tj_jrbm").text(d.tj_jrbm);
+        $("#tj_jkgz").text(d.tj_jkgz);
+
+        var d2=[];
+        $.each(d.interfacePinci_day_list,function (index,data) {
+            var s = data.day.split("/");
+            var k =[gd(s[0],s[1],s[2]), data.cou];
+            d2.push(k);
+        });
+        drawPlot(d2);
+    }
+</script>
 </body>
 </html>

+ 2 - 1
leiSP-framework/src/main/java/com/sooka/framework/config/ShiroConfig.java

@@ -37,7 +37,7 @@ import at.pollux.thymeleaf.shiro.dialect.ShiroDialect;
 
 /**
  * 权限配置加载
- * 
+ *
  * @author lei_wang
  */
 @Configuration
@@ -290,6 +290,7 @@ public class ShiroConfig
         filterChainDefinitionMap.put("/register", "anon,captchaValidate");
         // 系统权限列表
         // filterChainDefinitionMap.putAll(SpringUtils.getBean(IMenuService.class).selectPermsAll());
+        filterChainDefinitionMap.put("/imputation/**", "anon");
 
         Map<String, Filter> filters = new LinkedHashMap<String, Filter>();
         filters.put("onlineSession", onlineSessionFilter());

+ 7 - 4
mybusiness/pom.xml

@@ -33,10 +33,13 @@
 			<artifactId>leisp-framework</artifactId>
 		</dependency>
 
-		<dependency>
-			<groupId>com.leisp</groupId>
-			<artifactId>leisp-admin</artifactId>
-		</dependency>
+		<!--<dependency>-->
+			<!--<groupId>com.leisp</groupId>-->
+			<!--<artifactId>leisp-admin</artifactId>-->
+		<!--</dependency>-->
+
+
+
 
 
 

+ 17 - 0
mybusiness/src/main/java/com/business/controller/Imputation_GJJ.java

@@ -0,0 +1,17 @@
+package com.business.controller;
+
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+@RestController
+@RequestMapping("/imputation")
+public class Imputation_GJJ {
+
+    @RequestMapping("test")
+    public void test(@RequestBody String str){
+        System.out.println("测试..................."+str);
+    }
+
+
+}

+ 26 - 0
mybusiness/src/main/java/com/sooka/mainpage/controller/MainPageController.java

@@ -0,0 +1,26 @@
+package com.sooka.mainpage.controller;
+
+import com.sooka.mainpage.service.MainPageService;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.ResponseBody;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.annotation.Resource;
+import java.util.Map;
+
+@RestController
+@RequestMapping("/MainPageController")
+public class MainPageController {
+
+    @Resource
+    MainPageService mainPageService;
+
+    @RequestMapping("getVisualization")
+    @ResponseBody
+    public Map getVisualization(){
+        return mainPageService.getVisualization();
+    }
+
+
+}

+ 15 - 0
mybusiness/src/main/java/com/sooka/mainpage/domain/InterfaceCallCount_Bean.java

@@ -0,0 +1,15 @@
+package com.sooka.mainpage.domain;
+
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+@Setter
+public class InterfaceCallCount_Bean {
+
+    String dept_id;
+    String dept_name;
+    Integer cou;
+    Integer cou_gx;
+    Integer cou_gj;
+}

+ 12 - 0
mybusiness/src/main/java/com/sooka/mainpage/domain/InterfacePinci_Day_Bean.java

@@ -0,0 +1,12 @@
+package com.sooka.mainpage.domain;
+
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+@Setter
+public class InterfacePinci_Day_Bean {
+
+    public String day;
+    public Integer cou;
+}

+ 9 - 0
mybusiness/src/main/java/com/sooka/mainpage/domain/MainPageBean.java

@@ -0,0 +1,9 @@
+package com.sooka.mainpage.domain;
+
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+@Setter
+public class MainPageBean {
+}

+ 15 - 0
mybusiness/src/main/java/com/sooka/mainpage/domain/Qssjgxqk_Bean.java

@@ -0,0 +1,15 @@
+package com.sooka.mainpage.domain;
+
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+@Setter
+public class Qssjgxqk_Bean {
+
+    Integer dept_id;
+    String dept_name;
+    Integer gx_cou;
+    Integer gj_cou;
+    Integer total_cou;
+}

+ 20 - 0
mybusiness/src/main/java/com/sooka/mainpage/mapper/MainPageMapper.java

@@ -0,0 +1,20 @@
+package com.sooka.mainpage.mapper;
+
+import java.util.List;
+
+public interface MainPageMapper {
+
+    public void getMainPageCount();
+
+    //top部门接口调用排名
+    public List interfaceCallCount();
+
+    //全市数据共享情况
+    public List qssjgxqk();
+
+    //接口使用频次
+    public List getInterfacePinci_day();
+
+
+
+}

+ 10 - 0
mybusiness/src/main/java/com/sooka/mainpage/service/MainPageService.java

@@ -0,0 +1,10 @@
+package com.sooka.mainpage.service;
+
+import java.util.Map;
+
+public interface MainPageService {
+
+    public Map getVisualization();
+
+
+}

+ 65 - 0
mybusiness/src/main/java/com/sooka/mainpage/service/impl/MainPageServiceImpl.java

@@ -0,0 +1,65 @@
+package com.sooka.mainpage.service.impl;
+
+import com.sooka.mainpage.domain.InterfaceCallCount_Bean;
+import com.sooka.mainpage.domain.Qssjgxqk_Bean;
+import com.sooka.mainpage.mapper.MainPageMapper;
+import com.sooka.mainpage.service.MainPageService;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+@Service
+public class MainPageServiceImpl implements MainPageService {
+
+    @Resource
+    MainPageMapper mainPageMapper;
+
+    @Override
+    public Map getVisualization() {
+        Map map = new HashMap();
+        List<InterfaceCallCount_Bean> interfaceCallCount_List = mainPageMapper.interfaceCallCount();
+        map.put("interfaceCallCount_List",interfaceCallCount_List);
+        List<Qssjgxqk_Bean> qssjgxqk_List = mainPageMapper.qssjgxqk();
+        map.put("qssjgxqk_List",qssjgxqk_List);
+        //共享接口总数//归集接口总数
+        int zb_guiji =0;
+        int zb_gongxiang =0;
+        for(int i=0;i<qssjgxqk_List.size();i++){
+            Qssjgxqk_Bean b = qssjgxqk_List.get(i);
+            zb_guiji += b.getGj_cou();
+            zb_gongxiang+= b.getGx_cou();
+        }
+        int tj_interface_total = zb_guiji+zb_gongxiang;
+        map.put("zb_guiji",zb_guiji);
+        map.put("zb_gongxiang",zb_gongxiang);
+        //接口总数、调用频次、归集频次、共享频次、接入部门、接口故障
+        int tj_dypc=0;
+        int tj_gxpc =0;
+        int tj_gjpc =0;
+        for(int i=0;i<interfaceCallCount_List.size();i++){
+            InterfaceCallCount_Bean b = interfaceCallCount_List.get(i);
+            tj_gjpc+= b.getCou_gj();
+            tj_gxpc+= b.getCou_gx();
+        }
+        tj_dypc = tj_gxpc+tj_gjpc;
+
+        map.put("tj_interface_total",tj_interface_total);
+        map.put("tj_dypc",tj_dypc);
+        map.put("tj_gjpc",tj_gjpc);
+        map.put("tj_gxpc",tj_gxpc);
+        map.put("tj_jrbm",interfaceCallCount_List.size());
+        map.put("tj_jkgz",0);
+
+        //接口使用频次- 日
+        List interfacePinci_day_list  = mainPageMapper.getInterfacePinci_day();
+        map.put("interfacePinci_day_list",interfacePinci_day_list);
+        return map;
+    }
+
+
+
+
+}

+ 13 - 9
mybusiness/src/main/java/com/util/HttpUtil.java

@@ -12,7 +12,7 @@ import java.util.*;
 
 import javax.servlet.http.HttpServletRequest;
 
-import static com.sun.org.apache.xml.internal.security.keys.keyresolver.KeyResolver.iterator;
+
 
 public class HttpUtil {
 
@@ -35,9 +35,9 @@ public class HttpUtil {
 			// 设置通用的请求属�? 更多的头字段信息可以查阅HTTP协议
 			conn.setRequestProperty("accept", "*/*");
 			conn.setRequestProperty("connection", "Keep-Alive");
-
 			conn.setRequestProperty("contentType", "UTF-8");
 
+
 			if(headerparam != null){
 				Set<String> keys =headerparam.keySet();
 				Iterator<String> iterator = keys.iterator();
@@ -47,9 +47,6 @@ public class HttpUtil {
 					conn.setRequestProperty(key,value);
 				}
 			}
-
-
-
 			// 3.使用 connect 方法建立到远程对象的实际连接�?
 			conn.connect();
 
@@ -239,11 +236,18 @@ public class HttpUtil {
 
 	public static void main(String[] args) {
 		Map map = new HashMap();
-		map.put("accessId","1625205696412");
-		map.put("stringToSign","4ab54dea9926f3386b56fd5fe51b35ae0fe1405a");
+		map.put("secretKey","acce34496f164368927000c2626da7bc");
+		map.put("intCode","00002");
+		map.put("Content-Type", "application/json");
+		String params = "{\"certNumberMan\":\"220102198208132818\",\"nameMan\":\"孙一石\"}";
+//		String params = "certNumberMan=220102198208132818&nameMan=孙一石";
 
-		String r =doGet("http://127.0.0.1:88/api/test/sfz","",map);
-		System.out.println(r);
+		try {
+			String r =HttpUtil2.doPost("http://127.0.0.1:88/api/test/peoplemarryInfosingle", params,map);
+			System.out.println(r);
+		} catch (Exception e) {
+			e.printStackTrace();
+		}
 	}
 
 }

+ 58 - 0
mybusiness/src/main/java/com/util/HttpUtil2.java

@@ -0,0 +1,58 @@
+package com.util;
+
+import javax.net.ssl.HttpsURLConnection;
+import javax.net.ssl.SSLContext;
+import javax.net.ssl.SSLSessionContext;
+import javax.net.ssl.TrustManager;
+import java.io.InputStreamReader;
+import java.io.OutputStreamWriter;
+import java.net.HttpURLConnection;
+import java.net.URL;
+import java.util.Iterator;
+import java.util.Map;
+import java.util.Set;
+
+public class HttpUtil2 {
+
+    public static String doPost (String url, String param, Map headerparam) throws Exception {
+        URL reqURL = new URL(url); //创建URL对象
+        HttpURLConnection httpsConn = (HttpURLConnection) reqURL.openConnection();
+        httpsConn.setDoOutput(true);
+        httpsConn.setRequestMethod("POST");
+//        httpsConn.setRequestProperty("Content-type", "application/x-www-form-urlencoded");
+        httpsConn.setRequestProperty("Accept-Charset", "utf-8");
+        httpsConn.setRequestProperty("contentType", "utf-8");
+        httpsConn.setRequestProperty("Content-Length", param.length()
+                + "");
+
+
+        if(headerparam != null){
+            Set<String> keys =headerparam.keySet();
+            Iterator<String> iterator = keys.iterator();
+            while(iterator.hasNext()){
+                String key =iterator.next().toString();
+                String value = headerparam.get(key).toString();
+                httpsConn.setRequestProperty(key,value);
+            }
+        }
+
+
+        OutputStreamWriter out = new OutputStreamWriter(httpsConn.getOutputStream(), "utf-8");
+        out.write(param.toString());
+        out.flush();
+        out.close();
+//取得该连接的输入流,以读取响应内容
+        InputStreamReader insr = new InputStreamReader(httpsConn.getInputStream(), "utf-8");
+
+//读取服务器的响应内容并显示
+        String result = "";
+        int respInt = insr.read();
+        while (respInt != -1) {
+            result += (char) respInt;
+            respInt = insr.read();
+        }
+        return result;
+    }
+
+
+}

+ 27 - 0
mybusiness/src/main/java/com/util/TrustAllTrustManager.java

@@ -0,0 +1,27 @@
+package com.util;
+
+public class TrustAllTrustManager implements javax.net.ssl.TrustManager, javax.net.ssl.X509TrustManager {
+
+    public java.security.cert.X509Certificate[] getAcceptedIssuers() {
+        return null;
+    }
+
+    public boolean isServerTrusted(java.security.cert.X509Certificate[] certs) {
+        return true;
+    }
+
+    public boolean isClientTrusted(java.security.cert.X509Certificate[] certs) {
+        return true;
+    }
+
+    public void checkServerTrusted(java.security.cert.X509Certificate[] certs, String authType)
+            throws java.security.cert.CertificateException {
+        return;
+    }
+
+    public void checkClientTrusted(java.security.cert.X509Certificate[] certs, String authType)
+            throws java.security.cert.CertificateException {
+        return;
+    }
+
+}

+ 53 - 0
mybusiness/src/main/resources/mapper/mainpage/MainPageMapper.xml

@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.sooka.mainpage.mapper.MainPageMapper">
+    <resultMap id="rm_InterfaceCallCount_Bean" type="com.sooka.mainpage.domain.InterfaceCallCount_Bean"></resultMap>
+    <select id="interfaceCallCount" resultMap="rm_InterfaceCallCount_Bean">
+     select dept_id,dept_name, IFNULL(info.cou,0) cou,  IFNULL(info_gx.cou,0) cou_gx,IFNULL(info_gj.cou,0) cou_gj from sys_dept dept
+		LEFT OUTER JOIN
+    (select c.apply_oid org_id, count(*) cou from t_u_interfaceinfo a,int_detailed b,int_record c,t_u_log d
+    where a.id = b.int_id and b.record_id=c.id and d.interfaceinfo_id=a.id
+    group by c.apply_oid) info
+    on (dept.dept_id=info.org_id)
+		LEFT OUTER JOIN
+		(select c.apply_oid org_id, count(*) cou from t_u_interfaceinfo a,int_detailed b,int_record c,t_u_log d
+    where a.id = b.int_id and b.record_id=c.id and d.interfaceinfo_id=a.id and a.share_type='share_type_1'
+    group by c.apply_oid) info_gx
+    on (dept.dept_id=info_gx.org_id)
+
+LEFT OUTER JOIN
+		(select c.apply_oid org_id, count(*) cou from t_u_interfaceinfo a,int_detailed b,int_record c,t_u_log d
+    where a.id = b.int_id and b.record_id=c.id and d.interfaceinfo_id=a.id and a.share_type='share_type_2'
+    group by c.apply_oid) info_gj
+    on (dept.dept_id=info_gj.org_id)
+
+where dept.del_flag=0 and dept.dept_id >200
+    order by  info.cou desc
+    </select>
+
+
+    <resultMap id="rm_qssjgxqk" type="com.sooka.mainpage.domain.Qssjgxqk_Bean"></resultMap>
+    <select id="qssjgxqk" resultMap="rm_qssjgxqk">
+        select dept.dept_id dept_id,dept.dept_name dept_name,IFNULL(gx.cou,0) gx_cou,IFNULL(gj.cou,0) gj_cou,
+        IFNULL(gx.cou,0)+IFNULL(gj.cou,0) total_cou
+        from sys_dept dept LEFT OUTER JOIN
+        (select c.apply_oid dept_id,count(*) cou from t_u_interfaceinfo a,int_detailed b,int_record c
+        where a.share_type='share_type_1' and a.id=b.int_id and b.record_id=c.id
+        group by c.apply_oid) gx on (dept.dept_id=gx.dept_id)
+        LEFT OUTER JOIN
+        (select c.apply_oid dept_id,count(*) cou from t_u_interfaceinfo a,int_detailed b,int_record c
+        where a.share_type='share_type_2' and a.id=b.int_id and b.record_id=c.id
+        group by c.apply_oid) gj on (gj.dept_id=dept.dept_id)
+        where dept.del_flag =0  and dept.dept_id>200
+    </select>
+
+    <resultMap id="rm_interfacepinci" type="com.sooka.mainpage.domain.InterfacePinci_Day_Bean"></resultMap>
+    <select id="getInterfacePinci_day" resultMap="rm_interfacepinci">
+        select DATE_FORMAT(create_time,'%Y/%m/%d') day,count(*) cou from t_u_log
+        group by DATE_FORMAT(create_time,'%Y/%m/%d')
+        order by create_time asc
+    </select>
+
+</mapper>

+ 55 - 50
mybusiness/src/main/resources/static/visualization/allcharts/eventPieTh.js

@@ -1,52 +1,57 @@
-var myChart_eventPie = echarts.init(document.getElementById('jkzb'));
-option_eventPie = {
-	color:['#0ad5c8', '#89ca75'],
-    tooltip: {
-        trigger: 'item',
-        formatter: '{a} <br/>{b}: {c} ({d}%)'
-    },
-    
-    legend: {
-        orient: 'horizontal',
-        top:'160',
-        left: 'center',
-        data: ['归集接口', '共享接口'],
-        textStyle: {
-      fontSize: 12,
-      color:'#00cdef'
-       },
-    },
-    series: [
-    
-        {
-            name: '接口占比',
-            type: 'pie',
-            center:['50%','40%'],
-            radius: ['50%', '60%'],
-            avoidLabelOverlap: false,
-            label: {
-                show: false,
-                position: 'center'
+function jkzb(zb_guiji,zb_gongxiang) {
+    var myChart_eventPie = echarts.init(document.getElementById('jkzb'));
+    option_eventPie = {
+        color: ['#0ad5c8', '#89ca75'],
+        tooltip: {
+            trigger: 'item',
+            formatter: '{a} <br/>{b}: {c} ({d}%)'
+        },
+
+        legend: {
+            orient: 'horizontal',
+            top: '160',
+            left: 'center',
+            data: ['归集接口', '共享接口'],
+            textStyle: {
+                fontSize: 12,
+                color: '#00cdef'
             },
-            
-            emphasis: {
+        },
+        series: [
+
+            {
+                name: '接口占比',
+                type: 'pie',
+                center: ['50%', '40%'],
+                radius: ['50%', '60%'],
+                avoidLabelOverlap: false,
                 label: {
-                    show: true,
-                    fontSize: '25',
-                    fontWeight: 'bold'
-                }
-            },
-            labelLine: {
-                show: false
-            },
-            data: [
-                {value: 5, name: '归集接口'},
-                {value: 10, name: '共享接口'},
-              
-            ],
-          
-        }
-    ]
-};
-
-myChart_eventPie.setOption(option_eventPie);
+                    show: false,
+                    position: 'center'
+                },
+
+                emphasis: {
+                    label: {
+                        show: true,
+                        fontSize: '25',
+                        fontWeight: 'bold'
+                    }
+                },
+                labelLine: {
+                    show: false
+                },
+                data: [
+                    {value:zb_guiji, name: '归集接口'},
+                    {value: zb_gongxiang, name: '共享接口'},
+
+                ],
+
+            }
+        ]
+    };
+
+    myChart_eventPie.setOption(option_eventPie);
+}
+
+
+

+ 91 - 211
mybusiness/src/main/resources/static/visualization/allcharts/humanTh.js

@@ -1,219 +1,99 @@
-var myChart_human = echarts.init(document.getElementById('jrbm'));
+
+function jrbm(arr_name,arr_value) {
+    var myChart_human = echarts.init(document.getElementById('jrbm'));
+
+    //组织数据-孙一石
+    var items = []
+    $.each(arr_value,function (index,data) {
+        var it = {
+                value: data,
+                itemStyle: {
+                    color: new echarts.graphic.LinearGradient
+                    (
+                        1, 0, 0, 1,
+                        [
+                            {offset: 0, color: '#00ffb9'},
+                            {offset: 0.5, color: '#26ddbe'},
+                            {offset: 0.8, color: '#2ebc95'},
+                            {offset: 1, color: '#2ebc95'}
+                        ]
+                    )
+
+                }
+            }
+            items.push(it)
+    })
+
+
+
+
 
     option_human = {
-    tooltip: {
-        trigger: 'axis',
-        axisPointer: {
-            type: 'shadow'
-        }
-    },
-    
-    grid: {
-	top:'10%',
-        left: '10%',
-        right: '10%',
-        bottom: '10%',
-        containLabel: true
-    },
-    xAxis: {
-        axisLine:{
-        	show:false
-        },
-        axisLabel:{
-        	show:false
+        tooltip: {
+            trigger: 'axis',
+            axisPointer: {
+                type: 'shadow'
+            }
         },
-        splitLine:{
-        	show:false
+
+        grid: {
+            top: '10%',
+            left: '10%',
+            right: '10%',
+            bottom: '10%',
+            containLabel: true
         },
-    },
-    yAxis: {
-      
-        type: 'category',
-        data: ['住建局','法院','卫健委','公积金', '民政局','不动产','文旅局'],
-        axisLine:{
-        	lineStyle:{
-        		color:'#00cdef'
-        	}
+        xAxis: {
+            axisLine: {
+                show: false
+            },
+            axisLabel: {
+                show: false
+            },
+            splitLine: {
+                show: false
+            },
         },
-        axisTick:{
-        	show:false
+        yAxis: {
+
+            type: 'category',
+            data: arr_name,
+            axisLine: {
+                lineStyle: {
+                    color: '#00cdef'
+                }
+            },
+            axisTick: {
+                show: false
+            },
+
         },
-   
-    },
-    
- 
-   
-    series : [
-        {
-            type:'bar',
-            barWidth:10,
-            itemStyle: {        //上方显示数值
-                normal: {
-                    label: {
-                        show: true, //开启显示
-                        position: 'insideLeft', //在上方显示
-                        textStyle: { //数值样式
-                            color: 'white',
-                            fontSize: 11
+
+
+        series: [
+            {
+                type: 'bar',
+                barWidth: 10,
+                itemStyle: {        //上方显示数值
+                    normal: {
+                        label: {
+                            show: true, //开启显示
+                            position: 'insideLeft', //在上方显示
+                            textStyle: { //数值样式
+                                color: 'white',
+                                fontSize: 11
+                            }
                         }
                     }
-                }
-            },
-          data:[
-              {
-                value:10,
-                
-                itemStyle:{
-                	
-                color:new echarts.graphic.LinearGradient
-                  	(
-                1, 0, 0, 1,
-                [
-                   {offset: 0, color: '#00feff'},
-                    {offset: 0.5, color: '#00feff'},
-                    {offset: 0.8, color: '#0066cc'},
-                    {offset: 1, color: '#0066cc'}
-                ]
-         
-                  	)
-              }
-              }, 
-              {
-                value:20,
-                itemStyle:{color:new echarts.graphic.LinearGradient
-                  	(
-                1, 0, 0, 1,
-                [
-                    {offset: 0, color: '#00ffb9'},
-                    {offset: 0.5, color: '#26ddbe'},
-                    {offset: 0.8, color: '#2ebc95'},
-                    {offset: 1, color: '#2ebc95'}
-                ]
-         
-                  	)
-                  	
-              }
-              },
-              {
-                value:9,
-                itemStyle:{
-                color:new echarts.graphic.LinearGradient
-                  	(
-                1, 0, 0, 1,
-                [
-                    {offset: 0, color: '#fff442'},
-                    {offset: 0.5, color: '#ffc300'},
-                    {offset: 0.8, color: '#e4c52a'},
-                    {offset: 1, color: '#ef8217'}
-                ]
-         
-                  	)
-              }
-              },
-              {
-                value:8,
-                itemStyle:{
-                   color:new echarts.graphic.LinearGradient
-                  	(
-                1, 0, 0, 1,
-                [
-                    {offset: 0, color: '#ff9900'},
-                    {offset: 0.5, color: '#ff9900'},
-                    {offset: 0.8, color: '#cc6600'},
-                    {offset: 1, color: '#cc6600'}
-                ]
-         
-                  	)
-              }
-              },
-                {
-                value:7,
-                itemStyle:{
-                   color:new echarts.graphic.LinearGradient
-                  	(
-                1, 0, 0, 1,
-                [
-                    {offset: 0, color: '#ff0000'},
-                    {offset: 0.5, color: '#ff0000'},
-                    {offset: 0.8, color: '#7f0000'},
-                    {offset: 1, color: '#7f0000'}
-                ]
-         
-                  	)
-              }
-              },
-			  {
-			    value:6,
-			    
-			    itemStyle:{
-			    	
-			    color:new echarts.graphic.LinearGradient
-			      	(
-			    1, 0, 0, 1,
-			    [
-			       {offset: 0, color: '#00feff'},
-			        {offset: 0.5, color: '#00feff'},
-			        {offset: 0.8, color: '#0066cc'},
-			        {offset: 1, color: '#0066cc'}
-			    ]
-			           
-			      	)
-			  }
-			  }, 
-			  {
-			    value:5,
-			    itemStyle:{color:new echarts.graphic.LinearGradient
-			      	(
-			    1, 0, 0, 1,
-			    [
-			        {offset: 0, color: '#00ffb9'},
-			        {offset: 0.5, color: '#26ddbe'},
-			        {offset: 0.8, color: '#2ebc95'},
-			        {offset: 1, color: '#2ebc95'}
-			    ]
-			           
-			      	)
-			      	
-			  }
-			  },
-			  {
-			    value:4,
-			    itemStyle:{
-			    color:new echarts.graphic.LinearGradient
-			      	(
-			    1, 0, 0, 1,
-			    [
-			        {offset: 0, color: '#fff442'},
-			        {offset: 0.5, color: '#ffc300'},
-			        {offset: 0.8, color: '#e4c52a'},
-			        {offset: 1, color: '#ef8217'}
-			    ]
-			           
-			      	)
-			  }
-			  },
-			  {
-			    value:3,
-			    itemStyle:{
-			       color:new echarts.graphic.LinearGradient
-			      	(
-			    1, 0, 0, 1,
-			    [
-			        {offset: 0, color: '#ff9900'},
-			        {offset: 0.5, color: '#ff9900'},
-			        {offset: 0.8, color: '#cc6600'},
-			        {offset: 1, color: '#cc6600'}
-			    ]
-			           
-			      	)
-			  }
-			  },
-			  
-            ]
-        }
-    ]
-    
-};
-
-
-myChart_human.setOption(option_human);
+                },
+                data: items
+            }
+        ]
+
+    };
+
+
+    myChart_human.setOption(option_human);
+}
+
+

+ 92 - 85
mybusiness/src/main/resources/static/visualization/allcharts/jkTh.js

@@ -1,85 +1,92 @@
-var myChart_jk= echarts.init(document.getElementById('szygj'));
-option_jk = {
-    tooltip: {
-        trigger: 'axis',
-        axisPointer: {            // 坐标轴指示器,坐标轴触发有效
-            type: 'shadow'        // 默认为直线,可选为:'line' | 'shadow'
-        }
-    },
-   grid: {
-       top:'10%',
-       left: '6%',
-       right: '2%',
-       bottom: '10%',	
-       containLabel: true
-   },
-    xAxis: [
-        {
-            type: 'category',
-            data: ['住建局', '法院', '卫健委', '公积金', '民政局', '不动产', '文旅局'],
-            axisTick: {
-                alignWithLabel: true
-            },
-			axisLine:{
-				show:true,
-				lineStyle:{color:'#1089f5'},
-			},
-			axisLabel:{
-				show:true
-			},
-			splitLine:{
-				show:false
-			},
-			
-        }
-    ],
-    yAxis: [
-        {
-            type: 'value',
-			axisLine:{
-				show:false
-			},
-			axisLabel:{
-				show:false
-			},
-			splitLine:{
-				show:false
-			},
-			
-        }
-    ],
-    series: [
-        {
-            name: '归集接口',
-            type: 'bar',
-            barWidth: '50%',
-			itemStyle: {        //上方显示数值
-			    normal: {
-			        label: {
-			            show: true, //开启显示
-			            position: 'top', //在上方显示
-			            textStyle: { //数值样式
-			                color: 'white',
-			                fontSize: 11
-			            }
-			        }
-			    }
-			},
-			color: {
-			    type: 'linear',
-			    x: 0,
-			    y: 0,
-			    x2: 0,
-			    y2: 1,
-			    colorStops: [{
-			        offset: 0, color: '#045ec5' // 0% 处的颜色
-			    }, {
-			        offset: 1, color: '#00ffeb' // 100% 处的颜色
-			    }],
-			    global: false // 缺省为 false
-			},
-            data: [1, 2, 3, 4, 5, 6, 7]
-        }
-    ]
-};
-myChart_jk.setOption(option_jk);
+
+
+function szy_gj(arr_name,arr_value){
+    var myChart_jk= echarts.init(document.getElementById('szygj'));
+    option_jk = {
+        tooltip: {
+            trigger: 'axis',
+            axisPointer: {            // 坐标轴指示器,坐标轴触发有效
+                type: 'shadow'        // 默认为直线,可选为:'line' | 'shadow'
+            }
+        },
+        grid: {
+            top:'10%',
+            left: '6%',
+            right: '2%',
+            bottom: '10%',
+            containLabel: true
+        },
+        xAxis: [
+            {
+                type: 'category',
+                data: arr_name,
+                axisTick: {
+                    alignWithLabel: true
+                },
+                axisLine:{
+                    show:true,
+                    lineStyle:{color:'#1089f5'},
+                },
+                axisLabel:{
+                    interval:0,
+                    rotate:40,
+                    show:true
+                },
+                splitLine:{
+                    show:false
+                },
+
+            }
+        ],
+        yAxis: [
+            {
+                type: 'value',
+                axisLine:{
+                    show:false
+                },
+                axisLabel:{
+                    show:false
+                },
+                splitLine:{
+                    show:false
+                },
+
+            }
+        ],
+        series: [
+            {
+                name: '归集接口',
+                type: 'bar',
+                barWidth: '50%',
+                itemStyle: {        //上方显示数值
+                    normal: {
+                        label: {
+                            show: true, //开启显示
+                            position: 'top', //在上方显示
+                            textStyle: { //数值样式
+                                color: 'white',
+                                fontSize: 11
+                            }
+                        }
+                    }
+                },
+                color: {
+                    type: 'linear',
+                    x: 0,
+                    y: 0,
+                    x2: 0,
+                    y2: 1,
+                    colorStops: [{
+                        offset: 0, color: '#045ec5' // 0% 处的颜色
+                    }, {
+                        offset: 1, color: '#00ffeb' // 100% 处的颜色
+                    }],
+                    global: false // 缺省为 false
+                },
+                data: arr_value
+            }
+        ]
+    };
+    myChart_jk.setOption(option_jk);
+}
+

+ 90 - 85
mybusiness/src/main/resources/static/visualization/allcharts/jkTh2.js

@@ -1,85 +1,90 @@
-var myChart_jk= echarts.init(document.getElementById('szygx'));
-option_jk = {
-    tooltip: {
-        trigger: 'axis',
-        axisPointer: {            // 坐标轴指示器,坐标轴触发有效
-            type: 'shadow'        // 默认为直线,可选为:'line' | 'shadow'
-        }
-    },
-   grid: {
-       top:'10%',
-       left: '6%',
-       right: '2%',
-       bottom: '10%',	
-       containLabel: true
-   },
-    xAxis: [
-        {
-            type: 'category',
-            data: ['住建局', '法院', '卫健委', '公积金', '民政局', '不动产', '文旅局'],
-            axisTick: {
-                alignWithLabel: true
-            },
-			axisLine:{
-				show:true,
-				lineStyle:{color:'#1089f5'},
-			},
-			axisLabel:{
-				show:true
-			},
-			splitLine:{
-				show:false
-			},
-			
-        }
-    ],
-    yAxis: [
-        {
-            type: 'value',
-			axisLine:{
-				show:false
-			},
-			axisLabel:{
-				show:false
-			},
-			splitLine:{
-				show:false
-			},
-			
-        }
-    ],
-    series: [
-        {
-            name: '归集接口',
-            type: 'bar',
-            barWidth: '50%',
-			itemStyle: {        //上方显示数值
-			    normal: {
-			        label: {
-			            show: true, //开启显示
-			            position: 'top', //在上方显示
-			            textStyle: { //数值样式
-			                color: 'white',
-			                fontSize: 11
-			            }
-			        }
-			    }
-			},
-			color: {
-			    type: 'linear',
-			    x: 0,
-			    y: 0,
-			    x2: 0,
-			    y2: 1,
-			    colorStops: [{
-			        offset: 0, color: '#045ec5' // 0% 处的颜色
-			    }, {
-			        offset: 1, color: '#00ffeb' // 100% 处的颜色
-			    }],
-			    global: false // 缺省为 false
-			},
-            data: [1, 2, 3, 4, 5, 6, 7]
-        }
-    ]
-};
-myChart_jk.setOption(option_jk);
+function szy_gx(arr_name,arr_value) {
+    var myChart_jk= echarts.init(document.getElementById('szygx'));
+    option_jk = {
+        tooltip: {
+            trigger: 'axis',
+            axisPointer: {            // 坐标轴指示器,坐标轴触发有效
+                type: 'shadow'        // 默认为直线,可选为:'line' | 'shadow'
+            }
+        },
+        grid: {
+            top:'10%',
+            left: '6%',
+            right: '2%',
+            bottom: '10%',
+            containLabel: true
+        },
+        xAxis: [
+            {
+                type: 'category',
+                data: arr_name,
+                axisTick: {
+                    alignWithLabel: true
+                },
+                axisLine:{
+                    show:true,
+                    lineStyle:{color:'#1089f5'},
+                },
+                axisLabel:{
+                    interval:0,
+                    rotate:40,
+                    show:true
+                },
+                splitLine:{
+                    show:false
+                },
+
+            }
+        ],
+        yAxis: [
+            {
+                type: 'value',
+                axisLine:{
+                    show:false
+                },
+                axisLabel:{
+                    show:false
+                },
+                splitLine:{
+                    show:false
+                },
+
+            }
+        ],
+        series: [
+            {
+                name: '归集接口',
+                type: 'bar',
+                barWidth: '50%',
+                itemStyle: {        //上方显示数值
+                    normal: {
+                        label: {
+                            show: true, //开启显示
+                            position: 'top', //在上方显示
+                            textStyle: { //数值样式
+                                color: 'white',
+                                fontSize: 11
+                            }
+                        }
+                    }
+                },
+                color: {
+                    type: 'linear',
+                    x: 0,
+                    y: 0,
+                    x2: 0,
+                    y2: 1,
+                    colorStops: [{
+                        offset: 0, color: '#045ec5' // 0% 处的颜色
+                    }, {
+                        offset: 1, color: '#00ffeb' // 100% 处的颜色
+                    }],
+                    global: false // 缺省为 false
+                },
+                data: arr_value
+            }
+        ]
+    };
+    myChart_jk.setOption(option_jk);
+}
+

+ 98 - 83
mybusiness/src/main/resources/static/visualization/allcharts/jkpcTh.js

@@ -1,89 +1,104 @@
-var myChart_jkpc= echarts.init(document.getElementById('jksypc'));
-var base = +new Date(1968, 9, 3);
-var oneDay = 24 * 3600 * 1000;
-var date = [];
+function jksypc(d) {
 
-var data = [Math.random() * 300];
+    //组织数据- 日期-使用频次
+    var data = [];
+    var date = [];
+    $.each(d.interfacePinci_day_list,function (index,da) {
+        data.push(da.cou)
+        date.push(da.day)
+    });
 
-for (var i = 1; i < 20000; i++) {
-    var now = new Date(base += oneDay);
-    date.push([now.getFullYear(), now.getMonth() + 1, now.getDate()].join('/'));
-    data.push(Math.round((Math.random() - 0.5) * 20 + data[i - 1]));
-}
 
-option_jkpc = {
-   tooltip: {
-       trigger: 'axis',
-       axisPointer: {            // 坐标轴指示器,坐标轴触发有效
-           type: 'shadow'        // 默认为直线,可选为:'line' | 'shadow'
-       }
-   },
-	grid: {
-	    top:'5%',
-	    left: '6%',
-	    right: '2%',
-	    bottom: '30%',	
-	    containLabel: true
-	},
-   
-    xAxis: {
-        type: 'category',
-        boundaryGap: false,
-        data: date,
-		axisLine:{
-			show:true,
-			lineStyle:{color:'#1089f5'},
-		},
-    },
-    yAxis: {
-        type: 'value',
-        boundaryGap: [0, '100%'],
-		axisLine:{
-			show:true,
-			lineStyle:{color:'#fff'},
-		},
-    },
-    dataZoom: [{
-        type: 'inside',
-        start: 0,
-        end: 10,
-		
-    }, {
-        start: 0,
-        end: 10,
-        handleIcon: 'M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4v1.3h1.3v-1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7V23h6.6V24.4z M13.3,19.6H6.7v-1.4h6.6V19.6z',
-        handleSize: '80%',
-		
-        handleStyle: {
-            color: '#fff',
-            shadowBlur: 3,
-            shadowColor: 'rgba(0, 0, 0, 0.6)',
-            shadowOffsetX: 2,
-            shadowOffsetY: 2
-        }
-    }],
-    series: [
-        {
-            name: '接口使用频次',
-            type: 'line',
-            smooth: true,
-            symbol: 'none',
-            sampling: 'average',
-            itemStyle: {
-                color: 'rgb(255, 70, 131)'
+
+    var myChart_jkpc = echarts.init(document.getElementById('jksypc'));
+    var base = +new Date(1968, 9, 3);
+    var oneDay = 24 * 3600 * 1000;
+    // var date = [];
+    //
+    // var data = [Math.random() * 300];
+    //
+    // for (var i = 1; i < 20000; i++) {
+    //     var now = new Date(base += oneDay);
+    //     date.push([now.getFullYear(), now.getMonth() + 1, now.getDate()].join('/'));
+    //     data.push(Math.round((Math.random() - 0.5) * 20 + data[i - 1]));
+    // }
+
+    option_jkpc = {
+        tooltip: {
+            trigger: 'axis',
+            axisPointer: {            // 坐标轴指示器,坐标轴触发有效
+                type: 'shadow'        // 默认为直线,可选为:'line' | 'shadow'
+            }
+        },
+        grid: {
+            top: '5%',
+            left: '6%',
+            right: '2%',
+            bottom: '30%',
+            containLabel: true
+        },
+
+        xAxis: {
+            type: 'category',
+            boundaryGap: false,
+            data: date,
+            axisLine: {
+                show: true,
+                lineStyle: {color: '#1089f5'},
             },
-            areaStyle: {
-                color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
-                    offset: 0,
-                    color: 'rgb(255, 158, 68)'
-                }, {
-                    offset: 1,
-                    color: 'rgb(255, 70, 131)'
-                }])
+        },
+        yAxis: {
+            type: 'value',
+            boundaryGap: [0, '100%'],
+            axisLine: {
+                show: true,
+                lineStyle: {color: '#fff'},
             },
-            data: data
-        }
-    ]
-};
+        },
+        dataZoom: [{
+            type: 'inside',
+            start: 0,
+            end: 1000,
+
+        }, {
+            start: 0,
+            end: 10,
+            handleIcon: 'M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4v1.3h1.3v-1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7V23h6.6V24.4z M13.3,19.6H6.7v-1.4h6.6V19.6z',
+            handleSize: '80%',
+
+            handleStyle: {
+                color: '#fff',
+                shadowBlur: 3,
+                shadowColor: 'rgba(0, 0, 0, 0.6)',
+                shadowOffsetX: 2,
+                shadowOffsetY: 2
+            }
+        }],
+        series: [
+            {
+                name: '接口使用频次',
+                type: 'line',
+                smooth: true,
+                symbol: 'none',
+                sampling: 'average',
+                itemStyle: {
+                    color: 'rgb(255, 70, 131)'
+                },
+                areaStyle: {
+                    color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
+                        offset: 0,
+                        color: 'rgb(255, 158, 68)'
+                    }, {
+                        offset: 1,
+                        color: 'rgb(255, 70, 131)'
+                    }])
+                },
+                data: data
+            }
+        ]
+    };
+
+    myChart_jkpc.setOption(option_jkpc);
+}
+
 
-myChart_jkpc.setOption(option_jkpc);

+ 130 - 123
mybusiness/src/main/resources/static/visualization/allcharts/th-echart1.js

@@ -1,111 +1,114 @@
-var phnum=['1','2','3','4','5','6','7','8','9','10'];//排行数
-var getmydmc=['卫健委','中级人民法院','公积金','民政局','不动产','文旅局','住建局','某某某','某某某米','某某某某'];//数据点名称
-var getmyd=[10,3,5,2,5,6,8,6,4,3];//接口数值
-var getmydzd =[];//学生满意度100%
-for (let i = 0; i < getmyd.length; i++) {
-    getmydzd.push(15)
-};
-var myChart_ph = echarts.init(document.getElementById('phb'));
+// var phnum=['1','2','3','4','5','6','7','8','9','10'];//排行数
+// var getmydmc=['卫健委','中级人民法院','公积金','民政局','不动产','文旅局','住建局','某某某','某某某米','某某某某'];//数据点名称
+// var getmyd=[10,3,5,2,5,6,8,6,4,3];//接口数值
 
-option_ph = {
-    grid: {
-        show:false,
-        width:190,	
-        left: '0',
-        right: '20',
-        bottom: '0',
-        top: '10',
-    },
+//部门接口调用排名
+function init_bmjkdypm() {
+    var getmydzd =[];//学生满意度100%
+    for (var i = 0; i < getmyd.length; i++) {
+        getmydzd.push(15)
+    };
+    var myChart_ph = echarts.init(document.getElementById('phb'));
 
-    tooltip: {
-        trigger: 'axis',
-		align:'left',
-        axisPointer: {
-            type: 'none'
+    option_ph = {
+        grid: {
+            show:false,
+            width:190,
+            left: '0',
+            right: '20',
+            bottom: '0',
+            top: '10',
         },
-        formatter: function(params) {
-            return '接口调用数<br>'+ params[0].name  + ' : ' + params[0].value + '个'
-        }
-    },
-    xAxis: {
-        show: false,
-        type: 'value'
-    },
-    yAxis: [
-		{
-        type: 'category',
-        inverse: true,
-        axisLabel: {
-			interval :false,
-            textStyle: {
-                color: '#fff',
-                fontSize: '16',
-                lineHeight:'40',
+
+        tooltip: {
+            trigger: 'axis',
+            align:'left',
+            axisPointer: {
+                type: 'none'
             },
-            // 调整左侧文字的3个属性,缺一不可
-             verticalAlign: 'bottom',
-             align:'left',
-            //调整文字上右下左
-             padding: [0,0,10,55],
-        },
-        splitLine: {
-            show: false
+            formatter: function(params) {
+                return '接口调用数<br>'+ params[0].name  + ' : ' + params[0].value + '次'
+            }
         },
-        axisTick: {
-            show: false
+        xAxis: {
+            show: false,
+            type: 'value'
         },
-        axisLine: {
-            show: false
-        },
-        data:getmydmc
-    },
-	{type: 'category',
-	    inverse: true,
-	    axisLabel: {
-			interval :false,
-	        textStyle: {
-	            color: '#108bf8',
-	            fontSize: '12',
-	            lineHeight:'40',
-	        },
-	        // 调整左侧文字的3个属性,缺一不可
-	         verticalAlign: 'bottom',
-	         align:'left',
-	        //调整文字上右下左
-	         padding: [0,0,10,-185],
-			 formatter: 'TOP{value}'
-	    },
-	    splitLine: {
-	        show: false
-	    },
-	    axisTick: {
-	        show: false
-	    },
-	    axisLine: {
-	        show: false
-	    },
-	    data:phnum
-	}, 
-	
-	{
-        type: 'category',
-        inverse: true,
-        axisTick: 'none',
-        axisLine: 'none',
-        show: true,
-        axisLabel: {
-            textStyle: {
-                color: '#fff',
-                fontSize: '12'
+        yAxis: [
+            {
+                type: 'category',
+                inverse: true,
+                axisLabel: {
+                    interval :false,
+                    textStyle: {
+                        color: '#fff',
+                        fontSize: '16',
+                        lineHeight:'40',
+                    },
+                    // 调整左侧文字的3个属性,缺一不可
+                    verticalAlign: 'bottom',
+                    align:'left',
+                    //调整文字上右下左
+                    padding: [0,0,10,55],
+                },
+                splitLine: {
+                    show: false
+                },
+                axisTick: {
+                    show: false
+                },
+                axisLine: {
+                    show: false
+                },
+                data:getmydmc
             },
-            // 调整右侧数值文字的3个属性,缺一不可
-            padding: [-5, 10, -10, 1],
-			 align:'right',
-			formatter: '{value}个'
-        },
-        data:getmyd
-    }],
-    series: [{
+            {type: 'category',
+                inverse: true,
+                axisLabel: {
+                    interval :false,
+                    textStyle: {
+                        color: '#108bf8',
+                        fontSize: '12',
+                        lineHeight:'40',
+                    },
+                    // 调整左侧文字的3个属性,缺一不可
+                    verticalAlign: 'bottom',
+                    align:'left',
+                    //调整文字上右下左
+                    padding: [0,0,10,-185],
+                    formatter: 'TOP{value}'
+                },
+                splitLine: {
+                    show: false
+                },
+                axisTick: {
+                    show: false
+                },
+                axisLine: {
+                    show: false
+                },
+                data:phnum
+            },
+
+            {
+                type: 'category',
+                inverse: true,
+                axisTick: 'none',
+                axisLine: 'none',
+                show: true,
+                axisLabel: {
+                    textStyle: {
+                        color: '#fff',
+                        fontSize: '10'
+                    },
+                    // 调整右侧数值文字的3个属性,缺一不可
+                    padding: [-5, 10, -10, 1],
+                    align:'right',
+                    formatter: '{value}次'
+                },
+                data:getmyd
+            }],
+        series: [{
             name: '值',
             type: 'bar',
             zlevel: 1,
@@ -113,31 +116,35 @@ option_ph = {
                 normal: {
                     barBorderRadius: 0,
                     color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
-                                               offset: 0,
-                                               color: '#11469e'
-                                           }, {
-                                               offset: 1,
-                                               color: '#108bf7'
-                                           }]),
-           
+                        offset: 0,
+                        color: '#11469e'
+                    }, {
+                        offset: 1,
+                        color: '#108bf7'
+                    }]),
+
                 },
             },
             barWidth: 15,
             data: getmyd
         },
-        {
-            name: '背景',
-            type: 'bar',
-            barWidth: 15,
-            barGap: '-100%',
-            data: getmydzd,
-            itemStyle: {
-                normal: {
-                    color: 'rgba(103,150,253,0.3)',
-                    barBorderRadius: 0,
-                }
+            {
+                name: '背景',
+                type: 'bar',
+                barWidth: 15,
+                barGap: '-100%',
+                data: getmydzd,
+                itemStyle: {
+                    normal: {
+                        color: 'rgba(103,150,253,0.3)',
+                        barBorderRadius: 0,
+                    }
+                },
             },
-        },
-    ]
-};
-myChart_ph.setOption(option_ph);
+        ]
+    };
+    myChart_ph.setOption(option_ph);
+}
+
+
+

+ 1 - 1
mybusiness/src/main/resources/templates/system/interfaceinfo/edit.html

@@ -26,7 +26,7 @@
                 </div>
             </div>
             <div class="form-group">
-                <label class="col-sm-3 control-label">共享方式:</label>
+                <label class="col-sm-3 control-label">接口方式:</label>
                 <div class="col-sm-8">
                     <select name="shareType" class="form-control m-b" th:with="type=${@dict.getType('share_type')}">
                         <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{shareType}"></option>

+ 6 - 4
mybusiness/src/main/resources/templates/system/interfaceinfo/interfaceinfo.html

@@ -137,7 +137,7 @@
                 },
                 {
                     field: 'shareType',
-                    title: '共享方式',
+                    title: '接口方式',
                     formatter: function (value, item, index) {
                         return $.table.selectDictLabel(shareType_datas, item.shareType);
                     }
@@ -163,11 +163,13 @@
                 },
                 {
                     field: 'typeIam',
-                    title: 'IAM方式'
+                    title: 'IAM方式',
+                    visible: false
                 },
                 {
                     field: 'typeAksk',
-                    title: 'AK/SK方式'
+                    title: 'AK/SK方式',
+                    visible: false
                 },
                 {
                     title: '操作',
@@ -177,7 +179,7 @@
                         actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                         actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                         actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="settingParams(\'' + row.id + '\')"><i class="fa fa-edit"></i>设置参数</a> ');
-                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="execInterface(\'' + row.id + '\')"><i class="fa fa-edit"></i>调用接口</a> ');
+                        // actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="execInterface(\'' + row.id + '\')"><i class="fa fa-edit"></i>调用接口</a> ');
 
                         return actions.join('');
                     }

+ 8 - 8
mybusiness/src/main/resources/templates/system/sfz/detail.html

@@ -9,49 +9,49 @@
         <div class="form-group">
             <label class="col-sm-3 control-label">发证机关:</label>
             <div class="col-sm-8">
-                <input name="licenceIssue" th:field="*{licenceIssue}" class="form-control" type="text" disabled>
+                <label name="licenceIssue"  class="form-control" th:text="*{licenceIssue}"></label>
             </div>
         </div>
         <div class="form-group">
             <label class="col-sm-3 control-label">姓名:</label>
             <div class="col-sm-8">
-                <input name="name" th:field="*{name}" class="form-control" type="text" disabled>
+                <label name="name"  class="form-control" th:text="*{name}"></label>
             </div>
         </div>
         <div class="form-group">
             <label class="col-sm-3 control-label">性别:</label>
             <div class="col-sm-8">
-                <input name="gender" th:field="*{gender}" class="form-control" type="text" disabled>
+                <label name="gender"  class="form-control" th:text="*{gender}"></label>
             </div>
         </div>
         <div class="form-group">
             <label class="col-sm-3 control-label">民族:</label>
             <div class="col-sm-8">
-                <input name="nationality" th:field="*{nationality}" class="form-control" type="text" disabled>
+                <label name="nationality"  class="form-control" th:text="*{nationality}"></label>
             </div>
         </div>
         <div class="form-group">
             <label class="col-sm-3 control-label">出生日期:</label>
             <div class="col-sm-8">
-                <input name="birthDate" th:field="*{birthDate}" class="form-control" type="text" disabled>
+                <label name="birthDate"  class="form-control" th:text="*{birthDate}"></label>
             </div>
         </div>
         <div class="form-group">
             <label class="col-sm-3 control-label">公民身份号码:</label>
             <div class="col-sm-8">
-                <input name="idcardNo" th:field="*{idcardNo}" class="form-control" type="text" disabled>
+                <label name="idcardNo"  class="form-control" th:text="*{idcardNo}"></label>
             </div>
         </div>
         <div class="form-group">
             <label class="col-sm-3 control-label">户籍地:</label>
             <div class="col-sm-8">
-                <input name="addressPermanent" th:field="*{addressPermanent}" class="form-control" type="text" disabled>
+                <label name="addressPermanent"  class="form-control" th:text="*{addressPermanent}"></label>
             </div>
         </div>
         <div class="form-group">
             <label class="col-sm-3 control-label">照片:</label>
             <div class="col-sm-8">
-                <input id="photos" class="form-control" type="text" disabled>
+                <img id="photos"/>
             </div>
         </div>
         <div class="form-group">

+ 130 - 33
mybusiness/src/main/resources/templates/visualization/index.html

@@ -11,17 +11,18 @@
     <meta http-equiv="X-UA-Compatible" content="ie=edge">
     <link rel="stylesheet" href="/visualization/css/index.css" th:href="@{/visualization/css/index.css}">
     <link rel="stylesheet" href="/visualization/css/reset.css" th:href="@{/visualization/css/reset.css}">
-    <script type="text/javascript" src="js/jquery.js"></script>
+    <script type="text/javascript" th:src="@{/visualization/js/jquery.js}"></script>
 </head>
-<script type="text/javascript" src="../visualization/js/echarts.min.js" th:src="@{/visualization/js/echarts.min.js}"></script>
-<script language="JavaScript" src="../visualization/js/js.js" th:src="@{/visualization/js/js.js}"></script>
+<script type="text/javascript" th:src="@{/visualization/js/echarts.min.js}"></script>
+<script language="JavaScript" th:src="@{/visualization/js/js.js}"></script>
 
 <body>
 <div class="th-container">
     <!-- 导航开始 -->
     <div class="th-header">
         <div class="th-title">通化市接口中台可视化中心</div>
-        <div class="th-weather"><img th:src="@{/visualization/images/th-clock-icon.png}"><span id="showTime"></span></div>
+        <div class="th-weather"><img th:src="@{/visualization/images/th-clock-icon.png}"><span id="showTime"></span>
+        </div>
         <script>
             var t = null;
             t = setTimeout(time, 1000);
@@ -69,15 +70,16 @@
             <h1>全市数据共享情况</h1>
             <div class="th-mid-map-con">
                 <div class="th-mid-sjk">
-                    <h2>共享平台</h2>
-                    <h6>共享接口: <span>93</span></h6>
+                    <h2>共享平台</h2>
+                    <h6>接口总数: <span id="jkzt_jkzs">93</span></h6>
                 </div>
                 <div class="th-mid-shjk">
                     <h2>市接口中台</h2>
-                    <h6>归集接口: <span>93</span></h6>
-                    <h6>共享接口: <span>7</span></h6>
+                    <h6>归集接口: <span id="jkzt_gj">93</span></h6>
+                    <h6>共享接口: <span id="jkzt_gx">7</span></h6>
                 </div>
-                <div class="th-mid-dw-con">
+
+                <div class="th-mid-dw-con" id="qssjgxqk_div">
                     <div class="th-mid-dw th-dw-1">
                         <h2>住建局</h2>
                         <h6>归集接口: <span>93</span></h6>
@@ -115,6 +117,7 @@
                     </div>
                 </div>
 
+
             </div>
         </div>
         <!-- 接口地图展示E -->
@@ -126,37 +129,43 @@
                     <li>
                         <img th:src="@{/visualization/images/th-right1.png}">
                         <div class="row-left">
-                            <span>200</span><h1>接口总数</h1>
+                            <span id="tj_interface_total">200</span>
+                            <h1>接口总数</h1>
                         </div>
                     </li>
                     <li>
                         <img th:src="@{/visualization/images/th-right2.png}">
                         <div class="row-left">
-                            <span>200</span><h1>调用频次</h1>
+                            <span id="tj_dypc">200</span>
+                            <h1>调用频次</h1>
                         </div>
                     </li>
                     <li>
                         <img th:src="@{/visualization/images/th-right3.png}">
                         <div class="row-left">
-                            <span>200</span><h1>归集频次</h1>
+                            <span id="tj_gjpc">200</span>
+                            <h1>归集频次</h1>
                         </div>
                     </li>
                     <li>
                         <img th:src="@{/visualization/images/th-right4.png}">
                         <div class="row-left">
-                            <span>200</span><h1>共享频次</h1>
+                            <span id="tj_gxpc">200</span>
+                            <h1>共享频次</h1>
                         </div>
                     </li>
                     <li>
                         <img th:src="@{/visualization/images/th-right5.png}">
                         <div class="row-left">
-                            <span>200</span><h1>接入部门</h1>
+                            <span id="tj_jrbm">200</span>
+                            <h1>接入部门</h1>
                         </div>
                     </li>
                     <li>
                         <img th:src="@{/visualization/images/th-right6.png}">
                         <div class="row-left">
-                            <span>200</span><h1>接口故障</h1>
+                            <span id="tj_jkgz">200</span>
+                            <h1>接口故障</h1>
                         </div>
                     </li>
                 </ul>
@@ -164,25 +173,25 @@
             <div class="th-right-con-2row">
                 <div class="th-right-con-2 mg-r1">
                     <h4>接口占比</h4>
-                    <div  id="jkzb" style="width: 280px; height: 200px;"></div>
+                    <div id="jkzb" style="width: 280px; height: 200px;"></div>
                 </div>
                 <div class="th-right-con-2 mg-r1">
                     <h4>接口使用</h4>
-                    <div  id="jksy" style="width: 280px; height: 200px;"></div>
+                    <div id="jksy" style="width: 280px; height: 200px;"></div>
                 </div>
                 <div class="th-right-con-2">
                     <h4>接入部门</h4>
-                    <div  id="jrbm" style="width: 280px; height: 200px;"></div>
+                    <div id="jrbm" style="width: 280px; height: 200px;"></div>
                 </div>
             </div>
             <div class="th-right-con-3row">
                 <div class="th-right-con-3 mg-r2">
                     <h4>市主要归集接口</h4>
-                    <div  id="szygj" style="width: 400px; height: 200px;"></div>
+                    <div id="szygj" style="width: 400px; height: 200px;"></div>
                 </div>
                 <div class="th-right-con-3">
                     <h4>市主要共享接口</h4>
-                    <div  id="szygx" style="width: 400px; height: 200px;"></div>
+                    <div id="szygx" style="width: 400px; height: 200px;"></div>
                 </div>
             </div>
             <div class="th-right-con-4">
@@ -191,12 +200,10 @@
                 <!-- HTML页面布局 -->
                 <div id="tab">
                     <ul>
-                        <li class="on">年接口使用频次</li>
-                        <li class="off">月接口使用频次</li>
-                        <li class="off">日接口使用频次</li>
+                        <li class="on">接口使用频次</li>
                     </ul>
                     <div id="firstPage" class="show">
-                        <div  id="jksypc" style="width: 800px; height: 220px;"></div>
+                        <div id="jksypc" style="width: 800px; height: 220px;"></div>
                     </div>
                     <div id="secondPage" class="hide">
                         <a href="#">40平出租屋大改造 美少女的混搭小窝</a><br>
@@ -216,8 +223,25 @@
     </div>
     <!-- 内容结束 -->
 </div>
+<script type="text/javascript" src="../visualization/allcharts/th-echart1.js"
+        th:src="@{/visualization/allcharts/th-echart1.js}" rel="stylesheet"></script>
+<script type="text/javascript" src="../visualization/allcharts/eventPieTh.js"
+        th:src="@{/visualization/allcharts/eventPieTh.js}" rel="stylesheet"></script>
+<script type="text/javascript" src="../visualization/allcharts/eventPieTh2.js"
+        th:src="@{/visualization/allcharts/eventPieTh2.js}" rel="stylesheet"></script>
+<script type="text/javascript" src="../visualization/allcharts/humanTh.js"
+        th:src="@{/visualization/allcharts/humanTh.js}" rel="stylesheet"></script>
+<script type="text/javascript" src="../visualization/allcharts/jkTh.js" th:src="@{/visualization/allcharts/jkTh.js}"
+        rel="stylesheet"></script>
+<script type="text/javascript" src="../visualization/allcharts/jkTh2.js" th:src="@{/visualization/allcharts/jkTh2.js}"
+        rel="stylesheet"></script>
+<script type="text/javascript" src="../visualization/allcharts/jkpcTh.js" th:src="@{/visualization/allcharts/jkpcTh.js}"
+        rel="stylesheet"></script>
+
+
 <script>
-    window.onload = function() {
+    window.onload = function () {
+        getVisualization();
         var myTab = document.getElementById("tab"); //整个div
         var myUl = myTab.getElementsByTagName("ul")[0]; //一个节点
         var myLi = myUl.getElementsByTagName("li"); //数组
@@ -225,7 +249,7 @@
 
         for (var i = 0; i < myLi.length; i++) {
             myLi[i].index = i;
-            myLi[i].onclick = function() {
+            myLi[i].onclick = function () {
                 for (var j = 0; j < myLi.length; j++) {
                     myLi[j].className = "off";
                     myDiv[j].className = "hide";
@@ -235,13 +259,86 @@
             }
         }
     }
+    //市数据共享接口-市数据归集接口
+    var data_szygjjk_name = [];
+    var data_szygjjk_value = [];
+    var data_szygxjk_name = [];
+    var data_szygxjk_value = [];
+    var data_total_name = [];
+    var data_total_value = [];
+
+    //全市数据共享情况
+    function qssjgxqk(d) {
+        var qssjgxqk_div = $("#qssjgxqk_div");
+        qssjgxqk_div.html("");
+        $.each(d.qssjgxqk_List, function (index, data) {
+            var div = $("<div>");
+            div.addClass("th-mid-dw th-dw-" + (index + 1));
+            var h2 = $("<h2>" + data.dept_name + "</h2>");
+            var h6_0 = $("<h6>归集接口: <span>" + data.gj_cou + "</span></h6>");
+            var h6_1 = $("<h6>共享接口: <span>" + data.gx_cou + "</span></h6>");
+            div.append(h2);
+            div.append(h6_0);
+            div.append(h6_1);
+            qssjgxqk_div.append(div);
+            //市主要归集接口 --- 市主要共享接口
+
+            data_szygjjk_name.push(data.dept_name);
+            data_szygxjk_name.push(data.dept_name);
+            data_szygjjk_value.push(data.gj_cou);
+            data_szygxjk_value.push(data.gx_cou);
+            data_total_name.push(data.dept_name);
+            data_total_value.push(data.total_cou);
+        });
+        szy_gj(data_szygjjk_name, data_szygjjk_value);
+        szy_gx(data_szygxjk_name, data_szygxjk_value);
+        jrbm(data_total_name, data_total_value);
+        jkzb(d.zb_guiji, d.zb_gongxiang);
+        $("#jkzt_jkzs").text(d.zb_gongxiang + d.zb_guiji);
+        $("#jkzt_gj").text(d.zb_guiji);
+        $("#jkzt_gx").text(d.zb_gongxiang);
+        //右侧顶部统计
+        $("#tj_interface_total").text(d.tj_interface_total)
+        $("#tj_dypc").text(d.tj_dypc)
+        $("#tj_gjpc").text(d.tj_gjpc)
+        $("#tj_gxpc").text(d.tj_gxpc)
+        $("#tj_jrbm").text(d.tj_jrbm)
+        $("#tj_jkgz").text(d.tj_jkgz)
+//接口使用频次
+        jksypc(d);
+    }
+
+
 </script>
-<script type="text/javascript" src="../visualization/allcharts/th-echart1.js" th:src="@{/visualization/allcharts/th-echart1.js}" rel="stylesheet"></script>
-<script type="text/javascript" src="../visualization/allcharts/eventPieTh.js" th:src="@{/visualization/allcharts/eventPieTh.js}" rel="stylesheet"></script>
-<script type="text/javascript" src="../visualization/allcharts/eventPieTh2.js" th:src="@{/visualization/allcharts/eventPieTh2.js}" rel="stylesheet"></script>
-<script type="text/javascript" src="../visualization/allcharts/humanTh.js" th:src="@{/visualization/allcharts/humanTh.js}" rel="stylesheet"></script>
-<script type="text/javascript" src="../visualization/allcharts/jkTh.js" th:src="@{/visualization/allcharts/jkTh.js}" rel="stylesheet"></script>
-<script type="text/javascript" src="../visualization/allcharts/jkTh2.js" th:src="@{/visualization/allcharts/jkTh2.js}" rel="stylesheet"></script>
-<script type="text/javascript" src="../visualization/allcharts/jkpcTh.js" th:src="@{/visualization/allcharts/jkpcTh.js}" rel="stylesheet"></script>
+
+<script>
+
+    function getVisualization() {
+        $.ajax({
+            url: '/MainPageController/getVisualization',
+            method: 'POST',
+            success: getVisualization_Success
+        })
+    }
+
+    var phnum = [];//排行数
+    var getmydmc = [];//数据点名称
+    var getmyd = [];//接口数值
+    function getVisualization_Success(d) {
+        $.each(d.interfaceCallCount_List, function (index, data) {
+            phnum.push((index + 1) + "   ")
+            getmydmc.push(data.dept_name)
+            getmyd.push("    " + data.cou)
+        });
+        //最左侧,top部门接口调用排名
+        init_bmjkdypm();
+        //中间 全市数据共享情况
+        qssjgxqk(d);
+
+
+    }
+</script>
+
+
 </body>
 </html>

+ 12 - 10
pom.xml

@@ -1,8 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
-
     <groupId>com.leisp</groupId>
     <artifactId>leisp</artifactId>
     <version>1.0.0</version>
@@ -10,7 +9,7 @@
     <name>leisp</name>
     <url>http://www.sooka.com</url>
     <description>leisp管理系统</description>
-    
+
     <properties>
         <leisp.version>1.0.0</leisp.version>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -35,7 +34,7 @@
     <!-- 依赖声明 -->
     <dependencyManagement>
         <dependencies>
-        
+
             <!-- SpringBoot的依赖配置-->
             <dependency>
                 <groupId>org.springframework.boot</groupId>
@@ -44,14 +43,14 @@
                 <type>pom</type>
                 <scope>import</scope>
             </dependency>
-            
+
             <!--阿里数据库连接池 -->
             <dependency>
                 <groupId>com.alibaba</groupId>
                 <artifactId>druid-spring-boot-starter</artifactId>
                 <version>${druid.version}</version>
             </dependency>
-            
+
             <!--验证码 -->
             <dependency>
                 <groupId>com.github.penggle</groupId>
@@ -79,7 +78,7 @@
                 <artifactId>shiro-ehcache</artifactId>
                 <version>${shiro.version}</version>
             </dependency>
-    
+
             <!-- thymeleaf模板引擎和shiro框架的整合 -->
             <dependency>
                 <groupId>com.github.theborakompanioni</groupId>
@@ -131,7 +130,7 @@
                 <artifactId>springfox-swagger-ui</artifactId>
                 <version>${swagger.version}</version>
             </dependency>
-            
+
             <!--io常用工具类 -->
             <dependency>
                 <groupId>commons-io</groupId>
@@ -166,7 +165,7 @@
                 <artifactId>fastjson</artifactId>
                 <version>${fastjson.version}</version>
             </dependency>
-            
+
             <!-- 定时任务-->
             <dependency>
                 <groupId>com.leisp</groupId>
@@ -209,6 +208,9 @@
                 <version>${leisp.version}</version>
             </dependency>
 
+
+
+
         </dependencies>
     </dependencyManagement>
 
@@ -268,4 +270,4 @@
         </pluginRepository>
     </pluginRepositories>
 
-</project>
+</project>