魏熙美 6 years ago
parent
commit
ceed072455

+ 2
- 5
CODE/smart-community/property-api/src/main/java/com/community/huiju/feign/TaUserFeignService.java View File

3
 import com.community.commom.mode.ResponseBean;
3
 import com.community.commom.mode.ResponseBean;
4
 import com.community.huiju.feign.impl.TaUserFeignFallBack;
4
 import com.community.huiju.feign.impl.TaUserFeignFallBack;
5
 import org.springframework.cloud.openfeign.FeignClient;
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
 @FeignClient(value = "app-api", fallback = TaUserFeignFallBack.class)
8
 @FeignClient(value = "app-api", fallback = TaUserFeignFallBack.class)
12
 public interface TaUserFeignService {
9
 public interface TaUserFeignService {
28
      * @return
25
      * @return
29
      */
26
      */
30
     @RequestMapping(value = "/pushHKPerson/{appUserId}", method = RequestMethod.POST)
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 View File

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

+ 1
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BuildingOwnerInfoServiceImpl.java View File

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

+ 2
- 2
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TaUserVerifyServiceImpl.java View File

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