...
|
...
|
@@ -542,6 +542,10 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
//已有申请中的
|
|
|
throw new ServiceException(ServiceError.UNION_HAS_APPLY_ERROR);
|
|
|
}
|
|
|
req.setSocialMediaList(filterSocialMedia(req.getSocialMediaList()));
|
|
|
if (CollectionUtils.isEmpty(req.getSocialMediaList())) {
|
|
|
throw new ServiceException(ServiceError.UNION_SOCIALMEDIA_ERROR);
|
|
|
}
|
|
|
//申请
|
|
|
UnionShareUserApply unionShareUserApply = new UnionShareUserApply();
|
|
|
BeanUtils.copyProperties(req,unionShareUserApply);
|
...
|
...
|
@@ -551,6 +555,21 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
int result = unionShareUserApplyMapper.insertSelective(unionShareUserApply);
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
private List<SocialMediaBo> filterSocialMedia(List<SocialMediaBo> bos) {
|
|
|
if (CollectionUtils.isEmpty(bos)) {
|
|
|
return null;
|
|
|
}
|
|
|
List<SocialMediaBo> list = new ArrayList<>();
|
|
|
bos.forEach(b->{
|
|
|
if (null == b.getType() || null == b.getAccount() || null == b.getFans()) {
|
|
|
return;
|
|
|
}
|
|
|
list.add(b);
|
|
|
});
|
|
|
return list;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取银行列表
|
|
|
* @return
|
...
|
...
|
@@ -627,7 +646,7 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
return null;
|
|
|
}
|
|
|
UnionShareUserBankBo result = new UnionShareUserBankBo();
|
|
|
result.setName(StringHideUtils.hideString(list.get(0).getName(),1,1));
|
|
|
result.setName(StringHideUtils.hideTailString(list.get(0).getName(),1,1));
|
|
|
result.setBankCardNo(StringHideUtils.hideSubString(list.get(0).getBankCardNo(),11));
|
|
|
result.setBankName(list.get(0).getBankName());
|
|
|
result.setIdCardNo(list.get(0).getIdCardNo());
|
...
|
...
|
|