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
e15a235b
authored
2025-09-11 14:53:49 +0800
by
xu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
江苏数交所接口开发
1 parent
318329b6
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
0 deletions
src/main/java/com/csbr/qingcloud/portal/controller/EnterpriseAttachmentController.java
src/main/java/com/csbr/qingcloud/portal/mybatis/entity/MfEnterpriseAttachment.java
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/controller/EnterpriseAttachmentController.java
View file @
e15a235
...
...
@@ -76,6 +76,19 @@ public class EnterpriseAttachmentController {
return
CommonRes
.
success
(
vo
);
}
@GetMapping
(
"/get-fileUrl"
)
@SystemLog
(
value
=
"开发主体附件信息-查询文件Url地址"
)
@Operation
(
summary
=
"开发主体附件信息-查询文件Url地址"
,
parameters
=
{
@Parameter
(
name
=
"fileId"
,
description
=
"文件Id"
,
required
=
true
)},
hidden
=
true
)
public
CommonRes
<
String
>
getFileUrl
(
@RequestParam
String
fileId
)
{
String
fileUrl
=
enterpriseAttachmentService
.
getEnterpriseAttachmentUrl
(
fileId
);
return
CommonRes
.
success
(
fileUrl
);
}
//endregion
}
...
...
src/main/java/com/csbr/qingcloud/portal/mybatis/entity/MfEnterpriseAttachment.java
View file @
e15a235
...
...
@@ -35,6 +35,12 @@ public class MfEnterpriseAttachment extends BaseDO {
private
String
enterpriseGuid
;
/**
* 文件ID
*/
@Name
(
"文件ID"
)
private
String
fileId
;
/**
* 文件名称
*/
@Name
(
"文件名称"
)
...
...
src/main/java/com/csbr/qingcloud/portal/service/EnterpriseAttachmentService.java
View file @
e15a235
...
...
@@ -76,4 +76,11 @@ public interface EnterpriseAttachmentService {
* @return
*/
JSExchageCommonRes
<
JSExchagePageListVO
<
JSAttachRSVO
>>
enterpriseAttach
(
JSQueryVO
<
JSAttachQueryVO
>
queryVO
);
/**
* 根据文件Id查询附件地址
* @param fileId
* @return
*/
String
getEnterpriseAttachmentUrl
(
String
fileId
);
}
...
...
src/main/java/com/csbr/qingcloud/portal/service/impl/EnterpriseAttachmentServiceImpl.java
View file @
e15a235
...
...
@@ -221,6 +221,20 @@ public class EnterpriseAttachmentServiceImpl implements EnterpriseAttachmentServ
return
JSExchageCommonRes
.
success
(
pageListVO
);
}
@Override
public
String
getEnterpriseAttachmentUrl
(
String
fileId
)
{
if
(
ObjectUtils
.
isEmpty
(
fileId
)){
return
null
;
}
LambdaQueryWrapper
<
MfEnterpriseAttachment
>
queryWrapper
=
Wrappers
.
lambdaQuery
();
queryWrapper
.
eq
(
MfEnterpriseAttachment:
:
getFileId
,
fileId
).
select
(
MfEnterpriseAttachment:
:
getFileUrl
);
List
<
MfEnterpriseAttachment
>
list
=
mfEnterpriseAttachmentService
.
list
(
queryWrapper
);
if
(
ObjectUtils
.
isEmpty
(
list
)){
return
null
;
}
return
list
.
get
(
0
).
getFileUrl
();
}
/**
* 查询后转换
* @param pageListVO
...
...
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