| | |
| | | Long communityId=this.baseMapper.selectCommunityId(comPbCheckUnit.getHelpCommunityName().split(",")[0],comPbCheckUnit.getHelpCommunityName().split(",")[1],comPbCheckUnit.getHelpCommunityName().split(",")[2]); |
| | | ComPbCheckUnit entity = new ComPbCheckUnit(); |
| | | BeanUtils.copyProperties(comPbCheckUnit, entity); |
| | | int a=0; |
| | | if(!StringUtils.isEmpty(comPbCheckUnit.getAdminPhone())) |
| | | { |
| | | a=this.baseMapper.selectOrgAdmin(comPbCheckUnit.getAdminPhone()); |
| | | } |
| | | if(a!=0) |
| | | { |
| | | return R.fail("该手机号已绑定管理员!"); |
| | | } |
| | | if(communityId!=null){ |
| | | entity.setCommunityId(communityId); |
| | | } |