| | |
| | | @ApiOperation(value = "党员认证") |
| | | @PostMapping("partybuildingembercertification") |
| | | public R partybuildingembercertification(@RequestBody @Validated(AddGroup.class) ComPbMemberCertificationDTO comPbMemberCertificationDTO) { |
| | | //totest 党员认证 |
| | | //党员认证 |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | Long userId = loginUserInfo.getUserId(); |
| | | Long communityId = loginUserInfo.getCommunityId(); |
| | |
| | | Object certUserInfo = certUser.getData(); |
| | | boolean userCertified = false; |
| | | if (certUserInfo != null) { |
| | | PartyBuildingMemberVO certUserVo = (PartyBuildingMemberVO) certUserInfo; |
| | | //已认证党员身份,直接返回 |
| | | userCertified = certUserVo.getAuditResult() == 1; |
| | | try { |
| | | PartyBuildingMemberVO certUserVo = JSONObject.parseObject(JSONObject.toJSONString(certUser.getData()), PartyBuildingMemberVO.class); |
| | | //已认证党员身份,直接返回 |
| | | userCertified = certUserVo.getAuditResult() == 1; |
| | | }catch (Exception e){} |
| | | } |
| | | //匹配手机,验证是否进行自动确认 |
| | | if (userCertified) { |
| | |
| | | @ApiOperation(value = "党员认证查询") |
| | | @GetMapping("partybuildingembercertification") |
| | | public R partybuildingembercertification() { |
| | | //totest 党员认证查询 |
| | | //党员认证查询 |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | Long userId = loginUserInfo.getUserId(); |
| | | return partyBuildingService.userCertification(userId); |