修改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();
if(StringUtils.isEmpty(corpId)){
//判断是否有资质授权 //判断是否有资质授权
corpId = request.getBusinessId();
QueryWrapper authWrapper = new QueryWrapper(); QueryWrapper authWrapper = new QueryWrapper();
authWrapper.eq("corpId",request.getBusinessId()); authWrapper.eq("corpId",corpId);
authWrapper.eq("authCompanyId",getCompanyId()); authWrapper.eq("authCompanyId",getCompanyId());
List<UserCertAuthEntity> authList = userCertAuthService.list(authWrapper); List<UserCertAuthEntity> authList = userCertAuthService.list(authWrapper);
if(CollectionUtil.isEmpty(authList)){ if(CollectionUtil.isEmpty(authList)){
return ResultVOUtils.success(basicUdiRelResponsePageSimpleResponse); 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