소스 검색

Merge branch 'develop' of http://git.ycjcjy.com/fuxingfan/smartCommunity into develop

傅行帆 6 년 전
부모
커밋
a6a858cb30
36개의 변경된 파일445개의 추가작업 그리고 8개의 파일을 삭제
  1. BIN
      CODE/smart-community/app-api/lib/Digests.jar
  2. BIN
      CODE/smart-community/app-api/lib/HttpClientSSLUtils.jar
  3. 13
    0
      CODE/smart-community/app-api/pom.xml
  4. 57
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/common/hk/HKConstant.java
  5. 50
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/common/hk/HKOpenApi.java
  6. 40
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/common/hk/entity/MonitoryPoint.java
  7. 174
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/common/hk/test/OpenapiTest.java
  8. 90
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/common/hk/test/OpenapiUtil.java
  9. 0
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/MonitoringController.java
  10. 17
    6
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/MonitoringServiceImpl.java
  11. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/ailiyun/AESDecode.class
  12. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/constant/Constant.class
  13. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/mode/ResponseBean.class
  14. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/redis/FastJsonSerializer.class
  15. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/redis/RedisConfiguration.class
  16. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/redis/RedisJsonSerializer.class
  17. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/redis/RedisObjectSerializer.class
  18. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/redis/RedisSerializer.class
  19. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/redis/RedisTemplate.class
  20. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/redis/SerializationFailedException.class
  21. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/redis/SingleRedisTemplate.class
  22. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/session/UserElement.class
  23. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/utils/AccountValidatorUtil.class
  24. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/utils/BeanTools.class
  25. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/utils/CommonUtils.class
  26. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/utils/CookieUtil.class
  27. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/utils/DESUtils.class
  28. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/utils/DateUtils.class
  29. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/utils/EnumUtils.class
  30. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/utils/HttpClientUtils.class
  31. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/utils/MD5Utils.class
  32. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/utils/OssUtil.class
  33. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/utils/QRCodeGeneratorUtils.class
  34. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/utils/StringConverter.class
  35. 1
    1
      VUECODE/smart-operate-manage/src/store/modules/banner.js
  36. 3
    0
      VUECODE/smart-operate-manage/src/views/banner/addBanner/index.vue

BIN
CODE/smart-community/app-api/lib/Digests.jar 파일 보기


BIN
CODE/smart-community/app-api/lib/HttpClientSSLUtils.jar 파일 보기


+ 13
- 0
CODE/smart-community/app-api/pom.xml 파일 보기

@@ -161,6 +161,19 @@
161 161
 			<version>3.11.0</version>
162 162
 		</dependency>
163 163
 
164
+		<dependency>
165
+			<groupId>commons-httpclient</groupId>
166
+			<artifactId>commons-httpclient</artifactId>
167
+			<version>3.1</version>
168
+		</dependency>
169
+
170
+		<!-- https://mvnrepository.com/artifact/commons-io/commons-io -->
171
+		<dependency>
172
+			<groupId>commons-io</groupId>
173
+			<artifactId>commons-io</artifactId>
174
+			<version>1.4</version>
175
+		</dependency>
176
+
164 177
 
165 178
 
166 179
 	</dependencies>

+ 57
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/common/hk/HKConstant.java 파일 보기

