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

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

Loading…
Cancel
Save