Administrator 3 år sedan
förälder
incheckning
48324a8387

+ 13 - 3
leiSP-common/src/main/java/com/sooka/common/core/controller/BaseController.java

@@ -4,6 +4,7 @@ import java.beans.PropertyEditorSupport;
 import java.util.ArrayList;
 import java.util.Date;
 import java.util.List;
+import javax.annotation.Resource;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 import javax.servlet.http.HttpSession;
@@ -13,6 +14,7 @@ import com.sooka.common.utils.DateUtils;
 import com.sooka.common.utils.ServletUtils;
 import com.sooka.common.utils.StringUtils;
 import com.sooka.common.utils.sql.SqlUtil;
+import com.sooka.common.utils.uuid.UUID;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.web.bind.WebDataBinder;
@@ -26,7 +28,7 @@ import com.sooka.common.core.page.TableSupport;
 
 /**
  * web层通用数据处理
- * 
+ *
  * @author lei_wang
  */
 public class BaseController
@@ -128,7 +130,7 @@ public class BaseController
 
     /**
      * 响应返回结果
-     * 
+     *
      * @param rows 影响行数
      * @return 操作结果
      */
@@ -139,7 +141,7 @@ public class BaseController
 
     /**
      * 响应返回结果
-     * 
+     *
      * @param result 结果
      * @return 操作结果
      */
@@ -195,4 +197,12 @@ public class BaseController
     {
         return StringUtils.format("redirect:{}", url);
     }
+
+
+
+
+
+
+
+
 }

+ 15 - 0
mybusiness/src/main/java/com/sooka/mainpage/mapper/MainPage_Gjj_Mapper.java

@@ -0,0 +1,15 @@
+package com.sooka.mainpage.mapper;
+
+import com.sooka.common.annotation.DataSource;
+import com.sooka.common.enums.DataSourceType;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+@DataSource(value = DataSourceType.SLAVE)
+public interface MainPage_Gjj_Mapper {
+
+    public Integer countNumFromDept(@Param("table_name") String table_name);
+
+    public List getTableNamesBydeptId(@Param("dept_id") Integer dept_id);
+}

+ 49 - 39
mybusiness/src/main/java/com/sooka/mainpage/service/impl/MainPageServiceImpl.java

@@ -4,6 +4,7 @@ import com.business.domain.TJ_dept_table;
 import com.sooka.mainpage.domain.InterfaceCallCount_Bean;
 import com.sooka.mainpage.domain.Qssjgxqk_Bean;
 import com.sooka.mainpage.mapper.MainPageMapper;
+import com.sooka.mainpage.mapper.MainPage_Gjj_Mapper;
 import com.sooka.mainpage.service.MainPageService;
 import org.springframework.stereotype.Service;
 
@@ -18,73 +19,82 @@ public class MainPageServiceImpl implements MainPageService {
     @Resource
     MainPageMapper mainPageMapper;
 
+    @Resource
+    MainPage_Gjj_Mapper mainPage_gjj_mapper;
+
     @Override
     public Map getVisualization() {
 
 
-
-
-
         Map map = new HashMap();
         List<InterfaceCallCount_Bean> interfaceCallCount_List = mainPageMapper.interfaceCallCount();
-        map.put("interfaceCallCount_List",interfaceCallCount_List);
+        map.put("interfaceCallCount_List", interfaceCallCount_List);
         List<Qssjgxqk_Bean> qssjgxqk_List = mainPageMapper.qssjgxqk();
-        map.put("qssjgxqk_List",qssjgxqk_List);
+        map.put("qssjgxqk_List", qssjgxqk_List);
         //共享接口总数//归集接口总数
-        int zb_guiji =0;
-        int zb_gongxiang =0;
-        for(int i=0;i<qssjgxqk_List.size();i++){
+        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();
+            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_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++){
+        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_gjpc += b.getCou_gj();
+            tj_gxpc += b.getCou_gx();
         }
-        tj_dypc = tj_gxpc+tj_gjpc;
+        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);
+        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);
-
-
+        List interfacePinci_day_list = mainPageMapper.getInterfacePinci_day();
+        map.put("interfacePinci_day_list", interfacePinci_day_list);
 
 
         //市接口中台数据总数
         Long tj_sjkzt_sjgs = 0L;