@@ -0,0 +1,57 @@
1
+package com.community.huiju.common.hk;
2
+
3
+public class HKConstant {
4
+
5
+    /**
6
+     * APPKEY需要到部署的平台服务器上生成。
7
+     * <p>
8
+     * 调用Openpai的操作码,需要去平台上生成,详见《海康威视iVMS-8700平台SDKV2.*.* HTTP-OpenAPI使用说明书.chm》中[获取AppKey和Secret]章节说明
9
+     * </p>
10
+     * <p>
11
+     * 《海康威视iVMS-8700平台SDKV2.*.* HTTP-OpenAPI使用说明书.chm》 该文档请找技术支持或者交付的同事提供
12
+     * </p>
13
+     */
14
+    public static final String APPKEY = "b4434b13";
15
+
16
+    /**
17
+     * SECRET需要到部署的平台服务器上生成。
18
+     * <p>
19
+     * 调用Openpai的操作码,需要去平台上生成,详见《海康威视iVMS-8700平台SDKV2.*.* HTTP-OpenAPI使用说明书.chm》中[获取AppKey和Secret]章节说明
20
+     * </p>
21
+     * <p>
22
+     * 《海康威视iVMS-8700平台SDKV2.*.* HTTP-OpenAPI使用说明书.chm》 该文档请找技术支持或者交付的同事提供
23
+     * </p>
24
+     */
25
+    public static final String SECRET = "64a1f32d53784ce2a34bd81822db1b91";
26
+
27
+
28
+    /**
29
+     * http请求地址
30
+     * <p>openapi的地址,默认情况下openapi的IP端口与基础应用的IP端口是一致的</p>
31
+     * <p>请将地址配置正确.</p>
32
+     * <p>默认情况下是127.0.0.1:80 ,如果地址不通请根据实际情况修改IP端口</p>
33
+     */
34
+    public static final String OPENAPI_IP_PORT_HTTP = "http://192.168.0.122";
35
+
36
+    /**
37
+     * <p>操作用户UUID,即用户UUID,首次使用操作用户UUID可以通过接口 [获取默认用户UUID]来获取</p>
38
+     * <p>也可以通过接口[分页获取用户]来获取</p>
39
+     */
40
+    public static final String OP_USER_UUID = "5b2eb534696b11e89c2e438f92627767";
41
+
42
+    /**
43
+     * 获取默认用户UUID的接口地址,此地址可以从《海康威视iVMS-8700平台SDKV2.*.* HTTP-OpenAPI使用说明书.chm》中具体的接口说明上获取
44
+     */
45
+    public static final String ITF_ADDRESS_GET_DEFAULT_USER_UUID = "/openapi/service/base/user/getDefaultUserUuid";
46
+
47
+    /**
48
+     * 分页获取监控点信息的接口地址,此地址可以从《海康威视iVMS-8700平台SDKV2.*.* HTTP-OpenAPI使用说明书.chm》中具体的接口说明上获取
49
+     */
50
+    public static final String ITF_ADDRESS_GET_CAMERAS = "/openapi/service/vss/res/getCameras";
51
+
52
+    /**
53
+     * 查询监控点地址
54
+     */
55
+    public static final String ITF_MONITORY_POINT = "/openapi/service/vss/res/getCamerasEx";
56
+
57
+}

+ 50
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/common/hk/HKOpenApi.java 파일 보기

@@ -0,0 +1,50 @@
1
+package com.community.huiju.common.hk;
2
+
3
+import com.alibaba.fastjson.JSON;
4
+import com.google.common.collect.Maps;
5
+import com.hikvision.cms.api.common.util.Digests;
6
+import com.hikvision.cms.api.common.util.HttpClientSSLUtils;
7
+import lombok.extern.slf4j.Slf4j;
8
+
9
+import java.util.Map;
10
+
11
+/**
12
+ * 海康 API
13
+ * @author weiximei
14
+ */
15
+@Slf4j
16
+public class HKOpenApi {
17
+
18
+    /**
19
+     * 根据
20
+     * 组织中心UUID集 ,第几页, 一页多少行
21
+     *
22
+     * 获取  监控点 数据列表
23
+     * @return
24
+     */
25
+    public static String getMonitoryPoint(Map<String,Object> map){
26
+        Map<String,Object> parMap = Maps.newHashMap();
27
+        String url = HKConstant.OPENAPI_IP_PORT_HTTP + HKConstant.ITF_ADDRESS_GET_CAMERAS;
28
+        //设置APPKEY
29
+        parMap.put("appkey", HKConstant.APPKEY);
30
+        //设置时间参数
31
+        parMap.put("time", System.currentTimeMillis());
32
+        parMap.put("pageNo",map.get("pageNo"));
33
+        parMap.put("pageSize",map.get("pageSize"));
34
+        parMap.put("opUserUuid",HKConstant.OP_USER_UUID);
35
+        parMap.put("unitUuids",map.get("unitUuids"));
36
+        String params =  JSON.toJSONString(parMap);
37
+        log.info("获取 监控列表 请求参数:{}", params);
38
+        String data = null;
39
+        try {
40
+            data = HttpClientSSLUtils.doPost(url + "?token=" + Digests.buildToken(url + "?" + params, params, HKConstant.SECRET), params);
41
+            log.info("获取 监控列表 请求返回结果:{}",data);
42
+        } catch (Exception e) {
43
+            e.printStackTrace();
44
+            log.error("获取监控列表失败!",e);
45
+        }
46
+
47
+        return data;
48
+    }
49
+
50
+}

