|
|
@ -90,8 +90,7 @@ public class EnterpriseController { |
|
|
|
// @PreAuthorize("@ss.hasPermission('system:enterprise:query')")
|
|
|
|
// @PreAuthorize("@ss.hasPermission('system:enterprise:query')")
|
|
|
|
public CommonResult<EnterpriseRespVO> getEnterprise(@RequestParam("id") Long id) { |
|
|
|
public CommonResult<EnterpriseRespVO> getEnterprise(@RequestParam("id") Long id) { |
|
|
|
EnterpriseDO enterprise = enterpriseService.getEnterprise(id); |
|
|
|
EnterpriseDO enterprise = enterpriseService.getEnterprise(id); |
|
|
|
|
|
|
|
if (enterprise != null) { |
|
|
|
//获取企业图片
|
|
|
|
|
|
|
|
LambdaQueryWrapper<FileInfoDO> wrapper = new LambdaQueryWrapper<>(); |
|
|
|
LambdaQueryWrapper<FileInfoDO> wrapper = new LambdaQueryWrapper<>(); |
|
|
|
wrapper.eq(FileInfoDO::getDictType, 644l); |
|
|
|
wrapper.eq(FileInfoDO::getDictType, 644l); |
|
|
|
wrapper.eq(FileInfoDO::getDictData, 1l); |
|
|
|
wrapper.eq(FileInfoDO::getDictData, 1l); |
|
|
@ -108,6 +107,9 @@ public class EnterpriseController { |
|
|
|
queryWrapper.eq(EnterpriseQualificationDO::getEnterpriseId, enterprise.getId()); |
|
|
|
queryWrapper.eq(EnterpriseQualificationDO::getEnterpriseId, enterprise.getId()); |
|
|
|
final List<EnterpriseQualificationDO> enterpriseQualificationList = enterpriseQualificationMapper.selectList(queryWrapper); |
|
|
|
final List<EnterpriseQualificationDO> enterpriseQualificationList = enterpriseQualificationMapper.selectList(queryWrapper); |
|
|
|
enterprise.setQualificationList(enterpriseQualificationList); |
|
|
|
enterprise.setQualificationList(enterpriseQualificationList); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
//获取企业图片
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return success(BeanUtils.toBean(enterprise, EnterpriseRespVO.class)); |
|
|
|
return success(BeanUtils.toBean(enterprise, EnterpriseRespVO.class)); |
|
|
|
} |
|
|
|
} |
|
|
|