江苏数交所接口开发
Showing
4 changed files
with
50 additions
and
9 deletions
| ... | @@ -38,8 +38,8 @@ public class DataExchangeController { | ... | @@ -38,8 +38,8 @@ public class DataExchangeController { |
| 38 | 38 | ||
| 39 | @PostMapping("/enterprise-attach") | 39 | @PostMapping("/enterprise-attach") |
| 40 | @Operation(summary= "开发主体附件查询") | 40 | @Operation(summary= "开发主体附件查询") |
| 41 | public JSExchageCommonRes<JSExchagePageListVO<JSEnterpriseRSVO>> enterpriseAttach(@RequestBody @Valid JSQueryVO<JSAttachQueryVO> queryVO) { | 41 | public JSExchageCommonRes<JSExchagePageListVO<JSAttachRSVO>> enterpriseAttach(@RequestBody @Valid JSQueryVO<JSAttachQueryVO> queryVO) { |
| 42 | JSExchageCommonRes<JSExchagePageListVO<JSEnterpriseRSVO>> pageVO = enterpriseAttachmentService.enterpriseAttach(queryVO); | 42 | JSExchageCommonRes<JSExchagePageListVO<JSAttachRSVO>> pageVO = enterpriseAttachmentService.enterpriseAttach(queryVO); |
| 43 | return pageVO; | 43 | return pageVO; |
| 44 | } | 44 | } |
| 45 | 45 | ... | ... |
| 1 | package com.csbr.qingcloud.portal.domain.vo.dataExchange; | ||
| 2 | |||
| 3 | |||
| 4 | import io.swagger.v3.oas.annotations.media.Schema; | ||
| 5 | import lombok.Data; | ||
| 6 | |||
| 7 | import java.math.BigDecimal; | ||
| 8 | |||
| 9 | /** | ||
| 10 | * @program: | ||
| 11 | * @description: 江苏开发主体附件返回参数 | ||
| 12 | * @author: makejava | ||
| 13 | * @create: 2025-09-05 10:35 | ||
| 14 | **/ | ||
| 15 | @Data | ||
| 16 | @Schema(title = "江苏开发主体附件返回参数") | ||
| 17 | public class JSAttachRSVO extends JSPageQueryVO { | ||
| 18 | /** | ||
| 19 | * 文件ID | ||
| 20 | */ | ||
| 21 | @Schema(description = "文件ID") | ||
| 22 | private String fileId; | ||
| 23 | /** | ||
| 24 | * 文件名称 | ||
| 25 | */ | ||
| 26 | @Schema(description = "文件名称") | ||
| 27 | private String fileName; | ||
| 28 | |||
| 29 | /** | ||
| 30 | * 文件类型【详情 开发主体附件类型数据字典】 | ||
| 31 | */ | ||
| 32 | @Schema(description = "文件类型【详情 开发主体附件类型数据字典】") | ||
| 33 | private String fileType; | ||
| 34 | |||
| 35 | /** | ||
| 36 | * 文件大小 | ||
| 37 | */ | ||
| 38 | @Schema(description = "文件大小") | ||
| 39 | private BigDecimal fileSize; | ||
| 40 | |||
| 41 | } |
| ... | @@ -75,5 +75,5 @@ public interface EnterpriseAttachmentService { | ... | @@ -75,5 +75,5 @@ public interface EnterpriseAttachmentService { |
| 75 | * @param queryVO | 75 | * @param queryVO |
| 76 | * @return | 76 | * @return |
| 77 | */ | 77 | */ |
| 78 | JSExchageCommonRes<JSExchagePageListVO<JSEnterpriseRSVO>> enterpriseAttach(JSQueryVO<JSAttachQueryVO> queryVO); | 78 | JSExchageCommonRes<JSExchagePageListVO<JSAttachRSVO>> enterpriseAttach(JSQueryVO<JSAttachQueryVO> queryVO); |
| 79 | } | 79 | } | ... | ... |
| ... | @@ -190,8 +190,8 @@ public class EnterpriseAttachmentServiceImpl implements EnterpriseAttachmentServ | ... | @@ -190,8 +190,8 @@ public class EnterpriseAttachmentServiceImpl implements EnterpriseAttachmentServ |
| 190 | } | 190 | } |
| 191 | 191 | ||
| 192 | @Override | 192 | @Override |
| 193 | public JSExchageCommonRes<JSExchagePageListVO<JSEnterpriseRSVO>> enterpriseAttach(JSQueryVO<JSAttachQueryVO> queryVO) { | 193 | public JSExchageCommonRes<JSExchagePageListVO<JSAttachRSVO>> enterpriseAttach(JSQueryVO<JSAttachQueryVO> queryVO) { |
| 194 | JSExchageCommonRes<JSExchagePageListVO<JSEnterpriseRSVO>> result = beforeEnterpriseAttach(queryVO); | 194 | JSExchageCommonRes<JSExchagePageListVO<JSAttachRSVO>> result = beforeEnterpriseAttach(queryVO); |
| 195 | if(ObjectUtils.isNotEmpty(result)){ | 195 | if(ObjectUtils.isNotEmpty(result)){ |
| 196 | return result; | 196 | return result; |
| 197 | } | 197 | } |
| ... | @@ -215,7 +215,7 @@ public class EnterpriseAttachmentServiceImpl implements EnterpriseAttachmentServ | ... | @@ -215,7 +215,7 @@ public class EnterpriseAttachmentServiceImpl implements EnterpriseAttachmentServ |
| 215 | attachmentQueryVO.setPageIndex(Long.valueOf(bizParam.getPageNum())); | 215 | attachmentQueryVO.setPageIndex(Long.valueOf(bizParam.getPageNum())); |
| 216 | attachmentQueryVO.setPageSize(Long.valueOf(bizParam.getPageSize())); | 216 | attachmentQueryVO.setPageSize(Long.valueOf(bizParam.getPageSize())); |
| 217 | PageListVO<EnterpriseAttachmentRSVO> enterpriseAttachmentPageListVO = pageList(attachmentQueryVO); | 217 | PageListVO<EnterpriseAttachmentRSVO> enterpriseAttachmentPageListVO = pageList(attachmentQueryVO); |
| 218 | JSExchagePageListVO<JSEnterpriseRSVO> pageListVO = new JSExchagePageListVO<>(); | 218 | JSExchagePageListVO<JSAttachRSVO> pageListVO = new JSExchagePageListVO<>(); |
| 219 | pageListVO.setRespFlowId(bizParam.getReqFlowId()); | 219 | pageListVO.setRespFlowId(bizParam.getReqFlowId()); |
| 220 | afterEnterpriseAttach(pageListVO,enterpriseAttachmentPageListVO); | 220 | afterEnterpriseAttach(pageListVO,enterpriseAttachmentPageListVO); |
| 221 | return JSExchageCommonRes.success(pageListVO); | 221 | return JSExchageCommonRes.success(pageListVO); |
| ... | @@ -226,13 +226,13 @@ public class EnterpriseAttachmentServiceImpl implements EnterpriseAttachmentServ | ... | @@ -226,13 +226,13 @@ public class EnterpriseAttachmentServiceImpl implements EnterpriseAttachmentServ |
| 226 | * @param pageListVO | 226 | * @param pageListVO |
| 227 | * @param enterpriseAttachmentPageListVO | 227 | * @param enterpriseAttachmentPageListVO |
| 228 | */ | 228 | */ |
| 229 | private void afterEnterpriseAttach(JSExchagePageListVO<JSEnterpriseRSVO> pageListVO, | 229 | private void afterEnterpriseAttach(JSExchagePageListVO<JSAttachRSVO> pageListVO, |
| 230 | PageListVO<EnterpriseAttachmentRSVO> enterpriseAttachmentPageListVO) { | 230 | PageListVO<EnterpriseAttachmentRSVO> enterpriseAttachmentPageListVO) { |
| 231 | pageListVO.setTotal(enterpriseAttachmentPageListVO.getTotalRows().intValue()); | 231 | pageListVO.setTotal(enterpriseAttachmentPageListVO.getTotalRows().intValue()); |
| 232 | pageListVO.setData(csbrBeanUtil.convert(enterpriseAttachmentPageListVO.getRecords(),JSEnterpriseRSVO.class)); | 232 | pageListVO.setData(csbrBeanUtil.convert(enterpriseAttachmentPageListVO.getRecords(),JSAttachRSVO.class)); |
| 233 | } | 233 | } |
| 234 | 234 | ||
| 235 | private JSExchageCommonRes<JSExchagePageListVO<JSEnterpriseRSVO>> beforeEnterpriseAttach(JSQueryVO<JSAttachQueryVO> queryVO) { | 235 | private JSExchageCommonRes<JSExchagePageListVO<JSAttachRSVO>> beforeEnterpriseAttach(JSQueryVO<JSAttachQueryVO> queryVO) { |
| 236 | if(ObjectUtils.isEmpty(queryVO)){ | 236 | if(ObjectUtils.isEmpty(queryVO)){ |
| 237 | return JSExchageCommonRes.fail("查询参数为空。"); | 237 | return JSExchageCommonRes.fail("查询参数为空。"); |
| 238 | } | 238 | } | ... | ... |
-
Please register or sign in to post a comment