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
ea9e9228
authored
2025-09-11 13:57:29 +0800
by
xu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
江苏数交所接口开发
1 parent
0f753bec
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
9 deletions
src/main/java/com/csbr/qingcloud/portal/controller/DataExchangeController.java
src/main/java/com/csbr/qingcloud/portal/domain/vo/dataExchange/JSAttachRSVO.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/DataExchangeController.java
View file @
ea9e922
...
...
@@ -38,8 +38,8 @@ public class DataExchangeController {
@PostMapping
(
"/enterprise-attach"
)
@Operation
(
summary
=
"开发主体附件查询"
)
public
JSExchageCommonRes
<
JSExchagePageListVO
<
JS
Enterprise
RSVO
>>
enterpriseAttach
(
@RequestBody
@Valid
JSQueryVO
<
JSAttachQueryVO
>
queryVO
)
{
JSExchageCommonRes
<
JSExchagePageListVO
<
JS
Enterprise
RSVO
>>
pageVO
=
enterpriseAttachmentService
.
enterpriseAttach
(
queryVO
);
public
JSExchageCommonRes
<
JSExchagePageListVO
<
JS
Attach
RSVO
>>
enterpriseAttach
(
@RequestBody
@Valid
JSQueryVO
<
JSAttachQueryVO
>
queryVO
)
{
JSExchageCommonRes
<
JSExchagePageListVO
<
JS
Attach
RSVO
>>
pageVO
=
enterpriseAttachmentService
.
enterpriseAttach
(
queryVO
);
return
pageVO
;
}
...
...
src/main/java/com/csbr/qingcloud/portal/domain/vo/dataExchange/JSAttachRSVO.java
0 → 100644
View file @
ea9e922
package
com
.
csbr
.
qingcloud
.
portal
.
domain
.
vo
.
dataExchange
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
java.math.BigDecimal
;
/**
* @program:
* @description: 江苏开发主体附件返回参数
* @author: makejava
* @create: 2025-09-05 10:35
**/
@Data
@Schema
(
title
=
"江苏开发主体附件返回参数"
)
public
class
JSAttachRSVO
extends
JSPageQueryVO
{
/**
* 文件ID
*/
@Schema
(
description
=
"文件ID"
)
private
String
fileId
;
/**
* 文件名称
*/
@Schema
(
description
=
"文件名称"
)
private
String
fileName
;
/**
* 文件类型【详情 开发主体附件类型数据字典】
*/
@Schema
(
description
=
"文件类型【详情 开发主体附件类型数据字典】"
)
private
String
fileType
;
/**
* 文件大小
*/
@Schema
(
description
=
"文件大小"
)
private
BigDecimal
fileSize
;
}
src/main/java/com/csbr/qingcloud/portal/service/EnterpriseAttachmentService.java
View file @
ea9e922
...
...
@@ -75,5 +75,5 @@ public interface EnterpriseAttachmentService {
* @param queryVO
* @return
*/
JSExchageCommonRes
<
JSExchagePageListVO
<
JS
Enterprise
RSVO
>>
enterpriseAttach
(
JSQueryVO
<
JSAttachQueryVO
>
queryVO
);
JSExchageCommonRes
<
JSExchagePageListVO
<
JS
Attach
RSVO
>>
enterpriseAttach
(
JSQueryVO
<
JSAttachQueryVO
>
queryVO
);
}
...
...
src/main/java/com/csbr/qingcloud/portal/service/impl/EnterpriseAttachmentServiceImpl.java
View file @
ea9e922
...
...
@@ -190,8 +190,8 @@ public class EnterpriseAttachmentServiceImpl implements EnterpriseAttachmentServ
}
@Override
public
JSExchageCommonRes
<
JSExchagePageListVO
<
JS
Enterprise
RSVO
>>
enterpriseAttach
(
JSQueryVO
<
JSAttachQueryVO
>
queryVO
)
{
JSExchageCommonRes
<
JSExchagePageListVO
<
JS
Enterprise
RSVO
>>
result
=
beforeEnterpriseAttach
(
queryVO
);
public
JSExchageCommonRes
<
JSExchagePageListVO
<
JS
Attach
RSVO
>>
enterpriseAttach
(
JSQueryVO
<
JSAttachQueryVO
>
queryVO
)
{
JSExchageCommonRes
<
JSExchagePageListVO
<
JS
Attach
RSVO
>>
result
=
beforeEnterpriseAttach
(
queryVO
);
if
(
ObjectUtils
.
isNotEmpty
(
result
)){
return
result
;
}
...
...
@@ -215,7 +215,7 @@ public class EnterpriseAttachmentServiceImpl implements EnterpriseAttachmentServ
attachmentQueryVO
.
setPageIndex
(
Long
.
valueOf
(
bizParam
.
getPageNum
()));
attachmentQueryVO
.
setPageSize
(
Long
.
valueOf
(
bizParam
.
getPageSize
()));
PageListVO
<
EnterpriseAttachmentRSVO
>
enterpriseAttachmentPageListVO
=
pageList
(
attachmentQueryVO
);
JSExchagePageListVO
<
JS
Enterprise
RSVO
>
pageListVO
=
new
JSExchagePageListVO
<>();
JSExchagePageListVO
<
JS
Attach
RSVO
>
pageListVO
=
new
JSExchagePageListVO
<>();
pageListVO
.
setRespFlowId
(
bizParam
.
getReqFlowId
());
afterEnterpriseAttach
(
pageListVO
,
enterpriseAttachmentPageListVO
);
return
JSExchageCommonRes
.
success
(
pageListVO
);
...
...
@@ -226,13 +226,13 @@ public class EnterpriseAttachmentServiceImpl implements EnterpriseAttachmentServ
* @param pageListVO
* @param enterpriseAttachmentPageListVO
*/
private
void
afterEnterpriseAttach
(
JSExchagePageListVO
<
JS
Enterprise
RSVO
>
pageListVO
,
private
void
afterEnterpriseAttach
(
JSExchagePageListVO
<
JS
Attach
RSVO
>
pageListVO
,
PageListVO
<
EnterpriseAttachmentRSVO
>
enterpriseAttachmentPageListVO
)
{
pageListVO
.
setTotal
(
enterpriseAttachmentPageListVO
.
getTotalRows
().
intValue
());
pageListVO
.
setData
(
csbrBeanUtil
.
convert
(
enterpriseAttachmentPageListVO
.
getRecords
(),
JS
Enterprise
RSVO
.
class
));
pageListVO
.
setData
(
csbrBeanUtil
.
convert
(
enterpriseAttachmentPageListVO
.
getRecords
(),
JS
Attach
RSVO
.
class
));
}
private
JSExchageCommonRes
<
JSExchagePageListVO
<
JS
Enterprise
RSVO
>>
beforeEnterpriseAttach
(
JSQueryVO
<
JSAttachQueryVO
>
queryVO
)
{
private
JSExchageCommonRes
<
JSExchagePageListVO
<
JS
Attach
RSVO
>>
beforeEnterpriseAttach
(
JSQueryVO
<
JSAttachQueryVO
>
queryVO
)
{
if
(
ObjectUtils
.
isEmpty
(
queryVO
)){
return
JSExchageCommonRes
.
fail
(
"查询参数为空。"
);
}
...
...
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