+ 40
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/common/hk/entity/MonitoryPoint.java 파일 보기

@@ -0,0 +1,40 @@
1
+package com.community.huiju.common.hk.entity;
2
+
3
+import lombok.AllArgsConstructor;
4
+import lombok.Data;
5
+import lombok.NoArgsConstructor;
6
+
7
+/**
8
+ * 响应 监控中心 实体类
9
+ * @author weiximei
10
+ */
11
+@AllArgsConstructor
12
+@NoArgsConstructor
13
+@Data
14
+public class MonitoryPoint {
15
+
16
+    private Integer errorCode;
17
+
18
+    private String errorMessage;
19
+
20
+    private String data;
21
+
22
+
23
+    private class MonitoryPointData {
24
+        Integer total;
25
+        Integer pageNo;
26
+        Integer pageSize;
27
+        String list;
28
+
29
+
30
+    }
31
+
32
+    private class MonitoryPointList {
33
+
34
+        String cameraUuid;
35
+        String cameraName;
36
+
37
+    }
38
+
39
+
40
+}

+ 174
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/common/hk/test/OpenapiTest.java 파일 보기

@@ -0,0 +1,174 @@
1
+package com.community.huiju.common.hk.test;
2
+
3
+import java.util.HashMap;
4
+import java.util.Map;
5
+
6
+import com.alibaba.fastjson.JSON;
7
+import com.hikvision.cms.api.common.util.Digests;
8
+import com.hikvision.cms.api.common.util.HttpClientSSLUtils;
9
+
10
+/**
11
+ * openapi 测试DEMO
12
+ * 客户开发的时候可以参考此代码编写自己的应用
13
+ * 也可以使用demo中的jar包,不过jar包使用务必使用全套,
14
+ * 万不可只取其中一部分,避免依赖破坏
15
+ * @author shengyiling
16
+ *
17
+ */
18
+class OpenapiTest {
19
+	
20
+	/**
21
+	 * APPKEY需要到部署的平台服务器上生成。
22
+	 * <p>
23
+	 * 调用Openpai的操作码,需要去平台上生成,详见《海康威视iVMS-8700平台SDKV2.*.* HTTP-OpenAPI使用说明书.chm》中[获取AppKey和Secret]章节说明
24
+	 * </p>
25
+	 * <p>
26
+	 * 《海康威视iVMS-8700平台SDKV2.*.* HTTP-OpenAPI使用说明书.chm》 该文档请找技术支持或者交付的同事提供
27
+	 * </p>
28
+	 */
29
+	private static final String APPKEY = "b4434b13";
30
+	
31
+	/**
32
+	 * SECRET需要到部署的平台服务器上生成。
33
+	 * <p>
34
+	 * 调用Openpai的操作码,需要去平台上生成,详见《海康威视iVMS-8700平台SDKV2.*.* HTTP-OpenAPI使用说明书.chm》中[获取AppKey和Secret]章节说明
35
+	 * </p>
36
+	 * <p>
37
+	 * 《海康威视iVMS-8700平台SDKV2.*.* HTTP-OpenAPI使用说明书.chm》 该文档请找技术支持或者交付的同事提供
38
+	 * </p>
39
+	 */
40
+	private static final String SECRET = "64a1f32d53784ce2a34bd81822db1b91";
41
+	
42
+	
43
+	/**
44
+	 * http请求地址
45
+	 * <p>openapi的地址,默认情况下openapi的IP端口与基础应用的IP端口是一致的</p>
46
+	 * <p>请将地址配置正确.</p>
47
+	 * <p>默认情况下是127.0.0.1:80 ,如果地址不通请根据实际情况修改IP端口</p>
48
+ 	 */
49
+	private static final String OPENAPI_IP_PORT_HTTP = "http://192.168.0.122";
50
+	
51
+	/**
52
+	 * https请求地址
53
+	 * <p>openapi的地址,默认情况下openapi的IP端口与基础应用的IP端口是一致的</p>
54
+	 * <p>请将地址配置正确.</p>
55
+	 * <p>默认情况下是127.0.0.1:443 ,如果地址不通请根据实际情况修改IP端口</p>
56
+ 	 */
57
+	private static final String OPENAPI_IP_PORT_HTTPS = "https://127.0.0.1:443";
58
+	
59
+	/**
60
+	 * 获取默认用户UUID的接口地址,此地址可以从《海康威视iVMS-8700平台SDKV2.*.* HTTP-OpenAPI使用说明书.chm》中具体的接口说明上获取
61
+	 */
62
+	private static final String ITF_ADDRESS_GET_DEFAULT_USER_UUID = "/openapi/service/base/user/getDefaultUserUuid";
63
+	
64
+	/**
65
+	 * 分页获取监控点信息的接口地址,此地址可以从《海康威视iVMS-8700平台SDKV2.*.* HTTP-OpenAPI使用说明书.chm》中具体的接口说明上获取
66
+	 */
67
+	private static final String ITF_ADDRESS_GET_CAMERAS = "/openapi/service/vss/res/getCameras";
68
+	
69
+	/**
70
+	 * <p>操作用户UUID,即用户UUID,首次使用操作用户UUID可以通过接口 [获取默认用户UUID]来获取</p>
71
+	 * <p>也可以通过接口[分页获取用户]来获取</p>
72
+	 */
73
+//	private static final String OP_USER_UUID = "0be83d40695011e7981e0f190ed6d2e7";
74
+	private static final String OP_USER_UUID = "5b2eb534696b11e89c2e438f92627767";
75
+	
76
+	/**
77
+	 * 测试方法
78
+	 * @param args
79
+	 * @throws Exception
80
+	 */
81
+	public static void main(String[] args) throws Exception {
82
+
83
+		/***http方式调用***/
84
+		//System.out.println(testGetDefaultUserUUID());
85
+		System.out.println(testGetCameras());
86
+//		
87
+//		/***https方式调用***/
88
+//		System.out.println(testGetDefaultUserUUID_Https());
89
+//		System.out.println(testGetCameras_Https());
90
+	}
91
+	
92
+	/**
93
+	 * HTTP方式
94
+	 * 获取默认用户UUID 测试
95
+	 * @return
96
+	 * @throws Exception
97
+	 */
98
+	private static String testGetDefaultUserUUID() throws Exception{
99
+		String url = OPENAPI_IP_PORT_HTTP + ITF_ADDRESS_GET_DEFAULT_USER_UUID;
100
+		Map<String, Object> map = new HashMap<String, Object>();
101
+		map.put("appkey", APPKEY);//设置APPKEY
102
+		map.put("time", System.currentTimeMillis());//设置时间参数
103
+		String params =  JSON.toJSONString(map);
104
+		System.out.println(" ====== testGetDefaultUserUUID 请求参数:【" + params + "】");
105
+		String data = HttpClientSSLUtils.doPost(url + "?token=" + Digests.buildToken(url + "?" + params, params, SECRET), params);
106
+		System.out.println(" ====== testGetDefaultUserUUID 请求返回结果:【{" + data + "}】");
107
+		
108
+		return data;
109
+	}
110
+	
111
+	/** 
112
+	 * HTTP方式
113
+	 * 分页获取监控点信息 测试
114
+	 * @return
115
+	 * @throws Exception
116
+	 */
117
+	private static String testGetCameras() throws Exception{
118
+		 String url = OPENAPI_IP_PORT_HTTP + ITF_ADDRESS_GET_CAMERAS;
119
+        Map<String, Object> map = new HashMap<String, Object>();
120
+        map.put("appkey", APPKEY);//设置APPKEY
121
+        map.put("time", System.currentTimeMillis());//设置时间参数
122
+        map.put("pageNo", 1);//设置分页参数
123
+        map.put("pageSize", 5);//设置分页参数
124
+        map.put("opUserUuid", OP_USER_UUID);//设置操作用户UUID
125
+        String params = JSON.toJSONString(map);
126
+        System.out.println(" ====== getCameras请求参数:【" + params + "】");
127
+        String data = HttpClientSSLUtils.doPost(url + "?token=" + Digests.buildToken(url + "?" + params, null, SECRET), params);
128
+        System.out.println(" ====== getCameras请求返回结果:【{" + data + "}】");
129
+        
130
+        return data;
131
+	}
132
+	
133
+	/**
134
+	 * HTTPS方式
135
+	 * 获取默认用户UUID 测试
136
+	 * @return
137
+	 * @throws Exception
138
+	 */
139
+	private static String testGetDefaultUserUUID_Https() throws Exception{
140
+		String url = OPENAPI_IP_PORT_HTTPS + ITF_ADDRESS_GET_DEFAULT_USER_UUID;
141
+		Map<String, Object> map = new HashMap<String, Object>();
142
+		map.put("appkey", APPKEY);//设置APPKEY
143
+		map.put("time", System.currentTimeMillis());//设置时间参数
144
+		String params =  JSON.toJSONString(map);
145
+		System.out.println("============" + params + "============");
146
+		String data = HttpClientSSLUtils.doPost(url + "?token=" + Digests.buildToken(url + "?" + params, null, SECRET), params);
147
+		System.out.println("============" + data + "============");
148
+		
149
+		return data;
150
+	}
151
+	
152
+	/**
153
+	 * HTTPS方式
154
+	 * 分页获取监控点信息 测试
155
+	 * @return
156
+	 * @throws Exception
157
+	 */
158
+	private static String testGetCameras_Https() throws Exception{
159
+		 String url = OPENAPI_IP_PORT_HTTPS + ITF_ADDRESS_GET_CAMERAS;
160
+        Map<String, Object> map = new HashMap<String, Object>();
161
+        map.put("appkey", APPKEY);//设置APPKEY
162
+        map.put("time", System.currentTimeMillis());//设置时间参数
163
+        map.put("pageNo", 1);//设置分页参数
164
+        map.put("pageSize", 5);//设置分页参数
165
+        map.put("opUserUuid", OP_USER_UUID);//设置操作用户UUID
166
+        String params = JSON.toJSONString(map);
167
+        System.out.println(" ====== getCameras请求参数:【" + params + "】");
168
+        String data = HttpClientSSLUtils.doPost(url + "?token=" + Digests.buildToken(url + "?" + params, null, SECRET), params);
169
+        System.out.println(" ====== getCameras请求返回结果:【{" + data + "}】");
170
+        
171
+        return data;
172
+	}
173
+	
174
+}

