Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
ms-data-circulation-portal-service
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
4e555e65
authored
2025-09-23 15:03:29 +0800
by
xiaojie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
【数据资产】
修改查询资产登记为一览表
1 parent
2b12a2c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
18 deletions
src/main/java/com/csbr/qingcloud/portal/service/impl/EnterpriseServiceImpl.java
src/main/java/com/csbr/qingcloud/portal/service/impl/EnterpriseServiceImpl.java
View file @
4e555e6
...
...
@@ -611,6 +611,18 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
}
MfEnterprise
mfEnterprise
=
enterpriseOptional
.
get
();
EnterpriseRSVO
enterpriseRSVO
=
convertToVO
(
mfEnterprise
);
// 查询附件信息
String
guid
=
enterpriseRSVO
.
getGuid
();
Map
<
String
,
List
<
EnterpriseAttachmentRSVO
>>
attachmentByEnterpriseGuids
=
enterpriseAttachmentService
.
getMapByEnterpriseGuids
(
Collections
.
singletonList
(
guid
));
// 查询领域信息
Map
<
String
,
List
<
EnterpriseDomainRSVO
>>
domainByEnterpriseGuids
=
enterpriseDomainService
.
getMapByEnterpriseGuids
(
Collections
.
singletonList
(
guid
));
if
(
ObjectUtils
.
isNotEmpty
(
attachmentByEnterpriseGuids
)
&&
attachmentByEnterpriseGuids
.
containsKey
(
guid
))
{
enterpriseRSVO
.
setAttachmentRSVOS
(
attachmentByEnterpriseGuids
.
get
(
guid
));
}
if
(
ObjectUtils
.
isNotEmpty
(
domainByEnterpriseGuids
)
&&
domainByEnterpriseGuids
.
containsKey
(
guid
))
{
enterpriseRSVO
.
setDomainRSVOS
(
domainByEnterpriseGuids
.
get
(
guid
));
}
// 查询变更历史
LambdaQueryWrapper
<
MfEnterpriseChangeApprove
>
lambdaQueryWrapper
=
new
LambdaQueryWrapper
<>();
...
...
@@ -618,18 +630,6 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
lambdaQueryWrapper
.
orderByDesc
(
MfEnterpriseChangeApprove:
:
getCreateTime
);
List
<
MfEnterpriseChangeApprove
>
approveList
=
mfEnterpriseChangeApproveService
.
list
(
lambdaQueryWrapper
);
if
(
CollectionUtils
.
isEmpty
(
approveList
)){
// 查询附件信息
String
guid
=
enterpriseRSVO
.
getGuid
();
Map
<
String
,
List
<
EnterpriseAttachmentRSVO
>>
attachmentByEnterpriseGuids
=
enterpriseAttachmentService
.
getMapByEnterpriseGuids
(
Collections
.
singletonList
(
guid
));
// 查询领域信息
Map
<
String
,
List
<
EnterpriseDomainRSVO
>>
domainByEnterpriseGuids
=
enterpriseDomainService
.
getMapByEnterpriseGuids
(
Collections
.
singletonList
(
guid
));
if
(
ObjectUtils
.
isNotEmpty
(
attachmentByEnterpriseGuids
)
&&
attachmentByEnterpriseGuids
.
containsKey
(
guid
))
{
enterpriseRSVO
.
setAttachmentRSVOS
(
attachmentByEnterpriseGuids
.
get
(
guid
));
}
if
(
ObjectUtils
.
isNotEmpty
(
domainByEnterpriseGuids
)
&&
domainByEnterpriseGuids
.
containsKey
(
guid
))
{
enterpriseRSVO
.
setDomainRSVOS
(
domainByEnterpriseGuids
.
get
(
guid
));
}
return
enterpriseRSVO
;
}
...
...
@@ -641,12 +641,6 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
enterpriseRSVO
=
csbrBeanUtil
.
convert
(
mfEnterpriseChangeApprove
,
EnterpriseRSVO
.
class
);
enterpriseRSVO
.
setBizApproveState
(
mfEnterprise
.
getBizApproveState
());
// 查询附件信息
Map
<
String
,
List
<
EnterpriseAttachmentRSVO
>>
attachmentByEnterpriseGuids
=
enterpriseAttachmentService
.
getMapByEnterpriseGuids
(
Collections
.
singletonList
(
mfEnterpriseChangeApprove
.
getSourceGuid
()));
// 查询领域信息
Map
<
String
,
List
<
EnterpriseDomainRSVO
>>
domainByEnterpriseGuids
=
enterpriseDomainService
.
getMapByEnterpriseGuids
(
Collections
.
singletonList
(
mfEnterpriseChangeApprove
.
getSourceGuid
()));
if
(
ObjectUtils
.
isNotEmpty
(
attachmentByEnterpriseGuids
)
&&
attachmentByEnterpriseGuids
.
containsKey
(
mfEnterpriseChangeApprove
.
getSourceGuid
()))
{
enterpriseRSVO
.
setAttachmentRSVOS
(
attachmentByEnterpriseGuids
.
get
(
mfEnterpriseChangeApprove
.
getSourceGuid
()));
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment