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
ab6a6b05
authored
2025-09-18 10:37:32 +0800
by
xiaojie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
【数据资产】
根据会员guids查询企业信息
1 parent
dd9558d6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
0 deletions
src/main/java/com/csbr/qingcloud/portal/controller/EnterpriseController.java
src/main/java/com/csbr/qingcloud/portal/service/EnterpriseService.java
src/main/java/com/csbr/qingcloud/portal/service/impl/EnterpriseServiceImpl.java
src/main/java/com/csbr/qingcloud/portal/controller/EnterpriseController.java
View file @
ab6a6b0
...
...
@@ -129,6 +129,13 @@ public class EnterpriseController {
enterpriseService
.
moveOldData
(
vo
);
return
CommonRes
.
success
(
true
);
}
@PostMapping
(
"/list-by-tenant-guids"
)
@SystemLog
(
value
=
"企业信息-根据会员guids查询企业信息"
)
public
CommonRes
<
List
<
EnterpriseRSVO
>>
listByTenantGuids
(
@RequestBody
List
<
String
>
guids
)
{
List
<
EnterpriseRSVO
>
vo
=
enterpriseService
.
listByTenantGuids
(
guids
);
return
CommonRes
.
success
(
vo
);
}
//endregion
...
...
src/main/java/com/csbr/qingcloud/portal/service/EnterpriseService.java
View file @
ab6a6b0
...
...
@@ -113,4 +113,11 @@ public interface EnterpriseService {
* @return
*/
JSExchageCommonRes
<
JSExchagePageListVO
<
JSEnterpriseRSVO
>>
enterpriseData
(
JSBaseRQVO
<
JSEnterpriseQueryVO
>
queryVO
);
/**
* 根据会员guids查询企业信息
* @param guids
* @return
*/
List
<
EnterpriseRSVO
>
listByTenantGuids
(
List
<
String
>
guids
);
}
...
...
src/main/java/com/csbr/qingcloud/portal/service/impl/EnterpriseServiceImpl.java
View file @
ab6a6b0
...
...
@@ -662,6 +662,21 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
return
JSExchageCommonRes
.
success
(
pageListVO
);
}
@Override
public
List
<
EnterpriseRSVO
>
listByTenantGuids
(
List
<
String
>
guids
)
{
if
(
ObjectUtils
.
isEmpty
(
guids
))
{
return
null
;
}
LambdaQueryWrapper
<
MfEnterprise
>
queryWrapper
=
Wrappers
.
lambdaQuery
(
MfEnterprise
.
class
);
queryWrapper
.
in
(
MfEnterprise:
:
getTenantGuid
,
guids
);
queryWrapper
.
eq
(
MfEnterprise:
:
getBizApproveState
,
"Y"
);
List
<
MfEnterprise
>
mfEnterprises
=
mfEnterpriseService
.
list
(
queryWrapper
);
if
(
ObjectUtils
.
isEmpty
(
mfEnterprises
))
{
return
null
;
}
return
convertToVO
(
mfEnterprises
);
}
private
void
afterEnterpriseData
(
PageListVO
<
MfEnterprise
>
enterprisePageListVO
,
JSExchagePageListVO
<
JSEnterpriseRSVO
>
pageListVO
)
{
pageListVO
.
setTotal
(
enterprisePageListVO
.
getTotalRows
().
intValue
());
List
<
MfEnterprise
>
records
=
enterprisePageListVO
.
getRecords
();
...
...
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