|
|
|
@ -153,17 +153,22 @@ public class UserCertController extends BaseController {
|
|
|
|
|
public BaseResponse filterMyAuth(UserCertEntityRequest request) {
|
|
|
|
|
|
|
|
|
|
PageSimpleResponse<UserCertEntity> basicUdiRelResponsePageSimpleResponse = new PageSimpleResponse<>();
|
|
|
|
|
//判断是否有资质授权
|
|
|
|
|
QueryWrapper authWrapper = new QueryWrapper();
|
|
|
|
|
authWrapper.eq("corpId",request.getBusinessId());
|
|
|
|
|
authWrapper.eq("authCompanyId",getCompanyId());
|
|
|
|
|
List<UserCertAuthEntity> authList = userCertAuthService.list(authWrapper);
|
|
|
|
|
if(CollectionUtil.isEmpty(authList)){
|
|
|
|
|
return ResultVOUtils.success(basicUdiRelResponsePageSimpleResponse);
|
|
|
|
|
String corpId = request.getCorpId();
|
|
|
|
|
if(StringUtils.isEmpty(corpId)){
|
|
|
|
|
//判断是否有资质授权
|
|
|
|
|
corpId = request.getBusinessId();
|
|
|
|
|
QueryWrapper authWrapper = new QueryWrapper();
|
|
|
|
|
authWrapper.eq("corpId",corpId);
|
|
|
|
|
authWrapper.eq("authCompanyId",getCompanyId());
|
|
|
|
|
List<UserCertAuthEntity> authList = userCertAuthService.list(authWrapper);
|
|
|
|
|
if(CollectionUtil.isEmpty(authList)){
|
|
|
|
|
return ResultVOUtils.success(basicUdiRelResponsePageSimpleResponse);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QueryWrapper queryWrapper = new QueryWrapper();
|
|
|
|
|
queryWrapper.eq("businessId",request.getBusinessId());
|
|
|
|
|
queryWrapper.eq("businessId",corpId);
|
|
|
|
|
queryWrapper.isNull("relationCertId");
|
|
|
|
|
int offset = (request.getPage() - 1) * request.getLimit();
|
|
|
|
|
Page<UserCertEntity> pages = PageHelper.offsetPage(offset, request.getLimit());
|
|
|
|
|