-        for(int i=0;i<qssjgxqk_List.size();i++){
+        for (int i = 0; i < qssjgxqk_List.size(); i++) {
             List<TJ_dept_table> tables = mainPageMapper.getTableNamesBydeptId(qssjgxqk_List.get(i).getDept_id());
-            Integer count =0;
-            for(int j=0;j<tables.size();j++){
-                String table_name = tables.get(j).getTable_name();
-                Integer c = mainPageMapper.countNumFromDept(table_name);
-                count +=c;
-                tj_sjkzt_sjgs+=c;
+            Integer count = 0;
+            if (qssjgxqk_List.get(i).getDept_id() == 206) {
+                //公积金
+                for (int j = 0; j < tables.size(); j++) {
+                    String table_name = tables.get(j).getTable_name();
+                    Integer c = mainPage_gjj_mapper.countNumFromDept(table_name);
+                    count += c;
+                    tj_sjkzt_sjgs += c;
+                }
+            } else {
+                //其他
+                for (int j = 0; j < tables.size(); j++) {
+                    String table_name = tables.get(j).getTable_name();
+                    Integer c = mainPageMapper.countNumFromDept(table_name);
+                    count += c;
+                    tj_sjkzt_sjgs += c;
+                }
             }
             qssjgxqk_List.get(i).setDept_record_count(count);
         }
-        map.put("tj_sjkzt_sjgs",tj_sjkzt_sjgs);
 
-        return map;
-    }
+        //公积金
 
 
+        return map;
+    }
 
 
 }

+ 19 - 0
mybusiness/src/main/java/com/sooka/system/controller/TGuijiLibraryBaseinfoController.java

@@ -7,7 +7,14 @@ import com.sooka.common.core.controller.BaseController;
 import com.sooka.common.core.domain.AjaxResult;
 import com.sooka.common.core.page.TableDataInfo;
 import com.sooka.common.enums.BusinessType;
+import com.sooka.common.utils.ServletUtils;
 import com.sooka.common.utils.poi.ExcelUtil;
+import com.sooka.common.utils.uuid.UUID;
+import com.sooka.system.domain.SysUser;
+import com.sooka.system.domain.TULog;
+import com.sooka.system.service.ITULogService;
+import com.util.HttpUtil;
+import com.util.UserInfoUtil;
 import org.apache.shiro.authz.annotation.RequiresPermissions;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Controller;
@@ -20,6 +27,10 @@ import org.springframework.web.bind.annotation.ResponseBody;
 import com.sooka.system.domain.TGuijiLibraryBaseinfo;
 import com.sooka.system.service.ITGuijiLibraryBaseinfoService;
 
+import javax.annotation.Resource;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+
 
 /**
  * 人员基本信息Controller
@@ -43,6 +54,12 @@ public class TGuijiLibraryBaseinfoController extends BaseController
         return prefix + "/baseinfo";
     }
 
+    @Resource
+    private UserInfoUtil userInfoUtil;
+
+    @Resource
+    ITULogService ituLogService;
+
     /**
      * 查询人员基本信息列表
      */
@@ -51,7 +68,9 @@ public class TGuijiLibraryBaseinfoController extends BaseController
     @ResponseBody
     public TableDataInfo list(TGuijiLibraryBaseinfo tGuijiLibraryBaseinfo)
     {
+
         startPage();
+
         List<TGuijiLibraryBaseinfo> list = tGuijiLibraryBaseinfoService.selectTGuijiLibraryBaseinfoList(tGuijiLibraryBaseinfo);
         return getDataTable(list);
     }

