魏熙美 il y a 6 ans
Parent
révision
ceed072455

+ 2
- 5
CODE/smart-community/property-api/src/main/java/com/community/huiju/feign/TaUserFeignService.java Voir le fichier

@@ -3,10 +3,7 @@ package com.community.huiju.feign;
3 3
 import com.community.commom.mode.ResponseBean;
4 4
 import com.community.huiju.feign.impl.TaUserFeignFallBack;
5 5
 import org.springframework.cloud.openfeign.FeignClient;
6
-import org.springframework.web.bind.annotation.PathVariable;
7
-import org.springframework.web.bind.annotation.RequestBody;
8
-import org.springframework.web.bind.annotation.RequestMapping;
9
-import org.springframework.web.bind.annotation.RequestMethod;
6
+import org.springframework.web.bind.annotation.*;
10 7
 
11 8
 @FeignClient(value = "app-api", fallback = TaUserFeignFallBack.class)
12 9
 public interface TaUserFeignService {
@@ -28,7 +25,7 @@ public interface TaUserFeignService {
28 25
      * @return
29 26
      */
30 27
     @RequestMapping(value = "/pushHKPerson/{appUserId}", method = RequestMethod.POST)
31
-    ResponseBean pushHKPerson(@PathVariable("appUserId") Integer appUserId);
28
+    ResponseBean pushHKPerson(@PathVariable("appUserId") Integer appUserId, @RequestParam("userVerifyId") Integer userVerifyId);
32 29
 
33 30
     /**
34 31
      * 异动下载门禁权限

+ 1
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/feign/impl/TaUserFeignFallBack.java Voir le fichier

@@ -13,7 +13,7 @@ public class TaUserFeignFallBack implements TaUserFeignService {
13 13
     }
14 14
 
15 15
     @Override
16
-    public ResponseBean pushHKPerson(Integer appUserId) {
16
+    public ResponseBean pushHKPerson(Integer appUserId,Integer userVerifyId) {
17 17
         return back();
18 18
     }
19 19
 

+ 1
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BuildingOwnerInfoServiceImpl.java Voir le fichier

@@ -189,7 +189,7 @@ public class BuildingOwnerInfoServiceImpl extends ServiceImpl<TpBuildingOwnerInf
189 189
             tpBuildingOwnerInfoMapper.updateById(tpBuildingOwnerInfo);
190 190
 
191 191
             // 推送海康
192
-            ResponseBean pushHKPerson = taUserFeignService.pushHKPerson(userVerify.getUserId());
192
+            ResponseBean pushHKPerson = taUserFeignService.pushHKPerson(userVerify.getUserId(), userVerifyId);
193 193
             if (!"0".equals(pushHKPerson.getCode())) {
194 194
                 throw new WisdomException("设备推送失败!");
195 195
             }

+ 2
- 2
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TaUserVerifyServiceImpl.java Voir le fichier

@@ -124,7 +124,7 @@ public class TaUserVerifyServiceImpl extends ServiceImpl<TaUserVerifyMapper, TaU
124 124
 
125 125
         try {
126 126
             // 推送海康
127
-            ResponseBean pushHKPerson = taUserFeignService.pushHKPerson(userVerify.getUserId());
127
+            ResponseBean pushHKPerson = taUserFeignService.pushHKPerson(userVerify.getUserId(), userVerifyId);
128 128
             if (!"0".equals(pushHKPerson.getCode())) {
129 129
                 throw new WisdomException("设备推送失败!");
130 130
             }
@@ -269,7 +269,7 @@ public class TaUserVerifyServiceImpl extends ServiceImpl<TaUserVerifyMapper, TaU
269 269
 
270 270
             try {
271 271
                 // 推送海康
272
-                ResponseBean pushHKPerson = taUserFeignService.pushHKPerson(userVerify.getUserId());
272
+                ResponseBean pushHKPerson = taUserFeignService.pushHKPerson(userVerify.getUserId(), userVerifyId);
273 273
                 if (!"0".equals(pushHKPerson.getCode())) {
274 274
                     throw new WisdomException("设备推送失败!");
275 275
                 }