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
6e103bc4
authored
2025-09-19 11:09:34 +0800
by
xiaojie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
【数据资产】
查询企业认证附件和领域
1 parent
0d4cc93a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
11 deletions
src/main/java/com/csbr/qingcloud/portal/service/EnterpriseAttachmentService.java
src/main/java/com/csbr/qingcloud/portal/service/impl/EnterpriseAttachmentServiceImpl.java
src/main/java/com/csbr/qingcloud/portal/service/impl/EnterpriseServiceImpl.java
src/main/java/com/csbr/qingcloud/portal/service/EnterpriseAttachmentService.java
View file @
6e103bc
package
com
.
csbr
.
qingcloud
.
portal
.
service
;
import
com.csbr.qingcloud.portal.domain.vo.dataExchange.*
;
import
com.csbr.qingcloud.portal.mybatis.entity.MfEnterprise
;
import
csbr.cloud.entity.domain.base.vo.PageListVO
;
import
com.csbr.qingcloud.portal.domain.vo.EnterpriseAttachmentQueryVO
;
import
com.csbr.qingcloud.portal.domain.vo.EnterpriseAttachmentRQVO
;
...
...
@@ -88,10 +89,10 @@ public interface EnterpriseAttachmentService {
/**
* 批量新增开发主体附件信息
* @param attachmentRQVOS
* @param
guid
* @param
enterprise
* @param isRequired
*/
void
batchSave
(
List
<
EnterpriseAttachmentRQVO
>
attachmentRQVOS
,
String
guid
,
Boolean
isRequired
);
void
batchSave
(
List
<
EnterpriseAttachmentRQVO
>
attachmentRQVOS
,
MfEnterprise
enterprise
,
Boolean
isRequired
);
/**
* 删除开发主体附件信息
...
...
@@ -102,10 +103,10 @@ public interface EnterpriseAttachmentService {
/**
* 批量修改开发主体附件信息
* @param attachmentRQVOS
* @param
guid
* @param
enterprise
* @param isRequired
*/
void
batchUpdate
(
List
<
EnterpriseAttachmentRQVO
>
attachmentRQVOS
,
String
guid
,
Boolean
isRequired
);
void
batchUpdate
(
List
<
EnterpriseAttachmentRQVO
>
attachmentRQVOS
,
MfEnterprise
enterprise
,
Boolean
isRequired
);
/**
* 根据企业认证guid查询附件信息
...
...
src/main/java/com/csbr/qingcloud/portal/service/impl/EnterpriseAttachmentServiceImpl.java
View file @
6e103bc
...
...
@@ -280,11 +280,12 @@ public class EnterpriseAttachmentServiceImpl implements EnterpriseAttachmentServ
@Override
@Transactional
public
void
batchSave
(
List
<
EnterpriseAttachmentRQVO
>
attachmentRQVOS
,
String
guid
,
Boolean
isRequired
)
{
public
void
batchSave
(
List
<
EnterpriseAttachmentRQVO
>
attachmentRQVOS
,
MfEnterprise
enterprise
,
Boolean
isRequired
)
{
if
(
ObjectUtils
.
isNotEmpty
(
attachmentRQVOS
))
{
List
<
MfEnterpriseAttachment
>
attachmentList
=
new
ArrayList
<>();
for
(
EnterpriseAttachmentRQVO
attachmentRQVO
:
attachmentRQVOS
)
{
attachmentRQVO
.
setEnterpriseGuid
(
guid
);
attachmentRQVO
.
setEnterpriseGuid
(
enterprise
.
getGuid
());
attachmentRQVO
.
setTenantGuid
(
enterprise
.
getTenantGuid
());
// 获取文件大小
// 下载文件流
String
fileUrl
=
attachmentRQVO
.
getFileUrl
();
...
...
@@ -323,12 +324,12 @@ public class EnterpriseAttachmentServiceImpl implements EnterpriseAttachmentServ
@Override
@Transactional
public
void
batchUpdate
(
List
<
EnterpriseAttachmentRQVO
>
attachmentRQVOS
,
String
guid
,
Boolean
isRequired
)
{
public
void
batchUpdate
(
List
<
EnterpriseAttachmentRQVO
>
attachmentRQVOS
,
MfEnterprise
enterprise
,
Boolean
isRequired
)
{
// 删除开发主体附件信息
removeByEnterpriseGuids
(
Collections
.
singletonList
(
guid
));
removeByEnterpriseGuids
(
Collections
.
singletonList
(
enterprise
.
getGuid
()
));
// 批量新增开发主体附件信息
batchSave
(
attachmentRQVOS
,
guid
,
isRequired
);
batchSave
(
attachmentRQVOS
,
enterprise
,
isRequired
);
}
@Override
...
...
src/main/java/com/csbr/qingcloud/portal/service/impl/EnterpriseServiceImpl.java
View file @
6e103bc
...
...
@@ -842,7 +842,7 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
// 新增附件信息
List
<
EnterpriseAttachmentRQVO
>
attachmentRQVOS
=
rqVO
.
getAttachmentRQVOS
();
enterpriseAttachmentService
.
batchSave
(
attachmentRQVOS
,
entity
.
getGuid
()
,
isRequired
);
enterpriseAttachmentService
.
batchSave
(
attachmentRQVOS
,
entity
,
isRequired
);
// 新增领域信息
List
<
EnterpriseDomainRQVO
>
domainRQVOS
=
rqVO
.
getDomainRQVOS
();
...
...
@@ -920,7 +920,7 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
// 新增附件信息
List
<
EnterpriseAttachmentRQVO
>
attachmentRQVOS
=
rqVO
.
getAttachmentRQVOS
();
enterpriseAttachmentService
.
batchUpdate
(
attachmentRQVOS
,
entity
.
getGuid
()
,
isRequired
);
enterpriseAttachmentService
.
batchUpdate
(
attachmentRQVOS
,
entity
,
isRequired
);
// 新增领域信息
List
<
EnterpriseDomainRQVO
>
domainRQVOS
=
rqVO
.
getDomainRQVOS
();
...
...
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