+ 90
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/common/hk/test/OpenapiUtil.java 파일 보기

@@ -0,0 +1,90 @@
1
+package com.community.huiju.common.hk.test;
2
+
3
+import java.awt.image.BufferedImage;
4
+import java.io.ByteArrayOutputStream;
5
+import java.io.File;
6
+import java.io.FileOutputStream;
7
+import java.io.IOException;
8
+import java.net.MalformedURLException;
9
+import java.net.URL;
10
+import java.util.Base64;
11
+import java.util.Base64.Decoder;
12
+import java.util.Base64.Encoder;
13
+
14
+import javax.imageio.ImageIO;
15
+
16
+/**
17
+ * Openapi接口调用过程中会用到的一些工具方法
18
+ * @author shengyiling
19
+ *
20
+ */
21
+public class OpenapiUtil {
22
+
23
+	/**
24
+	 * BASE64加密网络图片,返回加密之后的字符串
25
+	 * @param imageUrl 图片的绝对地址
26
+	 * @param extensioName 图片的扩展名,例如 jpg、bmp等
27
+	 * @return 加密之后的字符串
28
+	 */
29
+	public static String encodeImage2Base64(URL imageUrl, String extensioName){
30
+		ByteArrayOutputStream outputStream = null;  
31
+        try {  
32
+            BufferedImage bufferedImage = ImageIO.read(imageUrl);  //读取网络图片
33
+            outputStream = new ByteArrayOutputStream();  //文件输出流
34
+            ImageIO.write(bufferedImage, extensioName, outputStream);  
35
+        } catch (MalformedURLException e1) {  
36
+            e1.printStackTrace();  
37
+        } catch (IOException e) {  
38
+            e.printStackTrace();  
39
+        }  
40
+        Encoder encoder = Base64.getEncoder();
41
+        
42
+        return encoder.encodeToString(outputStream.toByteArray());// 返回Base64编码过的字节数组字符串  
43
+	}
44
+	
45
+	/** 
46
+     * 将本地图片进行Base64位编码 
47
+     *  
48
+     * @param imgUrl 
49
+     *            图片的url路径,如http://.....xx.jpg 
50
+     * @param extensioName 图片的扩展名
51
+     * @return 加密之后的字符串
52
+     */  
53
+    public static String encodeImgageToBase64(File imageFile, String extensioName) {// 将图片文件转化为字节数组字符串,并对其进行Base64编码处理  
54
+        ByteArrayOutputStream outputStream = null;  
55
+        try {  
56
+            BufferedImage bufferedImage = ImageIO.read(imageFile);  
57
+            outputStream = new ByteArrayOutputStream();  
58
+            ImageIO.write(bufferedImage, extensioName, outputStream);  
59
+        } catch (MalformedURLException e1) {  
60
+            e1.printStackTrace();  
61
+        } catch (IOException e) {  
62
+            e.printStackTrace();  
63
+        }  
64
+        // 对字节数组Base64编码  
65
+        Encoder encoder = Base64.getEncoder(); 
66
+        
67
+        return encoder.encodeToString(outputStream.toByteArray());// 返回Base64编码过的字节数组字符串  
68
+    }
69
+    
70
+    
71
+    /**
72
+     * 将Base64位编码的图片进行解码,并保存到指定目录
73
+     * @param base64Str 利用base64加密之后的字符串
74
+     * @param path 文件解密之后存放的地址 例如:D://
75
+     * @param imgName 文件解密之后命名的名称 例如: test.jpg
76
+     */
77
+    public static void decodeBase64ToImage(String base64Str, String path,  
78
+            String imgName) {  
79
+        Decoder decoder = Base64.getDecoder();  
80
+        try {  
81
+            FileOutputStream write = new FileOutputStream(new File(path  
82
+                    + imgName));  
83
+            byte[] decoderBytes = decoder.decode(base64Str);  
84
+            write.write(decoderBytes);  
85
+            write.close();  
86
+        } catch (IOException e) {  
87
+            e.printStackTrace();  
88
+        }  
89
+    }  
90
+}

