|
@@ -8,6 +8,8 @@ import com.community.commom.constant.Constant;
|
8
|
8
|
import com.community.commom.mode.ResponseBean;
|
9
|
9
|
import com.community.commom.session.UserElement;
|
10
|
10
|
import com.community.huiju.dao.*;
|
|
11
|
+import com.community.huiju.exception.WisdomException;
|
|
12
|
+import com.community.huiju.feign.TaUserFeignService;
|
11
|
13
|
import com.community.huiju.model.*;
|
12
|
14
|
import com.community.huiju.service.ITaUserVerifyService;
|
13
|
15
|
import org.apache.commons.lang.StringUtils;
|
|
@@ -54,6 +56,9 @@ public class TaUserVerifyServiceImpl extends ServiceImpl<TaUserVerifyMapper, TaU
|
54
|
56
|
@Autowired
|
55
|
57
|
private TpRoomNoMapper tpRoomNoMapper;
|
56
|
58
|
|
|
59
|
+ @Autowired
|
|
60
|
+ private TaUserFeignService taUserFeignService;
|
|
61
|
+
|
57
|
62
|
@Override
|
58
|
63
|
public ResponseBean selectAll(String phone, String userName, String idCard, Integer pageNum, Integer pageSize) {
|
59
|
64
|
ResponseBean responseBean = new ResponseBean();
|
|
@@ -173,6 +178,11 @@ public class TaUserVerifyServiceImpl extends ServiceImpl<TaUserVerifyMapper, TaU
|
173
|
178
|
// 添加楼栋数据
|
174
|
179
|
insertBuildingOwnerInfo(userVerify, user);
|
175
|
180
|
}
|
|
181
|
+ // 推送海康
|
|
182
|
+ ResponseBean pushHKPerson = taUserFeignService.pushHKPerson(userVerify.getUserId());
|
|
183
|
+ if (!"0".equals(pushHKPerson.getCode())) {
|
|
184
|
+ throw new WisdomException("设备推送失败!");
|
|
185
|
+ }
|
176
|
186
|
}
|
177
|
187
|
taUserVerifyMapper.updateById(userVerify);
|
178
|
188
|
|