【数据资产】
1、查询附件信息和领域信息
Showing
1 changed file
with
13 additions
and
13 deletions
| ... | @@ -612,6 +612,19 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris | ... | @@ -612,6 +612,19 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris |
| 612 | MfEnterprise mfEnterprise = enterpriseOptional.get(); | 612 | MfEnterprise mfEnterprise = enterpriseOptional.get(); |
| 613 | EnterpriseRSVO enterpriseRSVO = convertToVO(mfEnterprise); | 613 | EnterpriseRSVO enterpriseRSVO = convertToVO(mfEnterprise); |
| 614 | 614 | ||
| 615 | // 查询附件信息 | ||
| 616 | String guid = enterpriseRSVO.getGuid(); | ||
| 617 | Map<String, List<EnterpriseAttachmentRSVO>> attachmentByEnterpriseGuids = enterpriseAttachmentService.getMapByEnterpriseGuids(Collections.singletonList(guid)); | ||
| 618 | if (ObjectUtils.isNotEmpty(attachmentByEnterpriseGuids) && attachmentByEnterpriseGuids.containsKey(guid)) { | ||
| 619 | enterpriseRSVO.setAttachmentRSVOS(attachmentByEnterpriseGuids.get(guid)); | ||
| 620 | } | ||
| 621 | |||
| 622 | // 查询领域信息 | ||
| 623 | Map<String, List<EnterpriseDomainRSVO>> domainByEnterpriseGuids = enterpriseDomainService.getMapByEnterpriseGuids(Collections.singletonList(guid)); | ||
| 624 | if (ObjectUtils.isNotEmpty(domainByEnterpriseGuids) && domainByEnterpriseGuids.containsKey(guid)) { | ||
| 625 | enterpriseRSVO.setDomainRSVOS(domainByEnterpriseGuids.get(guid)); | ||
| 626 | } | ||
| 627 | |||
| 615 | // 查询变更历史 | 628 | // 查询变更历史 |
| 616 | LambdaQueryWrapper<MfEnterpriseChangeApprove> lambdaQueryWrapper = new LambdaQueryWrapper<>(); | 629 | LambdaQueryWrapper<MfEnterpriseChangeApprove> lambdaQueryWrapper = new LambdaQueryWrapper<>(); |
| 617 | lambdaQueryWrapper.eq(MfEnterpriseChangeApprove::getSourceGuid, mfEnterprise.getGuid()); | 630 | lambdaQueryWrapper.eq(MfEnterpriseChangeApprove::getSourceGuid, mfEnterprise.getGuid()); |
| ... | @@ -644,19 +657,6 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris | ... | @@ -644,19 +657,6 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris |
| 644 | } | 657 | } |
| 645 | } | 658 | } |
| 646 | 659 | ||
| 647 | // 查询附件信息 | ||
| 648 | String guid = enterpriseRSVO.getGuid(); | ||
| 649 | Map<String, List<EnterpriseAttachmentRSVO>> attachmentByEnterpriseGuids = enterpriseAttachmentService.getMapByEnterpriseGuids(Collections.singletonList(guid)); | ||
| 650 | if (ObjectUtils.isNotEmpty(attachmentByEnterpriseGuids) && attachmentByEnterpriseGuids.containsKey(guid)) { | ||
| 651 | enterpriseRSVO.setAttachmentRSVOS(attachmentByEnterpriseGuids.get(guid)); | ||
| 652 | } | ||
| 653 | |||
| 654 | // 查询领域信息 | ||
| 655 | Map<String, List<EnterpriseDomainRSVO>> domainByEnterpriseGuids = enterpriseDomainService.getMapByEnterpriseGuids(Collections.singletonList(guid)); | ||
| 656 | if (ObjectUtils.isNotEmpty(domainByEnterpriseGuids) && domainByEnterpriseGuids.containsKey(guid)) { | ||
| 657 | enterpriseRSVO.setDomainRSVOS(domainByEnterpriseGuids.get(guid)); | ||
| 658 | } | ||
| 659 | |||
| 660 | return enterpriseRSVO; | 660 | return enterpriseRSVO; |
| 661 | } | 661 | } |
| 662 | 662 | ... | ... |
-
Please register or sign in to post a comment