+ 0
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/MonitoringController.java 파일 보기

@@ -35,7 +35,6 @@ public class MonitoringController {
35 35
     @RequestMapping(value = "/monitoring/{communityId}",method = RequestMethod.POST)
36 36
     public ResponseBean getList(@PathVariable("communityId") Integer communityId){
37 37
         ResponseBean response = iMonitoringService.getByCommunityId(communityId);
38
-
39 38
         return response;
40 39
     }
41 40
 

+ 17
- 6
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/MonitoringServiceImpl.java 파일 보기

@@ -1,10 +1,18 @@
1 1
 package com.community.huiju.service.impl;
2 2
 
3
+import com.alibaba.fastjson.JSON;
4
+import com.alibaba.fastjson.JSONObject;
3 5
 import com.community.commom.mode.ResponseBean;
6
+import com.community.huiju.common.hk.HKConstant;
7
+import com.community.huiju.common.hk.HKOpenApi;
4 8
 import com.community.huiju.service.IMonitoringService;
5 9
 import com.google.common.collect.Maps;
10
+import com.hikvision.cms.api.common.util.Digests;
11
+import com.hikvision.cms.api.common.util.HttpClientSSLUtils;
12
+import lombok.extern.slf4j.Slf4j;
6 13
 import org.springframework.stereotype.Service;
7 14
 
15
+import java.util.HashMap;
8 16
 import java.util.Map;
9 17
 
10 18
 /**
@@ -12,20 +20,23 @@ import java.util.Map;
12 20
  * @author weixmei
13 21
  */
14 22
 @Service("iMonitoringService")
23
+@Slf4j
15 24
 public class MonitoringServiceImpl implements IMonitoringService {
16 25
 
17 26
     @Override
18 27
     public ResponseBean getByCommunityId(Integer communityId) {
19 28
 
20
-        // TODO 数据是假数据, 后期在更改
29
+        // TODO 数据是假数据, 后期在更改. 需要根据小区查询 组织中心编号
21 30
 
22 31
         ResponseBean response = new ResponseBean();
23
-        Map<String, Object> map = Maps.newHashMap();
24
-        map.put("id","15463");
25
-        map.put("des","东大门监控");
26
-
32
+        Map<String,Object> parMap = Maps.newHashMap();
33
+        parMap.put("pageNo",1);
34
+        parMap.put("pageSize",100);
35
+        parMap.put("opUserUuid",HKConstant.OP_USER_UUID);
36
+        parMap.put("unitUuids","1048576");
37
+        String result = HKOpenApi.getMonitoryPoint(parMap);
38
+        Map<String, Object> map = JSONObject.parseObject(result,HashMap.class);
27 39
         response.addSuccess(map);
28
-
29 40
         return response;
30 41
     }
31 42
 }

BIN
CODE/smart-community/community-common/target/classes/com/community/commom/ailiyun/AESDecode.class 파일 보기


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/constant/Constant.class 파일 보기


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/mode/ResponseBean.class 파일 보기


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/redis/FastJsonSerializer.class 파일 보기


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/redis/RedisConfiguration.class 파일 보기


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/redis/RedisJsonSerializer.class 파일 보기


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/redis/RedisObjectSerializer.class 파일 보기


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/redis/RedisSerializer.class 파일 보기


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/redis/RedisTemplate.class 파일 보기


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/redis/SerializationFailedException.class 파일 보기


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/redis/SingleRedisTemplate.class 파일 보기


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/session/UserElement.class 파일 보기


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/utils/AccountValidatorUtil.class 파일 보기


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/utils/BeanTools.class 파일 보기


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/utils/CommonUtils.class 파일 보기


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/utils/CookieUtil.class 파일 보기


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/utils/DESUtils.class 파일 보기


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/utils/DateUtils.class 파일 보기


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/utils/EnumUtils.class 파일 보기


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/utils/HttpClientUtils.class 파일 보기


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/utils/MD5Utils.class 파일 보기


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/utils/OssUtil.class 파일 보기


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/utils/QRCodeGeneratorUtils.class 파일 보기


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/utils/StringConverter.class 파일 보기


+ 1
- 1
VUECODE/smart-operate-manage/src/store/modules/banner.js 파일 보기

@@ -28,7 +28,7 @@ const banner = {
28 28
     },
29 29
 
30 30
     // 修改 banner
31
-    UpdateBanner({ commit}, banner ) {
31
+    UpdateBanner({ commit }, banner ) {
32 32
       return new Promise((resolve, reject) => {
33 33
         updateBanner(banner).then(response => {
34 34
           resolve(response)

+ 3
- 0
VUECODE/smart-operate-manage/src/views/banner/addBanner/index.vue 파일 보기

@@ -0,0 +1,3 @@
1
+
2
+
3
+