| | |
| | | import org.slf4j.Logger; |
| | | import com.java110.core.log.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | |
| | | List<CommunityDto> communityDtos = null; |
| | | for (OwnerDto tmpOwnerDto : ownerDtos) { |
| | | //用userId和手机号查询绑定关系,没有则新增 |
| | | OwnerAppUserDto ownerAppUserDto = new OwnerAppUserDto(); |
| | | ownerAppUserDto.setLink(reqJson.getString("link")); |
| | | ownerAppUserDto.setUserId(tmpOwnerDto.getUserId()); |
| | | List<OwnerAppUserDto> ownerAppUserDtos = ownerAppUserV1InnerServiceSMOImpl.queryOwnerAppUsers(ownerAppUserDto); |
| | | if(!CollectionUtils.isEmpty(ownerAppUserDtos)){ |
| | | continue; |
| | | } |
| | | CommunityDto communityDto = new CommunityDto(); |
| | | communityDto.setState("1100"); |
| | | communityDto.setCommunityId(tmpOwnerDto.getCommunityId()); |
| | |
| | | ownerAppUserPo.setLink(tmpOwnerDto.getLink()); |
| | | ownerAppUserPo.setOpenId("-1"); |
| | | ownerAppUserPo.setAppTypeCd("10010"); |
| | | ownerAppUserPo.setState(OwnerAppUserDto.STATE_AUDIT_SUCCESS); |
| | | ownerAppUserPo.setState(OwnerAppUserDto.STATE_NOT_AUDIT); |
| | | ownerAppUserPo.setRemark("注册自动关联"); |
| | | ownerAppUserPo.setUserId(userPo.getUserId()); |
| | | ownerAppUserPo.setAppType(appType); |