【数据资产】
修改查询资产登记为一览表
Showing
1 changed file
with
12 additions
and
18 deletions
| ... | @@ -611,6 +611,18 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris | ... | @@ -611,6 +611,18 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris |
| 611 | } | 611 | } |
| 612 | MfEnterprise mfEnterprise = enterpriseOptional.get(); | 612 | MfEnterprise mfEnterprise = enterpriseOptional.get(); |
| 613 | EnterpriseRSVO enterpriseRSVO = convertToVO(mfEnterprise); | 613 | EnterpriseRSVO enterpriseRSVO = convertToVO(mfEnterprise); |
| 614 | // 查询附件信息 | ||
| 615 | String guid = enterpriseRSVO.getGuid(); | ||
| 616 | Map<String, List<EnterpriseAttachmentRSVO>> attachmentByEnterpriseGuids = enterpriseAttachmentService.getMapByEnterpriseGuids(Collections.singletonList(guid)); | ||
| 617 | |||
| 618 | // 查询领域信息 | ||
| 619 | Map<String, List<EnterpriseDomainRSVO>> domainByEnterpriseGuids = enterpriseDomainService.getMapByEnterpriseGuids(Collections.singletonList(guid)); | ||
| 620 | if (ObjectUtils.isNotEmpty(attachmentByEnterpriseGuids) && attachmentByEnterpriseGuids.containsKey(guid)) { | ||
| 621 | enterpriseRSVO.setAttachmentRSVOS(attachmentByEnterpriseGuids.get(guid)); | ||
| 622 | } | ||
| 623 | if (ObjectUtils.isNotEmpty(domainByEnterpriseGuids) && domainByEnterpriseGuids.containsKey(guid)) { | ||
| 624 | enterpriseRSVO.setDomainRSVOS(domainByEnterpriseGuids.get(guid)); | ||
| 625 | } | ||
| 614 | 626 | ||
| 615 | // 查询变更历史 | 627 | // 查询变更历史 |
| 616 | LambdaQueryWrapper<MfEnterpriseChangeApprove> lambdaQueryWrapper = new LambdaQueryWrapper<>(); | 628 | LambdaQueryWrapper<MfEnterpriseChangeApprove> lambdaQueryWrapper = new LambdaQueryWrapper<>(); |
| ... | @@ -618,18 +630,6 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris | ... | @@ -618,18 +630,6 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris |
| 618 | lambdaQueryWrapper.orderByDesc(MfEnterpriseChangeApprove::getCreateTime); | 630 | lambdaQueryWrapper.orderByDesc(MfEnterpriseChangeApprove::getCreateTime); |
| 619 | List<MfEnterpriseChangeApprove> approveList = mfEnterpriseChangeApproveService.list(lambdaQueryWrapper); | 631 | List<MfEnterpriseChangeApprove> approveList = mfEnterpriseChangeApproveService.list(lambdaQueryWrapper); |
| 620 | if(CollectionUtils.isEmpty(approveList)){ | 632 | if(CollectionUtils.isEmpty(approveList)){ |
| 621 | // 查询附件信息 | ||
| 622 | String guid = enterpriseRSVO.getGuid(); | ||
| 623 | Map<String, List<EnterpriseAttachmentRSVO>> attachmentByEnterpriseGuids = enterpriseAttachmentService.getMapByEnterpriseGuids(Collections.singletonList(guid)); | ||
| 624 | |||
| 625 | // 查询领域信息 | ||
| 626 | Map<String, List<EnterpriseDomainRSVO>> domainByEnterpriseGuids = enterpriseDomainService.getMapByEnterpriseGuids(Collections.singletonList(guid)); | ||
| 627 | if (ObjectUtils.isNotEmpty(attachmentByEnterpriseGuids) && attachmentByEnterpriseGuids.containsKey(guid)) { | ||
| 628 | enterpriseRSVO.setAttachmentRSVOS(attachmentByEnterpriseGuids.get(guid)); | ||
| 629 | } | ||
| 630 | if (ObjectUtils.isNotEmpty(domainByEnterpriseGuids) && domainByEnterpriseGuids.containsKey(guid)) { | ||
| 631 | enterpriseRSVO.setDomainRSVOS(domainByEnterpriseGuids.get(guid)); | ||
| 632 | } | ||
| 633 | return enterpriseRSVO; | 633 | return enterpriseRSVO; |
| 634 | } | 634 | } |
| 635 | 635 | ||
| ... | @@ -641,12 +641,6 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris | ... | @@ -641,12 +641,6 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris |
| 641 | enterpriseRSVO = csbrBeanUtil.convert(mfEnterpriseChangeApprove, EnterpriseRSVO.class); | 641 | enterpriseRSVO = csbrBeanUtil.convert(mfEnterpriseChangeApprove, EnterpriseRSVO.class); |
| 642 | enterpriseRSVO.setBizApproveState(mfEnterprise.getBizApproveState()); | 642 | enterpriseRSVO.setBizApproveState(mfEnterprise.getBizApproveState()); |
| 643 | 643 | ||
| 644 | // 查询附件信息 | ||
| 645 | Map<String, List<EnterpriseAttachmentRSVO>> attachmentByEnterpriseGuids = enterpriseAttachmentService.getMapByEnterpriseGuids(Collections.singletonList(mfEnterpriseChangeApprove.getSourceGuid())); | ||
| 646 | |||
| 647 | // 查询领域信息 | ||
| 648 | Map<String, List<EnterpriseDomainRSVO>> domainByEnterpriseGuids = enterpriseDomainService.getMapByEnterpriseGuids(Collections.singletonList(mfEnterpriseChangeApprove.getSourceGuid())); | ||
| 649 | |||
| 650 | if (ObjectUtils.isNotEmpty(attachmentByEnterpriseGuids) && attachmentByEnterpriseGuids.containsKey(mfEnterpriseChangeApprove.getSourceGuid())) { | 644 | if (ObjectUtils.isNotEmpty(attachmentByEnterpriseGuids) && attachmentByEnterpriseGuids.containsKey(mfEnterpriseChangeApprove.getSourceGuid())) { |
| 651 | enterpriseRSVO.setAttachmentRSVOS(attachmentByEnterpriseGuids.get(mfEnterpriseChangeApprove.getSourceGuid())); | 645 | enterpriseRSVO.setAttachmentRSVOS(attachmentByEnterpriseGuids.get(mfEnterpriseChangeApprove.getSourceGuid())); |
| 652 | } | 646 | } | ... | ... |
-
Please register or sign in to post a comment