【数据资产】
查询企业认证附件和领域
Showing
3 changed files
with
13 additions
and
11 deletions
| 1 | package com.csbr.qingcloud.portal.service; | 1 | package com.csbr.qingcloud.portal.service; |
| 2 | 2 | ||
| 3 | import com.csbr.qingcloud.portal.domain.vo.dataExchange.*; | 3 | import com.csbr.qingcloud.portal.domain.vo.dataExchange.*; |
| 4 | import com.csbr.qingcloud.portal.mybatis.entity.MfEnterprise; | ||
| 4 | import csbr.cloud.entity.domain.base.vo.PageListVO; | 5 | import csbr.cloud.entity.domain.base.vo.PageListVO; |
| 5 | import com.csbr.qingcloud.portal.domain.vo.EnterpriseAttachmentQueryVO; | 6 | import com.csbr.qingcloud.portal.domain.vo.EnterpriseAttachmentQueryVO; |
| 6 | import com.csbr.qingcloud.portal.domain.vo.EnterpriseAttachmentRQVO; | 7 | import com.csbr.qingcloud.portal.domain.vo.EnterpriseAttachmentRQVO; |
| ... | @@ -88,10 +89,10 @@ public interface EnterpriseAttachmentService { | ... | @@ -88,10 +89,10 @@ public interface EnterpriseAttachmentService { |
| 88 | /** | 89 | /** |
| 89 | * 批量新增开发主体附件信息 | 90 | * 批量新增开发主体附件信息 |
| 90 | * @param attachmentRQVOS | 91 | * @param attachmentRQVOS |
| 91 | * @param guid | 92 | * @param enterprise |
| 92 | * @param isRequired | 93 | * @param isRequired |
| 93 | */ | 94 | */ |
| 94 | void batchSave(List<EnterpriseAttachmentRQVO> attachmentRQVOS, String guid, Boolean isRequired); | 95 | void batchSave(List<EnterpriseAttachmentRQVO> attachmentRQVOS, MfEnterprise enterprise, Boolean isRequired); |
| 95 | 96 | ||
| 96 | /** | 97 | /** |
| 97 | * 删除开发主体附件信息 | 98 | * 删除开发主体附件信息 |
| ... | @@ -102,10 +103,10 @@ public interface EnterpriseAttachmentService { | ... | @@ -102,10 +103,10 @@ public interface EnterpriseAttachmentService { |
| 102 | /** | 103 | /** |
| 103 | * 批量修改开发主体附件信息 | 104 | * 批量修改开发主体附件信息 |
| 104 | * @param attachmentRQVOS | 105 | * @param attachmentRQVOS |
| 105 | * @param guid | 106 | * @param enterprise |
| 106 | * @param isRequired | 107 | * @param isRequired |
| 107 | */ | 108 | */ |
| 108 | void batchUpdate(List<EnterpriseAttachmentRQVO> attachmentRQVOS, String guid, Boolean isRequired); | 109 | void batchUpdate(List<EnterpriseAttachmentRQVO> attachmentRQVOS, MfEnterprise enterprise, Boolean isRequired); |
| 109 | 110 | ||
| 110 | /** | 111 | /** |
| 111 | * 根据企业认证guid查询附件信息 | 112 | * 根据企业认证guid查询附件信息 | ... | ... |
| ... | @@ -280,11 +280,12 @@ public class EnterpriseAttachmentServiceImpl implements EnterpriseAttachmentServ | ... | @@ -280,11 +280,12 @@ public class EnterpriseAttachmentServiceImpl implements EnterpriseAttachmentServ |
| 280 | 280 | ||
| 281 | @Override | 281 | @Override |
| 282 | @Transactional | 282 | @Transactional |
| 283 | public void batchSave(List<EnterpriseAttachmentRQVO> attachmentRQVOS, String guid, Boolean isRequired) { | 283 | public void batchSave(List<EnterpriseAttachmentRQVO> attachmentRQVOS, MfEnterprise enterprise, Boolean isRequired) { |
| 284 | if (ObjectUtils.isNotEmpty(attachmentRQVOS)) { | 284 | if (ObjectUtils.isNotEmpty(attachmentRQVOS)) { |
| 285 | List<MfEnterpriseAttachment> attachmentList = new ArrayList<>(); | 285 | List<MfEnterpriseAttachment> attachmentList = new ArrayList<>(); |
| 286 | for (EnterpriseAttachmentRQVO attachmentRQVO : attachmentRQVOS) { | 286 | for (EnterpriseAttachmentRQVO attachmentRQVO : attachmentRQVOS) { |
| 287 | attachmentRQVO.setEnterpriseGuid(guid); | 287 | attachmentRQVO.setEnterpriseGuid(enterprise.getGuid()); |
| 288 | attachmentRQVO.setTenantGuid(enterprise.getTenantGuid()); | ||
| 288 | // 获取文件大小 | 289 | // 获取文件大小 |
| 289 | // 下载文件流 | 290 | // 下载文件流 |
| 290 | String fileUrl = attachmentRQVO.getFileUrl(); | 291 | String fileUrl = attachmentRQVO.getFileUrl(); |
| ... | @@ -323,12 +324,12 @@ public class EnterpriseAttachmentServiceImpl implements EnterpriseAttachmentServ | ... | @@ -323,12 +324,12 @@ public class EnterpriseAttachmentServiceImpl implements EnterpriseAttachmentServ |
| 323 | 324 | ||
| 324 | @Override | 325 | @Override |
| 325 | @Transactional | 326 | @Transactional |
| 326 | public void batchUpdate(List<EnterpriseAttachmentRQVO> attachmentRQVOS, String guid, Boolean isRequired) { | 327 | public void batchUpdate(List<EnterpriseAttachmentRQVO> attachmentRQVOS, MfEnterprise enterprise, Boolean isRequired) { |
| 327 | // 删除开发主体附件信息 | 328 | // 删除开发主体附件信息 |
| 328 | removeByEnterpriseGuids(Collections.singletonList(guid)); | 329 | removeByEnterpriseGuids(Collections.singletonList(enterprise.getGuid())); |
| 329 | 330 | ||
| 330 | // 批量新增开发主体附件信息 | 331 | // 批量新增开发主体附件信息 |
| 331 | batchSave(attachmentRQVOS, guid, isRequired); | 332 | batchSave(attachmentRQVOS, enterprise, isRequired); |
| 332 | } | 333 | } |
| 333 | 334 | ||
| 334 | @Override | 335 | @Override | ... | ... |
| ... | @@ -842,7 +842,7 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris | ... | @@ -842,7 +842,7 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris |
| 842 | 842 | ||
| 843 | // 新增附件信息 | 843 | // 新增附件信息 |
| 844 | List<EnterpriseAttachmentRQVO> attachmentRQVOS = rqVO.getAttachmentRQVOS(); | 844 | List<EnterpriseAttachmentRQVO> attachmentRQVOS = rqVO.getAttachmentRQVOS(); |
| 845 | enterpriseAttachmentService.batchSave(attachmentRQVOS, entity.getGuid(), isRequired); | 845 | enterpriseAttachmentService.batchSave(attachmentRQVOS, entity, isRequired); |
| 846 | 846 | ||
| 847 | // 新增领域信息 | 847 | // 新增领域信息 |
| 848 | List<EnterpriseDomainRQVO> domainRQVOS = rqVO.getDomainRQVOS(); | 848 | List<EnterpriseDomainRQVO> domainRQVOS = rqVO.getDomainRQVOS(); |
| ... | @@ -920,7 +920,7 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris | ... | @@ -920,7 +920,7 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris |
| 920 | 920 | ||
| 921 | // 新增附件信息 | 921 | // 新增附件信息 |
| 922 | List<EnterpriseAttachmentRQVO> attachmentRQVOS = rqVO.getAttachmentRQVOS(); | 922 | List<EnterpriseAttachmentRQVO> attachmentRQVOS = rqVO.getAttachmentRQVOS(); |
| 923 | enterpriseAttachmentService.batchUpdate(attachmentRQVOS, entity.getGuid(), isRequired); | 923 | enterpriseAttachmentService.batchUpdate(attachmentRQVOS, entity, isRequired); |
| 924 | 924 | ||
| 925 | // 新增领域信息 | 925 | // 新增领域信息 |
| 926 | List<EnterpriseDomainRQVO> domainRQVOS = rqVO.getDomainRQVOS(); | 926 | List<EnterpriseDomainRQVO> domainRQVOS = rqVO.getDomainRQVOS(); | ... | ... |
-
Please register or sign in to post a comment