+ 4 - 0
mybusiness/src/main/java/com/sooka/system/domain/BaseBusinessEntity.java

@@ -14,5 +14,9 @@ public class BaseBusinessEntity extends BaseEntity {
 
     private String secretKey;
 
+    private String interfaceinfoId;
+    private String interfaceinfoName;
+    private String interfacetype;
+
 
 }

+ 1 - 1
mybusiness/src/main/java/com/sooka/system/domain/TGuijiLibraryBaseinfo.java

@@ -11,7 +11,7 @@ import org.apache.commons.lang3.builder.ToStringStyle;
  * @author lei
  * @date 2021-10-20
  */
-public class TGuijiLibraryBaseinfo extends BaseEntity
+public class TGuijiLibraryBaseinfo extends BaseBusinessEntity
 {
     private static final long serialVersionUID = 1L;
 

+ 10 - 8
mybusiness/src/main/java/com/sooka/system/service/ITGuijiLibraryBaseinfoService.java

@@ -3,17 +3,19 @@ package com.sooka.system.service;
 import java.util.List;
 import com.sooka.system.domain.TGuijiLibraryBaseinfo;
 
+import javax.servlet.http.HttpServletRequest;
+
 /**
  * 人员基本信息Service接口
- * 
+ *
  * @author lei
  * @date 2021-10-20
  */
-public interface ITGuijiLibraryBaseinfoService 
+public interface ITGuijiLibraryBaseinfoService
 {
     /**
      * 查询人员基本信息
-     * 
+     *
      * @param id 人员基本信息ID
      * @return 人员基本信息
      */
@@ -21,7 +23,7 @@ public interface ITGuijiLibraryBaseinfoService
 
     /**
      * 查询人员基本信息列表
-     * 
+     *
      * @param tGuijiLibraryBaseinfo 人员基本信息
      * @return 人员基本信息集合
      */
@@ -29,7 +31,7 @@ public interface ITGuijiLibraryBaseinfoService
 
     /**
      * 新增人员基本信息
-     * 
+     *
      * @param tGuijiLibraryBaseinfo 人员基本信息
      * @return 结果
      */
@@ -37,7 +39,7 @@ public interface ITGuijiLibraryBaseinfoService
 
     /**
      * 修改人员基本信息
-     * 
+     *
      * @param tGuijiLibraryBaseinfo 人员基本信息
      * @return 结果
      */
@@ -45,7 +47,7 @@ public interface ITGuijiLibraryBaseinfoService
 
     /**
      * 批量删除人员基本信息
-     * 
+     *
      * @param ids 需要删除的数据ID
      * @return 结果
      */
@@ -53,7 +55,7 @@ public interface ITGuijiLibraryBaseinfoService
 
     /**
      * 删除人员基本信息信息
-     * 
+     *
      * @param id 人员基本信息ID
      * @return 结果
      */

+ 71 - 0
mybusiness/src/main/java/com/sooka/system/service/impl/Guiji_Base_Service.java

@@ -0,0 +1,71 @@
+package com.sooka.system.service.impl;
+
+import com.business.controller.WebSocketServer;
+import com.sooka.common.utils.ServletUtils;
+import com.sooka.common.utils.uuid.UUID;
+import com.sooka.system.domain.BaseBusinessEntity;
+import com.sooka.system.domain.SysUser;
+import com.sooka.system.domain.TULog;
+import com.sooka.system.mapper.TULogMapper;
+import com.util.HttpUtil;
+import com.util.UserInfoUtil;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import javax.servlet.http.HttpServletRequest;
+import java.io.IOException;
+import java.util.Iterator;
+import java.util.Set;
+
+@Service
+public class Guiji_Base_Service {
+
+    @Resource
+    TULogMapper tuLogMapper;
+    @Resource
+    private UserInfoUtil userInfoUtil;
+
+    public void add_log(BaseBusinessEntity baseBusinessEntity){
+        HttpServletRequest request =ServletUtils.getRequest();
+        String osAndBrowser[] = HttpUtil.getOsAndBrowserInfo(request).split("---");
+        String os = osAndBrowser[0];
+        String browser = osAndBrowser[1];
+        String ipaddress = HttpUtil.getIPAddress(request);
+        //添加操作日志
+        SysUser sysUser = userInfoUtil.getLoginUserInfo();
+        //
+        TULog tuLog = new TULog();
+        tuLog.setId(UUID.fastUUID().toString());
+        tuLog.setBrowser(browser);
+        tuLog.setInterfaceinfoId(baseBusinessEntity.getInterfaceinfoId());
+        tuLog.setInterfaceinfoName(baseBusinessEntity.getInterfaceinfoName());
+        tuLog.setIpaddress(ipaddress);
+        tuLog.setLoginUser(sysUser.getUserId());
+        tuLog.setLoginName(sysUser.getLoginName());
+//        tuLog.setOperationQuantity(new Long(ls.size()));
+        tuLog.setOs(os);
+        //共享接口
+//        tuLog.setPlatformInterfacetype("platform_interfacetype_1");
+        //归集接口
+//        tuLog.setPlatformInterfacetype("platform_interfacetype_2");
+        tuLog.setPlatformInterfacetype(baseBusinessEntity.getInterfacetype());
+        tuLogMapper.insertTULog(tuLog);
+
+        //推送websocket
+         Set set = WebSocketServer.webSocketMap.keySet();
+         Iterator it = set.iterator();
+         while(it.hasNext()){
+             Object key = it.next();
+             try {
+                 WebSocketServer.sendInfo("abc",key.toString());
+             } catch (IOException e) {
+                 e.printStackTrace();
+             }
+         }
+
+    }
+
+
+
+
+}

+ 9 - 2
mybusiness/src/main/java/com/sooka/system/service/impl/TGuijiLibraryBaseinfoServiceImpl.java

@@ -4,6 +4,7 @@ import java.util.List;
 
 import com.sooka.common.core.text.Convert;
 import com.sooka.common.utils.DateUtils;
+import com.sooka.common.utils.ServletUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import com.sooka.system.mapper.TGuijiLibraryBaseinfoMapper;
@@ -11,6 +12,7 @@ import com.sooka.system.domain.TGuijiLibraryBaseinfo;
 import com.sooka.system.service.ITGuijiLibraryBaseinfoService;
 
 import javax.annotation.Resource;
+import javax.servlet.http.HttpServletRequest;
 
 
 /**
@@ -20,7 +22,7 @@ import javax.annotation.Resource;
  * @date 2021-10-20
  */
 @Service
-public class TGuijiLibraryBaseinfoServiceImpl implements ITGuijiLibraryBaseinfoService
+public class TGuijiLibraryBaseinfoServiceImpl extends Guiji_Base_Service implements ITGuijiLibraryBaseinfoService
 {
     @Resource
     private TGuijiLibraryBaseinfoMapper tGuijiLibraryBaseinfoMapper;
@@ -46,7 +48,12 @@ public class TGuijiLibraryBaseinfoServiceImpl implements ITGuijiLibraryBaseinfoS
     @Override
     public List<TGuijiLibraryBaseinfo> selectTGuijiLibraryBaseinfoList(TGuijiLibraryBaseinfo tGuijiLibraryBaseinfo)
     {
-        return tGuijiLibraryBaseinfoMapper.selectTGuijiLibraryBaseinfoList(tGuijiLibraryBaseinfo);
+        List ls = tGuijiLibraryBaseinfoMapper.selectTGuijiLibraryBaseinfoList(tGuijiLibraryBaseinfo);
+        tGuijiLibraryBaseinfo.setInterfaceinfoId("a2044c83-4dc1-43c1-b1fc-4936534ed9ce");
+        tGuijiLibraryBaseinfo.setInterfaceinfoName("共享-通化市图书馆-基本信息查询");
+        tGuijiLibraryBaseinfo.setInterfacetype("platform_interfacetype_1");
+        add_log(tGuijiLibraryBaseinfo);
+        return ls;
     }
 
     /**

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

@@ -86,4 +86,7 @@ where dept.del_flag=0 and dept.dept_id >200
         select id,dept_id,table_name,user_name from tj_dept_table where dept_id=#{dept_id}
     </select>
 
+    <select id="getTableNamesBydeptId_gjj" parameterType="java.lang.Integer" resultMap="rm_tj_dept_table">
+        select id,dept_id,table_name,user_name from tj_dept_table_gjj where dept_id=#{dept_id}
+    </select>
 </mapper>

+ 17 - 0
mybusiness/src/main/resources/mapper/mainpage/MainPage_Gjj_Mapper.xml

@@ -0,0 +1,17 @@
+<?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.MainPage_Gjj_Mapper">
+
+
+    <select id="countNumFromDept" parameterType="java.lang.String" resultType="java.lang.Integer">
+        select count(*) from ${table_name}
+    </select>
+
+    <resultMap id="rm_tj_dept_table" type="com.business.domain.TJ_dept_table"></resultMap>
+    <select id="getTableNamesBydeptId" parameterType="java.lang.Integer" resultMap="rm_tj_dept_table">
+        select id,dept_id,table_name,user_name from tj_dept_table where dept_id=#{dept_id}
+    </select>
+
+</mapper>

+ 1 - 0
mybusiness/src/main/resources/mapper/system/TULogMapper.xml

@@ -50,6 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="operationStatus != null "> and operation_status = #{operationStatus}</if>
             <if test="exceptionLog != null  and exceptionLog != ''"> and exception_log = #{exceptionLog}</if>
         </where>
+        order by create_time desc
     </select>
 
     <select id="selectTULogById" parameterType="String" resultMap="TULogResult">

+ 11 - 10
mybusiness/src/main/resources/static/visualization/allcharts/th-echart1.js

@@ -2,15 +2,6 @@
 // var getmydmc=['卫健委','中级人民法院','公积金','民政局','不动产','文旅局','住建局','某某某','某某某米','某某某某'];//数据点名称
 // var getmyd=[10,3,5,2,5,6,8,6,4,3];//接口数值
 
-
-var k0 = true;
-var k1 = true;
-var k2 = true;
-var k3 = true;
-var k4 = true;
-var k5 = true;
-
-
 //部门接口调用排名
 function init_bmjkdypm() {
     // var getmydzd =[];//学生满意度100%
@@ -151,9 +142,18 @@ function init_bmjkdypm() {
                     }
                 },
             },
-        ]
+
+        ],
+        animationDuration: 0,
+        animationDurationUpdate: 3000,
+        animationEasing: 'linear',
+        animationEasingUpdate: 'linear'
     };
     //---愚蠢的动一动
+    // 待到秋来九月八
+    // 我花开罢百花杀
+    // 冲天香阵透长安
+    // 满城尽带黄金甲
 
 
     myChart_ph.setOption(option_ph);
@@ -161,3 +161,4 @@ function init_bmjkdypm() {
 
 
 
+

+ 4 - 0
mybusiness/src/main/resources/static/visualization/js/visualization_websocket.js

@@ -28,6 +28,10 @@ function openSocket(loginName) {
                 var json =  message;
                 console.log(message.content);
                 console.log(json);
+
+                getVisualization();
+
+
             }
         };
         //关闭事件

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

@@ -41,8 +41,8 @@
                 getmyd_sz[0]++;
                 getmyd_sz[3]++;
                 getmyd_sz[4]+=2;
-                init_bmjkdypm()
-                t = setTimeout(time, 1000);
+                // init_bmjkdypm()
+                // t = setTimeout(time, 1000);
             }
             function buqi(a) {
                 if(a <10){
@@ -83,50 +83,50 @@
             <div class="th-mid-map-con">
                 <div class="th-mid-sjk">
                     <h2>共享平台</h2>
-                    <h6>接口总数: <span id="jkzt_jkzs">93</span></h6>
+                    <h6>接口总数: <span id="jkzt_jkzs">0</span></h6>
                 </div>
                 <div class="th-mid-shjk">
                     <h2>市接口中台</h2>
-                    <h6>归集接口: <span id="jkzt_gj">93</span></h6>
-                    <h6>共享接口: <span id="jkzt_gx">7</span></h6>
-                    <h6>数据个数: <span id="jkzt_sjgs">7</span></h6>
+                    <h6>归集接口: <span id="jkzt_gj">0</span></h6>
+                    <h6>共享接口: <span id="jkzt_gx">0</span></h6>
+                    <h6>数据个数: <span id="jkzt_sjgs">0</span></h6>
                 </div>
 
                 <div class="th-mid-dw-con" id="qssjgxqk_div">
                     <div class="th-mid-dw th-dw-1">
                         <h2>住建局</h2>
-                        <h6>归集接口: <span>93</span></h6>
-                        <h6>共享接口: <span>7</span></h6>
+                        <h6>归集接口: <span>0</span></h6>
+                        <h6>共享接口: <span>0</span></h6>
                     </div>
                     <div class="th-mid-dw th-dw-2">
                         <h2>住建局</h2>
-                        <h6>归集接口: <span>93</span></h6>
-                        <h6>共享接口: <span>7</span></h6>
+                        <h6>归集接口: <span>0</span></h6>
+                        <h6>共享接口: <span>0</span></h6>
                     </div>
                     <div class="th-mid-dw th-dw-3">
                         <h2>住建局</h2>
-                        <h6>归集接口: <span>93</span></h6>
-                        <h6>共享接口: <span>7</span></h6>
+                        <h6>归集接口: <span>0</span></h6>
+                        <h6>共享接口: <span>0</span></h6>
                     </div>
                     <div class="th-mid-dw th-dw-4">
                         <h2>住建局</h2>
-                        <h6>归集接口: <span>93</span></h6>
-                        <h6>共享接口: <span>7</span></h6>
+                        <h6>归集接口: <span>0</span></h6>
+                        <h6>共享接口: <span>0</span></h6>
                     </div>
                     <div class="th-mid-dw th-dw-5">
                         <h2>住建局</h2>
-                        <h6>归集接口: <span>93</span></h6>
-                        <h6>共享接口: <span>7</span></h6>
+                        <h6>归集接口: <span>0</span></h6>
+                        <h6>共享接口: <span>0</span></h6>
                     </div>
                     <div class="th-mid-dw th-dw-6">
                         <h2>住建局</h2>
-                        <h6>归集接口: <span>93</span></h6>
-                        <h6>共享接口: <span>7</span></h6>
+                        <h6>归集接口: <span>0</span></h6>
+                        <h6>共享接口: <span>0</span></h6>
                     </div>
                     <div class="th-mid-dw th-dw-7">
                         <h2>住建局</h2>
-                        <h6>归集接口: <span>93</span></h6>
-                        <h6>共享接口: <span>7</span></h6>
+                        <h6>归集接口: <span>0</span></h6>
+                        <h6>共享接口: <span>0</span></h6>
                     </div>
                 </div>
 
@@ -142,42 +142,42 @@
                     <li>
                         <img th:src="@{/visualization/images/th-right1.png}">
                         <div class="row-left">
-                            <span id="tj_interface_total">200</span>
+                            <span id="tj_interface_total">0</span>
                             <h1>接口总数</h1>
                         </div>
                     </li>
                     <li>
                         <img th:src="@{/visualization/images/th-right2.png}">
                         <div class="row-left">
-                            <span id="tj_dypc">200</span>
+                            <span id="tj_dypc">0</span>
                             <h1>调用频次</h1>
                         </div>
                     </li>
                     <li>
                         <img th:src="@{/visualization/images/th-right3.png}">
                         <div class="row-left">
-                            <span id="tj_gjpc">200</span>
+                            <span id="tj_gjpc">0</span>
                             <h1>归集频次</h1>
                         </div>
                     </li>
                     <li>
                         <img th:src="@{/visualization/images/th-right4.png}">
                         <div class="row-left">
-                            <span id="tj_gxpc">200</span>
+                            <span id="tj_gxpc">0</span>
                             <h1>共享频次</h1>
                         </div>
                     </li>
                     <li>
                         <img th:src="@{/visualization/images/th-right5.png}">
                         <div class="row-left">
-                            <span id="tj_jrbm">200</span>
+                            <span id="tj_jrbm">0</span>
                             <h1>接入部门</h1>
                         </div>
                     </li>
                     <li>
                         <img th:src="@{/visualization/images/th-right6.png}">
                         <div class="row-left">
-                            <span id="tj_jkgz">200</span>
+                            <span id="tj_jkgz">0</span>
                             <h1>接口故障</h1>
                         </div>
                     </li>
@@ -286,6 +286,13 @@
     function qssjgxqk(d) {
         var qssjgxqk_div = $("#qssjgxqk_div");
         qssjgxqk_div.html("");
+
+        data_szygjjk_name =[];
+        data_szygxjk_name=[];
+        data_szygjjk_value=[];
+        data_szygxjk_value=[];
+        data_total_name=[];
+        data_total_value=[];
         $.each(d.qssjgxqk_List, function (index, data) {
             var div = $("<div>");
             div.addClass("th-mid-dw th-dw-" + (index + 1));
@@ -334,6 +341,8 @@
 
 <script>
 
+    var fuck = true;
+
     function getVisualization() {
         $.ajax({
             url: '/MainPageController/getVisualization',
@@ -346,7 +355,11 @@
     var getmydmc = [];//数据点名称
     var getmyd_sz = [];//接口数值
     function getVisualization_Success(d) {
+        console.log("##########");
         // console.log(d.interfaceCallCount_List)
+        phnum = [];
+        getmydmc =[];
+        getmyd_sz =[];
         $.each(d.interfaceCallCount_List, function (index, data) {
             phnum.push((index + 1) + "   ")
             getmydmc.push(data.dept_name)
@@ -363,9 +376,9 @@
         qssjgxqk(d);
 
         //最后启动定时
-        t = setTimeout(time, 1000);
-        change_se = window.setTimeout(change_twoSec,2000);
-        change_thir = window.setTimeout(change_thirSec,3000);
+        // t = setTimeout(time, 1000);
+        // change_se = window.setTimeout(change_twoSec,2000);
+        // change_thir = window.setTimeout(change_thirSec,3000);
 
     }
     var d_zb_guiji = 100;
@@ -379,16 +392,31 @@
         change_se = window.setTimeout(change_twoSec,2000);
 
         var tj_interface_total =parseInt($("#tj_interface_total").text()) ;
-        tj_interface_total++;
-        $("#tj_interface_total").text(tj_interface_total);
+        if(fuck){
+            tj_interface_total+=5;
+            fuck = false;
+        }else{
+            tj_interface_total-=5;
+            fuck = true;
+        }
 
+        $("#tj_interface_total").text(tj_interface_total);
         var tj_dypc =parseInt($("#tj_dypc").text()) ;
-        tj_dypc++;
+        if(fuck == false && tj_dypc >3){
+            tj_dypc-=3;
+            fuck = true;
+        }else{
+            tj_dypc+=6;
+            fuck = false;
+        }
         $("#tj_dypc").text(tj_dypc);
 
 
         var tj_gjpc =parseInt($("#tj_gjpc").text()) ;
-        tj_gjpc++;
+        if(tj_gjpc){
+            tj_gjpc+=2;
+        }
+
         $("#tj_gjpc").text(tj_gjpc);
 
         var tj_gxpc =parseInt($("#tj_gxpc").text()) ;