修改bug

20240109-yw
yuanwei 1 year ago
parent d9f85b07b0
commit 68a4d9fb6a

@ -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());

@ -13,6 +13,9 @@ public class UserCertEntityRequest extends ListPageRequest {
@ApiModelProperty(value = "往来单位ID")
private String businessId;
@ApiModelProperty(value = "往来单位ID")
private String corpId;
/**
*
*/

Loading…
Cancel
Save