4e555e65 by xiaojie

【数据资产】

修改查询资产登记为一览表
1 parent 2b12a2c3
...@@ -611,13 +611,6 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris ...@@ -611,13 +611,6 @@ 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 // 查询变更历史
616 LambdaQueryWrapper<MfEnterpriseChangeApprove> lambdaQueryWrapper = new LambdaQueryWrapper<>();
617 lambdaQueryWrapper.eq(MfEnterpriseChangeApprove::getSourceGuid, mfEnterprise.getGuid());
618 lambdaQueryWrapper.orderByDesc(MfEnterpriseChangeApprove::getCreateTime);
619 List<MfEnterpriseChangeApprove> approveList = mfEnterpriseChangeApproveService.list(lambdaQueryWrapper);
620 if(CollectionUtils.isEmpty(approveList)){
621 // 查询附件信息 614 // 查询附件信息
622 String guid = enterpriseRSVO.getGuid(); 615 String guid = enterpriseRSVO.getGuid();
623 Map<String, List<EnterpriseAttachmentRSVO>> attachmentByEnterpriseGuids = enterpriseAttachmentService.getMapByEnterpriseGuids(Collections.singletonList(guid)); 616 Map<String, List<EnterpriseAttachmentRSVO>> attachmentByEnterpriseGuids = enterpriseAttachmentService.getMapByEnterpriseGuids(Collections.singletonList(guid));
...@@ -630,6 +623,13 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris ...@@ -630,6 +623,13 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
630 if (ObjectUtils.isNotEmpty(domainByEnterpriseGuids) && domainByEnterpriseGuids.containsKey(guid)) { 623 if (ObjectUtils.isNotEmpty(domainByEnterpriseGuids) && domainByEnterpriseGuids.containsKey(guid)) {
631 enterpriseRSVO.setDomainRSVOS(domainByEnterpriseGuids.get(guid)); 624 enterpriseRSVO.setDomainRSVOS(domainByEnterpriseGuids.get(guid));
632 } 625 }
626
627 // 查询变更历史
628 LambdaQueryWrapper<MfEnterpriseChangeApprove> lambdaQueryWrapper = new LambdaQueryWrapper<>();
629 lambdaQueryWrapper.eq(MfEnterpriseChangeApprove::getSourceGuid, mfEnterprise.getGuid());
630 lambdaQueryWrapper.orderByDesc(MfEnterpriseChangeApprove::getCreateTime);
631 List<MfEnterpriseChangeApprove> approveList = mfEnterpriseChangeApproveService.list(lambdaQueryWrapper);
632 if(CollectionUtils.isEmpty(approveList)){
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 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!