diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/qualification/EnterpriseQualificationController.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/qualification/EnterpriseQualificationController.java index 851f51a..7524bf2 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/qualification/EnterpriseQualificationController.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/qualification/EnterpriseQualificationController.java @@ -95,7 +95,13 @@ public class EnterpriseQualificationController { public CommonResult> getEnterpriseQualificationPage(EnterpriseQualificationPageReqVO pageReqVO) { PageResult pageResult = enterpriseQualificationService.getEnterpriseQualificationPage(pageReqVO); pageResult.getList().forEach(item->{ - item.setEnterpriseName(enterpriseService.getEnterprise(Long.valueOf(item.getEnterpriseId())).getEnterprisesName()); + if(item.getEnterpriseId()!= null){ + EnterpriseDO enterprise = enterpriseService.getEnterprise(Long.valueOf(item.getEnterpriseId())); + if(enterprise!=null){ + item.setEnterpriseName(enterprise.getEnterprisesName()); + } + + } }); PageResult bean = BeanUtils.toBean(pageResult, EnterpriseQualificationRespVO.class);