|
@@ -381,30 +381,42 @@ public class TaUserVerifyServiceImpl extends ServiceImpl<TaUserVerifyMapper, TaU
|
381
|
381
|
responseBean.addError("操作失败!");
|
382
|
382
|
return responseBean;
|
383
|
383
|
}
|
384
|
|
-
|
385
|
|
- // 查询是否有相同的房间号
|
386
|
|
- TpBuildingOwnerInfo tpBuildingOwnerInfo = tpBuildingOwnerInfoMapper.selectCommunityIdAndAddress(taUserVerify.getOrgId(), taUserVerify.getPhaseId(),
|
387
|
|
- taUserVerify.getBuildingId(), taUserVerify.getUnitId(),
|
388
|
|
- taUserVerify.getLevelId(), taUserVerify.getRoomNoId(),
|
389
|
|
- taUserVerify.getPhone());
|
390
|
|
- if (null != tpBuildingOwnerInfo){
|
391
|
|
- // 自动审核通过
|
392
|
|
- tpBuildingOwnerInfo.setPairStatus("1");
|
393
|
|
- tpBuildingOwnerInfo.setVerifyStatus("1");
|
394
|
|
- tpBuildingOwnerInfo.setCreateDate(LocalDateTime.now());
|
395
|
|
- tpBuildingOwnerInfo.setCreateUser(-1);
|
396
|
|
- tpBuildingOwnerInfo.setTaUserVerifyId(taUserVerify.getId());
|
397
|
|
- tpBuildingOwnerInfoMapper.insert(tpBuildingOwnerInfo);
|
398
|
|
-
|
399
|
|
- taUserVerify.setVerifyStatus("1");
|
400
|
|
- taUserVerify.setVerifyName("自动审核通过");
|
401
|
|
- taUserVerifyMapper.updateById(taUserVerify);
|
402
|
|
-
|
403
|
|
- TaPerson taPerson = taPersonMapper.selectById(personId);
|
404
|
|
- taPerson.setName(taUserVerify.getOwnerName());
|
405
|
|
- taPersonMapper.updateById(taPerson);
|
406
|
384
|
|
|
385
|
+ // 户主自动审核
|
|
386
|
+ if (Constant.OWNER.equals(roleName)){
|
|
387
|
+ // 查看是否有审核通过的业主
|
|
388
|
+ TaUserVerify userVerify = taUserVerifyMapper.selectCommunityAndAddress(taUserVerify.getOrgId(), taUserVerify.getPhaseId(),
|
|
389
|
+ taUserVerify.getBuildingId(), taUserVerify.getUnitId(),
|
|
390
|
+ taUserVerify.getLevelId(), taUserVerify.getRoomNoId());
|
|
391
|
+ if (null != userVerify) {
|
|
392
|
+ responseBean.addSuccess(taUserVerify);
|
|
393
|
+ return responseBean;
|
|
394
|
+ }
|
|
395
|
+ // 查询是否有相同的房间号
|
|
396
|
+ TpBuildingOwnerInfo tpBuildingOwnerInfo = tpBuildingOwnerInfoMapper.selectCommunityIdAndAddress(taUserVerify.getOrgId(), taUserVerify.getPhaseId(),
|
|
397
|
+ taUserVerify.getBuildingId(), taUserVerify.getUnitId(),
|
|
398
|
+ taUserVerify.getLevelId(), taUserVerify.getRoomNoId(),
|
|
399
|
+ taUserVerify.getPhone());
|
|
400
|
+ if (null != tpBuildingOwnerInfo){
|
|
401
|
+ // 自动审核通过
|
|
402
|
+ tpBuildingOwnerInfo.setPairStatus("1");
|
|
403
|
+ tpBuildingOwnerInfo.setVerifyStatus("1");
|
|
404
|
+ tpBuildingOwnerInfo.setCreateDate(LocalDateTime.now());
|
|
405
|
+ tpBuildingOwnerInfo.setCreateUser(-1);
|
|
406
|
+ tpBuildingOwnerInfo.setTaUserVerifyId(taUserVerify.getId());
|
|
407
|
+ tpBuildingOwnerInfoMapper.insert(tpBuildingOwnerInfo);
|
|
408
|
+
|
|
409
|
+ taUserVerify.setVerifyStatus("1");
|
|
410
|
+ taUserVerify.setVerifyName("自动审核通过");
|
|
411
|
+ taUserVerifyMapper.updateById(taUserVerify);
|
|
412
|
+
|
|
413
|
+ TaPerson taPerson = taPersonMapper.selectById(personId);
|
|
414
|
+ taPerson.setName(taUserVerify.getOwnerName());
|
|
415
|
+ taPersonMapper.updateById(taPerson);
|
|
416
|
+
|
|
417
|
+ }
|
407
|
418
|
}
|
|
419
|
+
|
408
|
420
|
// // 推送消息
|
409
|
421
|
// TaUserVerify userVerify = taUserVerifyMapper.selectCommunityAndAddressAndRoleId(taUserVerify.getCommunityId(), taUserVerify.getPhaseId(), taUserVerify.getBuildingId(), taUserVerify.getUnitId(), taUserVerify.getLevelId(), taUserVerify.getRoomNoId());
|
410
|
422
|
// if (null != userVerify){
|