|
|
|
@ -569,4 +569,23 @@ public class SupProductController {
|
|
|
|
|
AuthAdmin authAdmin = authAdminService.findById(Long.parseLong(userId));
|
|
|
|
|
return authAdmin.getCustomerId() + "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/sup/product/app/cert/search")
|
|
|
|
|
public BaseResponse getProductCert(FilterPoductRequest filterPoductRequest) {
|
|
|
|
|
List<SupProductResponse> companyEntities = supProductService.getRegistration(filterPoductRequest);
|
|
|
|
|
|
|
|
|
|
if (CollUtil.isEmpty(companyEntities))
|
|
|
|
|
return ResultVOUtils.error(500, "未查询到该产品资质信息");
|
|
|
|
|
SupProductResponse supProductResponse = companyEntities.get(0);
|
|
|
|
|
FilterSupCertRequest filterSupCertRequest = new FilterSupCertRequest();
|
|
|
|
|
filterSupCertRequest.setProductIdFk(supProductResponse.getProductId());
|
|
|
|
|
List<SupCertEntity> supCertEntities = supCertService.selectCompanyCert(filterSupCertRequest);
|
|
|
|
|
PageInfo<SupCertEntity> pageInfo = new PageInfo<SupCertEntity>(supCertEntities);
|
|
|
|
|
PageSimpleResponse<SupCertEntity> pageSimpleResponse = new PageSimpleResponse<>();
|
|
|
|
|
pageSimpleResponse.setTotal(pageInfo.getTotal());
|
|
|
|
|
pageSimpleResponse.setList(supCertEntities);
|
|
|
|
|
return ResultVOUtils.success(pageSimpleResponse);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|