【数据资产】
开发主体增加附件和领域
Showing
16 changed files
with
573 additions
and
465 deletions
src/main/java/com/csbr/qingcloud/portal/controller/EnterpriseAttachmentController.java
deleted
100644 → 0
| 1 | package com.csbr.qingcloud.portal.controller; | ||
| 2 | |||
| 3 | import com.csbr.cloud.common.response.CommonRes; | ||
| 4 | import csbr.cloud.entity.annotation.SystemLog; | ||
| 5 | import csbr.cloud.entity.domain.base.vo.PageListVO; | ||
| 6 | import com.csbr.qingcloud.portal.domain.vo.EnterpriseAttachmentQueryVO; | ||
| 7 | import com.csbr.qingcloud.portal.domain.vo.EnterpriseAttachmentRQVO; | ||
| 8 | import com.csbr.qingcloud.portal.domain.vo.EnterpriseAttachmentRSVO; | ||
| 9 | import com.csbr.qingcloud.portal.service.EnterpriseAttachmentService; | ||
| 10 | import io.swagger.v3.oas.annotations.Operation; | ||
| 11 | import io.swagger.v3.oas.annotations.Parameter; | ||
| 12 | import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 13 | import jakarta.annotation.Resource; | ||
| 14 | import jakarta.validation.Valid; | ||
| 15 | import org.springframework.web.bind.annotation.*; | ||
| 16 | |||
| 17 | import java.util.List; | ||
| 18 | |||
| 19 | /** | ||
| 20 | * @program: | ||
| 21 | * @description: 开发主体附件信息-控制器 | ||
| 22 | * @author: makejava | ||
| 23 | * @create: 2025-09-05 13:50 | ||
| 24 | **/ | ||
| 25 | @RestController | ||
| 26 | @RequestMapping("/enterprise-attachment") | ||
| 27 | @Tag(name = "开发主体附件信息-控制器") | ||
| 28 | public class EnterpriseAttachmentController { | ||
| 29 | |||
| 30 | @Resource | ||
| 31 | private EnterpriseAttachmentService enterpriseAttachmentService; | ||
| 32 | |||
| 33 | //region 基本操作 | ||
| 34 | |||
| 35 | @PostMapping("/save") | ||
| 36 | @SystemLog(value = "开发主体附件信息-新增") | ||
| 37 | @Operation(summary = "开发主体附件信息-新增") | ||
| 38 | public CommonRes<Boolean> saveEnterpriseAttachment(@RequestBody @Valid EnterpriseAttachmentRQVO vo) { | ||
| 39 | enterpriseAttachmentService.saveEnterpriseAttachment(vo); | ||
| 40 | return CommonRes.success(true); | ||
| 41 | } | ||
| 42 | |||
| 43 | @PutMapping("/update") | ||
| 44 | @SystemLog(value = "开发主体附件信息-修改") | ||
| 45 | @Operation(summary = "开发主体附件信息-修改") | ||
| 46 | public CommonRes<Boolean> updateEnterpriseAttachment(@RequestBody @Valid EnterpriseAttachmentRQVO vo) { | ||
| 47 | enterpriseAttachmentService.updateEnterpriseAttachment(vo); | ||
| 48 | return CommonRes.success(true); | ||
| 49 | } | ||
| 50 | |||
| 51 | @DeleteMapping("/delete") | ||
| 52 | @SystemLog(value = "开发主体附件信息-批量删除") | ||
| 53 | @Operation(summary = "开发主体附件信息-批量删除") | ||
| 54 | public CommonRes<Boolean> removeByGuids(@RequestBody List<String> guids) { | ||
| 55 | enterpriseAttachmentService.removeByGuids(guids); | ||
| 56 | return CommonRes.success(true); | ||
| 57 | } | ||
| 58 | |||
| 59 | @PostMapping("/page-list") | ||
| 60 | @SystemLog(value = "开发主体附件信息-分页") | ||
| 61 | @Operation(summary = "开发主体附件信息-分页") | ||
| 62 | public CommonRes<PageListVO<EnterpriseAttachmentRSVO>> pageList(@RequestBody @Valid EnterpriseAttachmentQueryVO queryVO) { | ||
| 63 | PageListVO<EnterpriseAttachmentRSVO> pageVO = enterpriseAttachmentService.pageList(queryVO); | ||
| 64 | return CommonRes.success(pageVO); | ||
| 65 | } | ||
| 66 | |||
| 67 | @GetMapping("/detail") | ||
| 68 | @SystemLog(value = "开发主体附件信息-详情") | ||
| 69 | @Operation( | ||
| 70 | summary = "开发主体附件信息-详情", | ||
| 71 | parameters = { | ||
| 72 | @Parameter(name = "guid", description = "开发主体附件信息唯一标识", required = true)} | ||
| 73 | ) | ||
| 74 | public CommonRes<EnterpriseAttachmentRSVO> getEnterpriseAttachmentDetail(@RequestParam String guid) { | ||
| 75 | EnterpriseAttachmentRSVO vo = enterpriseAttachmentService.getEnterpriseAttachmentDetail(guid); | ||
| 76 | return CommonRes.success(vo); | ||
| 77 | } | ||
| 78 | |||
| 79 | @GetMapping("/get-fileUrl") | ||
| 80 | @SystemLog(value = "开发主体附件信息-查询文件Url地址") | ||
| 81 | @Operation( | ||
| 82 | summary = "开发主体附件信息-查询文件Url地址", | ||
| 83 | parameters = { | ||
| 84 | @Parameter(name = "fileId", description = "文件Id", required = true)}, | ||
| 85 | hidden = true | ||
| 86 | ) | ||
| 87 | public CommonRes<String> getFileUrl(@RequestParam String fileId) { | ||
| 88 | String fileUrl = enterpriseAttachmentService.getEnterpriseAttachmentUrl(fileId); | ||
| 89 | return CommonRes.success(fileUrl); | ||
| 90 | } | ||
| 91 | |||
| 92 | //endregion | ||
| 93 | |||
| 94 | } |
src/main/java/com/csbr/qingcloud/portal/controller/EnterpriseDomainController.java
deleted
100644 → 0
| 1 | package com.csbr.qingcloud.portal.controller; | ||
| 2 | |||
| 3 | import com.csbr.cloud.common.response.CommonRes; | ||
| 4 | import csbr.cloud.entity.annotation.SystemLog; | ||
| 5 | import csbr.cloud.entity.domain.base.vo.PageListVO; | ||
| 6 | import com.csbr.qingcloud.portal.domain.vo.EnterpriseDomainQueryVO; | ||
| 7 | import com.csbr.qingcloud.portal.domain.vo.EnterpriseDomainRQVO; | ||
| 8 | import com.csbr.qingcloud.portal.domain.vo.EnterpriseDomainRSVO; | ||
| 9 | import com.csbr.qingcloud.portal.service.EnterpriseDomainService; | ||
| 10 | import io.swagger.v3.oas.annotations.Operation; | ||
| 11 | import io.swagger.v3.oas.annotations.Parameter; | ||
| 12 | import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 13 | import jakarta.annotation.Resource; | ||
| 14 | import jakarta.validation.Valid; | ||
| 15 | import org.springframework.web.bind.annotation.*; | ||
| 16 | |||
| 17 | import java.util.List; | ||
| 18 | |||
| 19 | /** | ||
| 20 | * @program: | ||
| 21 | * @description: 开发主体领域信息-控制器 | ||
| 22 | * @author: makejava | ||
| 23 | * @create: 2025-09-12 11:02 | ||
| 24 | **/ | ||
| 25 | @RestController | ||
| 26 | @RequestMapping("/enterprise-domain") | ||
| 27 | @Tag(name = "开发主体领域信息-控制器") | ||
| 28 | public class EnterpriseDomainController { | ||
| 29 | |||
| 30 | @Resource | ||
| 31 | private EnterpriseDomainService enterpriseDomainService; | ||
| 32 | |||
| 33 | //region 基本操作 | ||
| 34 | |||
| 35 | @PostMapping("/save") | ||
| 36 | @SystemLog(value = "开发主体领域信息-新增") | ||
| 37 | @Operation(summary = "开发主体领域信息-新增") | ||
| 38 | public CommonRes<Boolean> saveEnterpriseDomain(@RequestBody @Valid EnterpriseDomainRQVO vo) { | ||
| 39 | enterpriseDomainService.saveEnterpriseDomain(vo); | ||
| 40 | return CommonRes.success(true); | ||
| 41 | } | ||
| 42 | |||
| 43 | @PutMapping("/update") | ||
| 44 | @SystemLog(value = "开发主体领域信息-修改") | ||
| 45 | @Operation(summary = "开发主体领域信息-修改") | ||
| 46 | public CommonRes<Boolean> updateEnterpriseDomain(@RequestBody @Valid EnterpriseDomainRQVO vo) { | ||
| 47 | enterpriseDomainService.updateEnterpriseDomain(vo); | ||
| 48 | return CommonRes.success(true); | ||
| 49 | } | ||
| 50 | |||
| 51 | @DeleteMapping("/delete") | ||
| 52 | @SystemLog(value = "开发主体领域信息-批量删除") | ||
| 53 | @Operation(summary = "开发主体领域信息-批量删除") | ||
| 54 | public CommonRes<Boolean> removeByGuids(@RequestBody List<String> guids) { | ||
| 55 | enterpriseDomainService.removeByGuids(guids); | ||
| 56 | return CommonRes.success(true); | ||
| 57 | } | ||
| 58 | |||
| 59 | @PostMapping("/page-list") | ||
| 60 | @SystemLog(value = "开发主体领域信息-分页") | ||
| 61 | @Operation(summary = "开发主体领域信息-分页") | ||
| 62 | public CommonRes<PageListVO<EnterpriseDomainRSVO>> pageList(@RequestBody @Valid EnterpriseDomainQueryVO queryVO) { | ||
| 63 | PageListVO<EnterpriseDomainRSVO> pageVO = enterpriseDomainService.pageList(queryVO); | ||
| 64 | return CommonRes.success(pageVO); | ||
| 65 | } | ||
| 66 | |||
| 67 | @GetMapping("/detail") | ||
| 68 | @SystemLog(value = "开发主体领域信息-详情") | ||
| 69 | @Operation( | ||
| 70 | summary = "开发主体领域信息-详情", | ||
| 71 | parameters = { | ||
| 72 | @Parameter(name = "guid", description = "开发主体领域信息唯一标识", required = true)} | ||
| 73 | ) | ||
| 74 | public CommonRes<EnterpriseDomainRSVO> getEnterpriseDomainDetail(@RequestParam String guid) { | ||
| 75 | EnterpriseDomainRSVO vo = enterpriseDomainService.getEnterpriseDomainDetail(guid); | ||
| 76 | return CommonRes.success(vo); | ||
| 77 | } | ||
| 78 | |||
| 79 | //endregion | ||
| 80 | |||
| 81 | } |
| 1 | package com.csbr.qingcloud.portal.domain.vo; | 1 | package com.csbr.qingcloud.portal.domain.vo; |
| 2 | 2 | ||
| 3 | import io.swagger.v3.oas.annotations.media.Schema; | 3 | import io.swagger.v3.oas.annotations.media.Schema; |
| 4 | import com.fasterxml.jackson.annotation.JsonFormat; | 4 | import jakarta.validation.constraints.NotBlank; |
| 5 | import jakarta.validation.constraints.Size; | 5 | import jakarta.validation.constraints.Size; |
| 6 | import lombok.Data; | 6 | import lombok.Data; |
| 7 | |||
| 7 | import java.math.BigDecimal; | 8 | import java.math.BigDecimal; |
| 8 | import java.util.Date; | ||
| 9 | 9 | ||
| 10 | /** | 10 | /** |
| 11 | * @program: | 11 | * @program: |
| 12 | * @description: 开发主体附件信息新增、修改参数 | 12 | * @description: 开发主体附件信息新增、修改参数 |
| 13 | * @author: makejava | 13 | * @author: makejava |
| 14 | * @create: 2025-09-05 13:50 | 14 | * @create: 2025-09-05 13:50 |
| ... | @@ -16,59 +16,68 @@ import java.util.Date; | ... | @@ -16,59 +16,68 @@ import java.util.Date; |
| 16 | @Data | 16 | @Data |
| 17 | @Schema(title = "开发主体附件信息新增、修改参数") | 17 | @Schema(title = "开发主体附件信息新增、修改参数") |
| 18 | public class EnterpriseAttachmentRQVO { | 18 | public class EnterpriseAttachmentRQVO { |
| 19 | 19 | ||
| 20 | /** | 20 | /** |
| 21 | * 系统唯一标识 | 21 | * 系统唯一标识 |
| 22 | */ | 22 | */ |
| 23 | @Schema(description = "系统唯一标识") | 23 | @Schema(description = "系统唯一标识") |
| 24 | @Size(max = 32, message = "系统唯一标识长度超过32") | 24 | @Size(max = 32, message = "系统唯一标识长度超过32") |
| 25 | private String guid; | 25 | private String guid; |
| 26 | 26 | ||
| 27 | /** | 27 | /** |
| 28 | * 企业唯一标识 | 28 | * 企业唯一标识 |
| 29 | */ | 29 | */ |
| 30 | @Schema(description = "企业唯一标识") | 30 | @Schema(description = "企业唯一标识") |
| 31 | @Size(max = 32, message = "企业唯一标识长度超过32") | 31 | @Size(max = 32, message = "企业唯一标识长度超过32") |
| 32 | private String tenantGuid; | 32 | private String tenantGuid; |
| 33 | 33 | ||
| 34 | /** | 34 | /** |
| 35 | * 企业认证唯一标识 | 35 | * 企业认证唯一标识 |
| 36 | */ | 36 | */ |
| 37 | @Schema(description = "企业认证唯一标识") | 37 | @Schema(description = "企业认证唯一标识") |
| 38 | @Size(max = 32, message = "企业认证唯一标识长度超过32") | 38 | @Size(max = 32, message = "企业认证唯一标识长度超过32") |
| 39 | private String enterpriseGuid; | 39 | private String enterpriseGuid; |
| 40 | 40 | ||
| 41 | /** | ||
| 42 | * 文件唯一标识 | ||
| 43 | */ | ||
| 44 | @Schema(description = "文件唯一标识") | ||
| 45 | private String fileId; | ||
| 46 | |||
| 41 | /** | 47 | /** |
| 42 | * 文件名称 | 48 | * 文件名称 |
| 43 | */ | 49 | */ |
| 44 | @Schema(description = "文件名称") | 50 | @Schema(description = "文件名称") |
| 45 | @Size(max = 50, message = "文件名称长度超过50") | 51 | @Size(max = 50, message = "文件名称长度超过50") |
| 52 | @NotBlank(message = "文件名称为空.") | ||
| 46 | private String fileName; | 53 | private String fileName; |
| 47 | 54 | ||
| 48 | /** | 55 | /** |
| 49 | * 文件类型【详情 开发主体附件类型数据字典】 | 56 | * 文件类型【详情 开发主体附件类型数据字典】 |
| 50 | */ | 57 | */ |
| 51 | @Schema(description = "文件类型【详情 开发主体附件类型数据字典】") | 58 | @Schema(description = "文件类型【详情 开发主体附件类型数据字典】") |
| 52 | @Size(max = 10, message = "文件类型【详情 开发主体附件类型数据字典】长度超过10") | 59 | @Size(max = 10, message = "文件类型【详情 开发主体附件类型数据字典】长度超过10") |
| 60 | @NotBlank(message = "文件类型为空.") | ||
| 53 | private String fileType; | 61 | private String fileType; |
| 54 | 62 | ||
| 55 | /** | 63 | /** |
| 56 | * 文件大小 | 64 | * 文件大小 |
| 57 | */ | 65 | */ |
| 58 | @Schema(description = "文件大小") | 66 | @Schema(description = "文件大小") |
| 59 | private BigDecimal fileSize; | 67 | private BigDecimal fileSize; |
| 60 | 68 | ||
| 61 | /** | 69 | /** |
| 62 | * 文件地址 | 70 | * 文件地址 |
| 63 | */ | 71 | */ |
| 64 | @Schema(description = "文件地址") | 72 | @Schema(description = "文件地址") |
| 65 | @Size(max = 500, message = "文件地址长度超过500") | 73 | @Size(max = 500, message = "文件地址长度超过500") |
| 74 | @NotBlank(message = "文件地址为空.") | ||
| 66 | private String fileUrl; | 75 | private String fileUrl; |
| 67 | 76 | ||
| 68 | /******** 库表存储属性 需处理 *****/ | 77 | /******** 库表存储属性 需处理 *****/ |
| 69 | 78 | ||
| 70 | /******** 自定义扩展 *****/ | 79 | /******** 自定义扩展 *****/ |
| 71 | 80 | ||
| 72 | /******** 子对象 *****/ | 81 | /******** 子对象 *****/ |
| 73 | 82 | ||
| 74 | } | 83 | } | ... | ... |
| 1 | package com.csbr.qingcloud.portal.domain.vo; | 1 | package com.csbr.qingcloud.portal.domain.vo; |
| 2 | 2 | ||
| 3 | import com.csbr.cloud.common.annotations.SystemParamsDict; | ||
| 3 | import io.swagger.v3.oas.annotations.media.Schema; | 4 | import io.swagger.v3.oas.annotations.media.Schema; |
| 4 | import com.fasterxml.jackson.annotation.JsonFormat; | ||
| 5 | import lombok.Data; | 5 | import lombok.Data; |
| 6 | |||
| 6 | import java.math.BigDecimal; | 7 | import java.math.BigDecimal; |
| 7 | import java.util.Date; | ||
| 8 | 8 | ||
| 9 | /** | 9 | /** |
| 10 | * @program: | 10 | * @program: |
| 11 | * @description: 开发主体附件信息返回参数 | 11 | * @description: 开发主体附件信息返回参数 |
| 12 | * @author: makejava | 12 | * @author: makejava |
| 13 | * @create: 2025-09-05 13:50 | 13 | * @create: 2025-09-05 13:50 |
| ... | @@ -15,53 +15,60 @@ import java.util.Date; | ... | @@ -15,53 +15,60 @@ import java.util.Date; |
| 15 | @Data | 15 | @Data |
| 16 | @Schema(title = "开发主体附件信息返回参数") | 16 | @Schema(title = "开发主体附件信息返回参数") |
| 17 | public class EnterpriseAttachmentRSVO { | 17 | public class EnterpriseAttachmentRSVO { |
| 18 | 18 | ||
| 19 | /** | 19 | /** |
| 20 | * 系统唯一标识 | 20 | * 系统唯一标识 |
| 21 | */ | 21 | */ |
| 22 | @Schema(description = "系统唯一标识") | 22 | @Schema(description = "系统唯一标识") |
| 23 | private String guid; | 23 | private String guid; |
| 24 | 24 | ||
| 25 | /** | 25 | /** |
| 26 | * 企业唯一标识 | 26 | * 企业唯一标识 |
| 27 | */ | 27 | */ |
| 28 | @Schema(description = "企业唯一标识") | 28 | @Schema(description = "企业唯一标识") |
| 29 | private String tenantGuid; | 29 | private String tenantGuid; |
| 30 | 30 | ||
| 31 | /** | 31 | /** |
| 32 | * 企业认证唯一标识 | 32 | * 企业认证唯一标识 |
| 33 | */ | 33 | */ |
| 34 | @Schema(description = "企业认证唯一标识") | 34 | @Schema(description = "企业认证唯一标识") |
| 35 | private String enterpriseGuid; | 35 | private String enterpriseGuid; |
| 36 | 36 | ||
| 37 | /** | 37 | /** |
| 38 | * 文件名称 | 38 | * 文件名称 |
| 39 | */ | 39 | */ |
| 40 | @Schema(description = "文件名称") | 40 | @Schema(description = "文件名称") |
| 41 | private String fileName; | 41 | private String fileName; |
| 42 | 42 | ||
| 43 | /** | 43 | /** |
| 44 | * 文件类型【详情 开发主体附件类型数据字典】 | 44 | * 文件类型【详情 开发主体附件类型数据字典】 |
| 45 | */ | 45 | */ |
| 46 | @Schema(description = "文件类型【详情 开发主体附件类型数据字典】") | 46 | @Schema(description = "文件类型【详情 开发主体附件类型数据字典】") |
| 47 | private String fileType; | 47 | private String fileType; |
| 48 | 48 | ||
| 49 | /** | ||
| 50 | * 文件类型名称 | ||
| 51 | */ | ||
| 52 | @Schema(description = "文件类型名称") | ||
| 53 | @SystemParamsDict(dictTypeName = "文件类型", codeFieldName = "fileType") | ||
| 54 | private String fileTypeName; | ||
| 55 | |||
| 49 | /** | 56 | /** |
| 50 | * 文件大小 | 57 | * 文件大小 |
| 51 | */ | 58 | */ |
| 52 | @Schema(description = "文件大小") | 59 | @Schema(description = "文件大小") |
| 53 | private BigDecimal fileSize; | 60 | private BigDecimal fileSize; |
| 54 | 61 | ||
| 55 | /** | 62 | /** |
| 56 | * 文件地址 | 63 | * 文件地址 |
| 57 | */ | 64 | */ |
| 58 | @Schema(description = "文件地址") | 65 | @Schema(description = "文件地址") |
| 59 | private String fileUrl; | 66 | private String fileUrl; |
| 60 | 67 | ||
| 61 | /******** 库表存储属性 需处理 *****/ | 68 | /******** 库表存储属性 需处理 *****/ |
| 62 | 69 | ||
| 63 | /******** 自定义扩展 *****/ | 70 | /******** 自定义扩展 *****/ |
| 64 | 71 | ||
| 65 | /******** 子对象 *****/ | 72 | /******** 子对象 *****/ |
| 66 | 73 | ||
| 67 | } | 74 | } | ... | ... |
| 1 | package com.csbr.qingcloud.portal.domain.vo; | 1 | package com.csbr.qingcloud.portal.domain.vo; |
| 2 | 2 | ||
| 3 | import io.swagger.v3.oas.annotations.media.Schema; | ||
| 4 | import com.fasterxml.jackson.annotation.JsonFormat; | 3 | import com.fasterxml.jackson.annotation.JsonFormat; |
| 4 | import io.swagger.v3.oas.annotations.media.Schema; | ||
| 5 | import jakarta.validation.constraints.NotBlank; | ||
| 6 | import jakarta.validation.constraints.NotNull; | ||
| 7 | import jakarta.validation.constraints.Pattern; | ||
| 5 | import jakarta.validation.constraints.Size; | 8 | import jakarta.validation.constraints.Size; |
| 6 | import lombok.Data; | 9 | import lombok.Data; |
| 10 | |||
| 7 | import java.util.Date; | 11 | import java.util.Date; |
| 8 | 12 | ||
| 9 | /** | 13 | /** |
| 10 | * @program: | 14 | * @program: |
| 11 | * @description: 开发主体领域信息新增、修改参数 | 15 | * @description: 开发主体领域信息新增、修改参数 |
| 12 | * @author: makejava | 16 | * @author: makejava |
| 13 | * @create: 2025-09-12 11:02 | 17 | * @create: 2025-09-12 11:02 |
| ... | @@ -15,74 +19,74 @@ import java.util.Date; | ... | @@ -15,74 +19,74 @@ import java.util.Date; |
| 15 | @Data | 19 | @Data |
| 16 | @Schema(title = "开发主体领域信息新增、修改参数") | 20 | @Schema(title = "开发主体领域信息新增、修改参数") |
| 17 | public class EnterpriseDomainRQVO { | 21 | public class EnterpriseDomainRQVO { |
| 18 | 22 | ||
| 19 | /** | 23 | /** |
| 20 | * 系统唯一标识 | 24 | * 系统唯一标识 |
| 21 | */ | 25 | */ |
| 22 | @Schema(description = "系统唯一标识") | 26 | @Schema(description = "系统唯一标识") |
| 23 | @Size(max = 32, message = "系统唯一标识长度超过32") | 27 | @Size(max = 32, message = "系统唯一标识长度超过32") |
| 24 | private String guid; | 28 | private String guid; |
| 25 | 29 | ||
| 26 | /** | ||
| 27 | * 企业唯一标识 | ||
| 28 | */ | ||
| 29 | @Schema(description = "企业唯一标识") | ||
| 30 | @Size(max = 32, message = "企业唯一标识长度超过32") | ||
| 31 | private String tenantGuid; | ||
| 32 | |||
| 33 | /** | 30 | /** |
| 34 | * 企业认证唯一标识 | 31 | * 企业认证唯一标识 |
| 35 | */ | 32 | */ |
| 36 | @Schema(description = "企业认证唯一标识") | 33 | @Schema(description = "企业认证唯一标识") |
| 37 | @Size(max = 32, message = "企业认证唯一标识长度超过32") | 34 | @Size(max = 32, message = "企业认证唯一标识长度超过32") |
| 38 | private String enterpriseGuid; | 35 | private String enterpriseGuid; |
| 39 | 36 | ||
| 40 | /** | 37 | /** |
| 41 | * 领域代码 | 38 | * 领域代码 |
| 42 | */ | 39 | */ |
| 43 | @Schema(description = "领域代码") | 40 | @Schema(description = "领域代码") |
| 44 | @Size(max = 10, message = "领域代码长度超过10") | 41 | @Size(max = 10, message = "领域代码长度超过10") |
| 42 | @NotBlank(message = "领域代码为空.") | ||
| 45 | private String domainId; | 43 | private String domainId; |
| 46 | 44 | ||
| 47 | /** | 45 | /** |
| 48 | * 授权协议号 | 46 | * 授权协议号 |
| 49 | */ | 47 | */ |
| 50 | @Schema(description = "授权协议号") | 48 | @Schema(description = "授权协议号") |
| 51 | @Size(max = 50, message = "授权协议号长度超过50") | 49 | @Size(max = 50, message = "授权协议号长度超过50") |
| 50 | @NotBlank(message = "授权协议号为空.") | ||
| 52 | private String authId; | 51 | private String authId; |
| 53 | 52 | ||
| 54 | /** | 53 | /** |
| 55 | * 协议开始日期 | 54 | * 协议开始日期 |
| 56 | */ | 55 | */ |
| 57 | @Schema(description = "协议开始日期") | 56 | @Schema(description = "协议开始日期") |
| 58 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | 57 | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| 58 | @NotNull(message = "协议开始日期为空.") | ||
| 59 | private Date domainStartTime; | 59 | private Date domainStartTime; |
| 60 | 60 | ||
| 61 | /** | 61 | /** |
| 62 | * 协议结束日期 | 62 | * 协议结束日期 |
| 63 | */ | 63 | */ |
| 64 | @Schema(description = "协议结束日期") | 64 | @Schema(description = "协议结束日期") |
| 65 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | 65 | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| 66 | @NotNull(message = "协议结束日期为空.") | ||
| 66 | private Date domainEndTime; | 67 | private Date domainEndTime; |
| 67 | 68 | ||
| 68 | /** | 69 | /** |
| 69 | * 协议签订人 | 70 | * 协议签订人 |
| 70 | */ | 71 | */ |
| 71 | @Schema(description = "协议签订人") | 72 | @Schema(description = "协议签订人") |
| 72 | @Size(max = 20, message = "协议签订人长度超过20") | 73 | @Size(max = 20, message = "协议签订人长度超过20") |
| 74 | @NotBlank(message = "协议签订人为空.") | ||
| 73 | private String signee; | 75 | private String signee; |
| 74 | 76 | ||
| 75 | /** | 77 | /** |
| 76 | * 协议状态,如10【10-生效中;20-已终止】 | 78 | * 协议状态,如10【10-生效中;20-已终止】 |
| 77 | */ | 79 | */ |
| 78 | @Schema(description = "协议状态,如10【10-生效中;20-已终止】") | 80 | @Schema(description = "协议状态,如10【10-生效中;20-已终止】") |
| 79 | @Size(max = 10, message = "协议状态,如10【10-生效中;20-已终止】长度超过10") | 81 | @Size(max = 10, message = "协议状态,如10【10-生效中;20-已终止】长度超过10") |
| 82 | @NotBlank(message = "协议状态为空.") | ||
| 83 | @Pattern(regexp = "^10|20$", message = "领域代码应该为10、20中的值。") | ||
| 80 | private String domainStatus; | 84 | private String domainStatus; |
| 81 | 85 | ||
| 82 | /******** 库表存储属性 需处理 *****/ | 86 | /******** 库表存储属性 需处理 *****/ |
| 83 | 87 | ||
| 84 | /******** 自定义扩展 *****/ | 88 | /******** 自定义扩展 *****/ |
| 85 | 89 | ||
| 86 | /******** 子对象 *****/ | 90 | /******** 子对象 *****/ |
| 87 | 91 | ||
| 88 | } | 92 | } | ... | ... |
| 1 | package com.csbr.qingcloud.portal.domain.vo; | 1 | package com.csbr.qingcloud.portal.domain.vo; |
| 2 | 2 | ||
| 3 | import io.swagger.v3.oas.annotations.media.Schema; | 3 | import com.csbr.cloud.common.annotations.SystemParamsDict; |
| 4 | import com.fasterxml.jackson.annotation.JsonFormat; | 4 | import com.fasterxml.jackson.annotation.JsonFormat; |
| 5 | import io.swagger.v3.oas.annotations.media.Schema; | ||
| 5 | import lombok.Data; | 6 | import lombok.Data; |
| 7 | |||
| 6 | import java.util.Date; | 8 | import java.util.Date; |
| 7 | 9 | ||
| 8 | /** | 10 | /** |
| 9 | * @program: | 11 | * @program: |
| 10 | * @description: 开发主体领域信息返回参数 | 12 | * @description: 开发主体领域信息返回参数 |
| 11 | * @author: makejava | 13 | * @author: makejava |
| 12 | * @create: 2025-09-12 11:02 | 14 | * @create: 2025-09-12 11:02 |
| ... | @@ -14,67 +16,75 @@ import java.util.Date; | ... | @@ -14,67 +16,75 @@ import java.util.Date; |
| 14 | @Data | 16 | @Data |
| 15 | @Schema(title = "开发主体领域信息返回参数") | 17 | @Schema(title = "开发主体领域信息返回参数") |
| 16 | public class EnterpriseDomainRSVO { | 18 | public class EnterpriseDomainRSVO { |
| 17 | 19 | ||
| 18 | /** | 20 | /** |
| 19 | * 系统唯一标识 | 21 | * 系统唯一标识 |
| 20 | */ | 22 | */ |
| 21 | @Schema(description = "系统唯一标识") | 23 | @Schema(description = "系统唯一标识") |
| 22 | private String guid; | 24 | private String guid; |
| 23 | 25 | ||
| 24 | /** | 26 | /** |
| 25 | * 企业唯一标识 | 27 | * 企业唯一标识 |
| 26 | */ | 28 | */ |
| 27 | @Schema(description = "企业唯一标识") | 29 | @Schema(description = "企业唯一标识") |
| 28 | private String tenantGuid; | 30 | private String tenantGuid; |
| 29 | 31 | ||
| 30 | /** | 32 | /** |
| 31 | * 企业认证唯一标识 | 33 | * 企业认证唯一标识 |
| 32 | */ | 34 | */ |
| 33 | @Schema(description = "企业认证唯一标识") | 35 | @Schema(description = "企业认证唯一标识") |
| 34 | private String enterpriseGuid; | 36 | private String enterpriseGuid; |
| 35 | 37 | ||
| 36 | /** | 38 | /** |
| 37 | * 领域代码 | 39 | * 领域代码 |
| 38 | */ | 40 | */ |
| 39 | @Schema(description = "领域代码") | 41 | @Schema(description = "领域代码") |
| 40 | private String domainId; | 42 | private String domainId; |
| 41 | 43 | ||
| 44 | @Schema(title = "领域名称") | ||
| 45 | @SystemParamsDict(dictTypeName = "领域", codeFieldName = "domainId") | ||
| 46 | private String domainIdName; | ||
| 47 | |||
| 42 | /** | 48 | /** |
| 43 | * 授权协议号 | 49 | * 授权协议号 |
| 44 | */ | 50 | */ |
| 45 | @Schema(description = "授权协议号") | 51 | @Schema(description = "授权协议号") |
| 46 | private String authId; | 52 | private String authId; |
| 47 | 53 | ||
| 48 | /** | 54 | /** |
| 49 | * 协议开始日期 | 55 | * 协议开始日期 |
| 50 | */ | 56 | */ |
| 51 | @Schema(description = "协议开始日期") | 57 | @Schema(description = "协议开始日期") |
| 52 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | 58 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| 53 | private Date domainStartTime; | 59 | private Date domainStartTime; |
| 54 | 60 | ||
| 55 | /** | 61 | /** |
| 56 | * 协议结束日期 | 62 | * 协议结束日期 |
| 57 | */ | 63 | */ |
| 58 | @Schema(description = "协议结束日期") | 64 | @Schema(description = "协议结束日期") |
| 59 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | 65 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| 60 | private Date domainEndTime; | 66 | private Date domainEndTime; |
| 61 | 67 | ||
| 62 | /** | 68 | /** |
| 63 | * 协议签订人 | 69 | * 协议签订人 |
| 64 | */ | 70 | */ |
| 65 | @Schema(description = "协议签订人") | 71 | @Schema(description = "协议签订人") |
| 66 | private String signee; | 72 | private String signee; |
| 67 | 73 | ||
| 68 | /** | 74 | /** |
| 69 | * 协议状态,如10【10-生效中;20-已终止】 | 75 | * 协议状态,如10【10-生效中;20-已终止】 |
| 70 | */ | 76 | */ |
| 71 | @Schema(description = "协议状态,如10【10-生效中;20-已终止】") | 77 | @Schema(description = "协议状态,如10【10-生效中;20-已终止】") |
| 72 | private String domainStatus; | 78 | private String domainStatus; |
| 73 | 79 | ||
| 80 | @Schema(title = "协议状态名称") | ||
| 81 | @SystemParamsDict(dictTypeName = "协议状态", codeFieldName = "domainStatus") | ||
| 82 | private String domainStatusName; | ||
| 83 | |||
| 74 | /******** 库表存储属性 需处理 *****/ | 84 | /******** 库表存储属性 需处理 *****/ |
| 75 | 85 | ||
| 76 | /******** 自定义扩展 *****/ | 86 | /******** 自定义扩展 *****/ |
| 77 | 87 | ||
| 78 | /******** 子对象 *****/ | 88 | /******** 子对象 *****/ |
| 79 | 89 | ||
| 80 | } | 90 | } | ... | ... |
| ... | @@ -3,9 +3,11 @@ package com.csbr.qingcloud.portal.domain.vo; | ... | @@ -3,9 +3,11 @@ package com.csbr.qingcloud.portal.domain.vo; |
| 3 | import com.csbr.cloud.workflow.domain.vo.appove.FlowRQBaseVO; | 3 | import com.csbr.cloud.workflow.domain.vo.appove.FlowRQBaseVO; |
| 4 | import io.swagger.v3.oas.annotations.media.Schema; | 4 | import io.swagger.v3.oas.annotations.media.Schema; |
| 5 | import com.fasterxml.jackson.annotation.JsonFormat; | 5 | import com.fasterxml.jackson.annotation.JsonFormat; |
| 6 | import jakarta.validation.Valid; | ||
| 6 | import lombok.Data; | 7 | import lombok.Data; |
| 7 | import java.math.BigDecimal; | 8 | import java.math.BigDecimal; |
| 8 | import java.util.Date; | 9 | import java.util.Date; |
| 10 | import java.util.List; | ||
| 9 | 11 | ||
| 10 | /** | 12 | /** |
| 11 | * @program: D:/git/ms-data-circulation-portal-service | 13 | * @program: D:/git/ms-data-circulation-portal-service |
| ... | @@ -27,158 +29,171 @@ public class EnterpriseRQVO extends FlowRQBaseVO { | ... | @@ -27,158 +29,171 @@ public class EnterpriseRQVO extends FlowRQBaseVO { |
| 27 | 29 | ||
| 28 | @Schema(title = "专区名称") | 30 | @Schema(title = "专区名称") |
| 29 | private String zqName; | 31 | private String zqName; |
| 30 | 32 | ||
| 31 | /** | 33 | /** |
| 32 | * 统一社会信用代码 | 34 | * 统一社会信用代码 |
| 33 | */ | 35 | */ |
| 34 | @Schema(description = "统一社会信用代码") | 36 | @Schema(description = "统一社会信用代码") |
| 35 | private String socialCreditCode; | 37 | private String socialCreditCode; |
| 36 | 38 | ||
| 37 | /** | 39 | /** |
| 38 | * 企业类型【选择平台字典【公司类型】的选项】 | 40 | * 企业类型【选择平台字典【公司类型】的选项】 |
| 39 | */ | 41 | */ |
| 40 | @Schema(description = "企业类型【选择平台字典【公司类型】的选项】") | 42 | @Schema(description = "企业类型【选择平台字典【公司类型】的选项】") |
| 41 | private String tenantType; | 43 | private String tenantType; |
| 42 | 44 | ||
| 43 | /** | 45 | /** |
| 44 | * 注册日期 | 46 | * 注册日期 |
| 45 | */ | 47 | */ |
| 46 | @Schema(description = "注册日期") | 48 | @Schema(description = "注册日期") |
| 47 | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") | 49 | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| 48 | private Date registrationDate; | 50 | private Date registrationDate; |
| 49 | 51 | ||
| 50 | /** | 52 | /** |
| 51 | * 注册资本【(万元)】 | 53 | * 注册资本【(万元)】 |
| 52 | */ | 54 | */ |
| 53 | @Schema(description = "注册资本【(万元)】") | 55 | @Schema(description = "注册资本【(万元)】") |
| 54 | private BigDecimal registeredCapital; | 56 | private BigDecimal registeredCapital; |
| 55 | 57 | ||
| 56 | /** | 58 | /** |
| 57 | * 税号 | 59 | * 税号 |
| 58 | */ | 60 | */ |
| 59 | @Schema(description = "税号") | 61 | @Schema(description = "税号") |
| 60 | private String bankTaxNo; | 62 | private String bankTaxNo; |
| 61 | 63 | ||
| 62 | /** | 64 | /** |
| 63 | * 省 | 65 | * 省 |
| 64 | */ | 66 | */ |
| 65 | @Schema(description = "省") | 67 | @Schema(description = "省") |
| 66 | private String province; | 68 | private String province; |
| 67 | 69 | ||
| 68 | /** | 70 | /** |
| 69 | * 市 | 71 | * 市 |
| 70 | */ | 72 | */ |
| 71 | @Schema(description = "市") | 73 | @Schema(description = "市") |
| 72 | private String city; | 74 | private String city; |
| 73 | 75 | ||
| 74 | /** | 76 | /** |
| 75 | * 区 | 77 | * 区 |
| 76 | */ | 78 | */ |
| 77 | @Schema(description = "区") | 79 | @Schema(description = "区") |
| 78 | private String district; | 80 | private String district; |
| 79 | 81 | ||
| 80 | /** | 82 | /** |
| 81 | * 营业期限【1 长期有效;2 自定义】 | 83 | * 营业期限【1 长期有效;2 自定义】 |
| 82 | */ | 84 | */ |
| 83 | @Schema(description = "营业期限【1 长期有效;2 自定义】") | 85 | @Schema(description = "营业期限【1 长期有效;2 自定义】") |
| 84 | private String businessLicenseTerm; | 86 | private String businessLicenseTerm; |
| 85 | 87 | ||
| 86 | /** | 88 | /** |
| 87 | * 营业开始日期 | 89 | * 营业开始日期 |
| 88 | */ | 90 | */ |
| 89 | @Schema(description = "营业开始日期") | 91 | @Schema(description = "营业开始日期") |
| 90 | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") | 92 | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| 91 | private Date businessLicenseStartDate; | 93 | private Date businessLicenseStartDate; |
| 92 | 94 | ||
| 93 | /** | 95 | /** |
| 94 | * 营业结束日期 | 96 | * 营业结束日期 |
| 95 | */ | 97 | */ |
| 96 | @Schema(description = "营业结束日期") | 98 | @Schema(description = "营业结束日期") |
| 97 | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") | 99 | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| 98 | private Date businessLicenseEndDate; | 100 | private Date businessLicenseEndDate; |
| 99 | 101 | ||
| 100 | /** | 102 | /** |
| 101 | * 营业执照 | 103 | * 营业执照 |
| 102 | */ | 104 | */ |
| 103 | @Schema(description = "营业执照") | 105 | @Schema(description = "营业执照") |
| 104 | private String businessLicenseJson; | 106 | private String businessLicenseJson; |
| 105 | 107 | ||
| 106 | /** | 108 | /** |
| 107 | * 营业执照经营范围 | 109 | * 营业执照经营范围 |
| 108 | */ | 110 | */ |
| 109 | @Schema(description = "营业执照经营范围") | 111 | @Schema(description = "营业执照经营范围") |
| 110 | private String businessLicenseScope; | 112 | private String businessLicenseScope; |
| 111 | 113 | ||
| 112 | /** | 114 | /** |
| 113 | * 公司法人 | 115 | * 公司法人 |
| 114 | */ | 116 | */ |
| 115 | @Schema(description = "公司法人") | 117 | @Schema(description = "公司法人") |
| 116 | private String juridicalPerson; | 118 | private String juridicalPerson; |
| 117 | 119 | ||
| 118 | /** | 120 | /** |
| 119 | * 法人证件类型 | 121 | * 法人证件类型 |
| 120 | */ | 122 | */ |
| 121 | @Schema(description = "法人证件类型") | 123 | @Schema(description = "法人证件类型") |
| 122 | private String juridicalPersonIdType; | 124 | private String juridicalPersonIdType; |
| 123 | 125 | ||
| 124 | /** | 126 | /** |
| 125 | * 法人证件号 | 127 | * 法人证件号 |
| 126 | */ | 128 | */ |
| 127 | @Schema(description = "法人证件号") | 129 | @Schema(description = "法人证件号") |
| 128 | private String juridicalPersonId; | 130 | private String juridicalPersonId; |
| 129 | 131 | ||
| 130 | /** | 132 | /** |
| 131 | * 法人证件照 | 133 | * 法人证件照 |
| 132 | */ | 134 | */ |
| 133 | @Schema(description = "法人证件照") | 135 | @Schema(description = "法人证件照") |
| 134 | private String juridicalPersonIdPhotoJson; | 136 | private String juridicalPersonIdPhotoJson; |
| 135 | 137 | ||
| 136 | /** | 138 | /** |
| 137 | * 登录账号 | 139 | * 登录账号 |
| 138 | */ | 140 | */ |
| 139 | @Schema(description = "登录账号") | 141 | @Schema(description = "登录账号") |
| 140 | private String logonUser; | 142 | private String logonUser; |
| 141 | 143 | ||
| 142 | /** | 144 | /** |
| 143 | * 联系人 | 145 | * 联系人 |
| 144 | */ | 146 | */ |
| 145 | @Schema(description = "联系人") | 147 | @Schema(description = "联系人") |
| 146 | private String contacts; | 148 | private String contacts; |
| 147 | 149 | ||
| 148 | /** | 150 | /** |
| 149 | * 联系人电话 | 151 | * 联系人电话 |
| 150 | */ | 152 | */ |
| 151 | @Schema(description = "联系人电话") | 153 | @Schema(description = "联系人电话") |
| 152 | private String contactTel; | 154 | private String contactTel; |
| 153 | 155 | ||
| 154 | /** | 156 | /** |
| 155 | * 管理员证件号 | 157 | * 管理员证件号 |
| 156 | */ | 158 | */ |
| 157 | @Schema(description = "管理员证件号") | 159 | @Schema(description = "管理员证件号") |
| 158 | private String managerPersonId; | 160 | private String managerPersonId; |
| 159 | 161 | ||
| 160 | /** | 162 | /** |
| 161 | * 管理员证件照 | 163 | * 管理员证件照 |
| 162 | */ | 164 | */ |
| 163 | @Schema(description = "管理员证件照") | 165 | @Schema(description = "管理员证件照") |
| 164 | private String managerPersonIdPhotoJson; | 166 | private String managerPersonIdPhotoJson; |
| 165 | 167 | ||
| 166 | /** | 168 | /** |
| 167 | * 授权委托书 | 169 | * 授权委托书 |
| 168 | */ | 170 | */ |
| 169 | @Schema(description = "授权委托书") | 171 | @Schema(description = "授权委托书") |
| 170 | private String authorizationLetter; | 172 | private String authorizationLetter; |
| 171 | 173 | ||
| 172 | /** | 174 | /** |
| 173 | * 业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃; 默认 N】 | 175 | * 业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃; 默认 N】 |
| 174 | */ | 176 | */ |
| 175 | @Schema(description = "业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃;B 变更中; 默认 N】") | 177 | @Schema(description = "业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃;B 变更中; 默认 N】") |
| 176 | private String bizApproveState; | 178 | private String bizApproveState; |
| 177 | 179 | ||
| 180 | @Schema(description = "组织机构性质") | ||
| 181 | private String institutionType; | ||
| 182 | |||
| 183 | @Schema(description = "详细地址") | ||
| 184 | private String detailedAddress; | ||
| 185 | |||
| 178 | /******** 库表存储属性 需处理 *****/ | 186 | /******** 库表存储属性 需处理 *****/ |
| 179 | 187 | ||
| 180 | /******** 自定义扩展 *****/ | 188 | /******** 自定义扩展 *****/ |
| 181 | 189 | ||
| 182 | /******** 子对象 *****/ | 190 | /******** 子对象 *****/ |
| 183 | 191 | ||
| 192 | @Schema(description = "开发主体附件信息") | ||
| 193 | private List<EnterpriseAttachmentRQVO> attachmentRQVOS; | ||
| 194 | |||
| 195 | @Schema(description = "开发主体领域信息") | ||
| 196 | @Valid | ||
| 197 | private List<EnterpriseDomainRQVO> domainRQVOS; | ||
| 198 | |||
| 184 | } | 199 | } | ... | ... |
| 1 | package com.csbr.qingcloud.portal.domain.vo; | 1 | package com.csbr.qingcloud.portal.domain.vo; |
| 2 | 2 | ||
| 3 | import com.csbr.cloud.common.annotations.SystemParamsDict; | ||
| 3 | import io.swagger.v3.oas.annotations.media.Schema; | 4 | import io.swagger.v3.oas.annotations.media.Schema; |
| 4 | import com.fasterxml.jackson.annotation.JsonFormat; | 5 | import com.fasterxml.jackson.annotation.JsonFormat; |
| 5 | import lombok.Data; | 6 | import lombok.Data; |
| ... | @@ -17,7 +18,7 @@ import java.util.List; | ... | @@ -17,7 +18,7 @@ import java.util.List; |
| 17 | @Data | 18 | @Data |
| 18 | @Schema(title = "企业信息返回参数") | 19 | @Schema(title = "企业信息返回参数") |
| 19 | public class EnterpriseRSVO { | 20 | public class EnterpriseRSVO { |
| 20 | 21 | ||
| 21 | /** | 22 | /** |
| 22 | * 系统唯一标识 | 23 | * 系统唯一标识 |
| 23 | */ | 24 | */ |
| ... | @@ -32,50 +33,50 @@ public class EnterpriseRSVO { | ... | @@ -32,50 +33,50 @@ public class EnterpriseRSVO { |
| 32 | */ | 33 | */ |
| 33 | @Schema(description = "公司名称") | 34 | @Schema(description = "公司名称") |
| 34 | private String tenantName; | 35 | private String tenantName; |
| 35 | 36 | ||
| 36 | /** | 37 | /** |
| 37 | * 统一社会信用代码 | 38 | * 统一社会信用代码 |
| 38 | */ | 39 | */ |
| 39 | @Schema(description = "统一社会信用代码") | 40 | @Schema(description = "统一社会信用代码") |
| 40 | private String socialCreditCode; | 41 | private String socialCreditCode; |
| 41 | 42 | ||
| 42 | /** | 43 | /** |
| 43 | * 企业类型【选择平台字典【公司类型】的选项】 | 44 | * 企业类型【选择平台字典【公司类型】的选项】 |
| 44 | */ | 45 | */ |
| 45 | @Schema(description = "企业类型【选择平台字典【公司类型】的选项】") | 46 | @Schema(description = "企业类型【选择平台字典【公司类型】的选项】") |
| 46 | private String tenantType; | 47 | private String tenantType; |
| 47 | 48 | ||
| 48 | /** | 49 | /** |
| 49 | * 注册日期 | 50 | * 注册日期 |
| 50 | */ | 51 | */ |
| 51 | @Schema(description = "注册日期") | 52 | @Schema(description = "注册日期") |
| 52 | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") | 53 | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| 53 | private Date registrationDate; | 54 | private Date registrationDate; |
| 54 | 55 | ||
| 55 | /** | 56 | /** |
| 56 | * 注册资本【(万元)】 | 57 | * 注册资本【(万元)】 |
| 57 | */ | 58 | */ |
| 58 | @Schema(description = "注册资本【(万元)】") | 59 | @Schema(description = "注册资本【(万元)】") |
| 59 | private BigDecimal registeredCapital; | 60 | private BigDecimal registeredCapital; |
| 60 | 61 | ||
| 61 | /** | 62 | /** |
| 62 | * 税号 | 63 | * 税号 |
| 63 | */ | 64 | */ |
| 64 | @Schema(description = "税号") | 65 | @Schema(description = "税号") |
| 65 | private String bankTaxNo; | 66 | private String bankTaxNo; |
| 66 | 67 | ||
| 67 | /** | 68 | /** |
| 68 | * 省 | 69 | * 省 |
| 69 | */ | 70 | */ |
| 70 | @Schema(description = "省") | 71 | @Schema(description = "省") |
| 71 | private String province; | 72 | private String province; |
| 72 | 73 | ||
| 73 | /** | 74 | /** |
| 74 | * 市 | 75 | * 市 |
| 75 | */ | 76 | */ |
| 76 | @Schema(description = "市") | 77 | @Schema(description = "市") |
| 77 | private String city; | 78 | private String city; |
| 78 | 79 | ||
| 79 | /** | 80 | /** |
| 80 | * 区 | 81 | * 区 |
| 81 | */ | 82 | */ |
| ... | @@ -84,20 +85,20 @@ public class EnterpriseRSVO { | ... | @@ -84,20 +85,20 @@ public class EnterpriseRSVO { |
| 84 | 85 | ||
| 85 | @Schema(description = "注册地") | 86 | @Schema(description = "注册地") |
| 86 | private String venue; | 87 | private String venue; |
| 87 | 88 | ||
| 88 | /** | 89 | /** |
| 89 | * 营业期限【1 长期有效;2 自定义】 | 90 | * 营业期限【1 长期有效;2 自定义】 |
| 90 | */ | 91 | */ |
| 91 | @Schema(description = "营业期限【1 长期有效;2 自定义】") | 92 | @Schema(description = "营业期限【1 长期有效;2 自定义】") |
| 92 | private String businessLicenseTerm; | 93 | private String businessLicenseTerm; |
| 93 | 94 | ||
| 94 | /** | 95 | /** |
| 95 | * 营业开始日期 | 96 | * 营业开始日期 |
| 96 | */ | 97 | */ |
| 97 | @Schema(description = "营业开始日期") | 98 | @Schema(description = "营业开始日期") |
| 98 | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") | 99 | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| 99 | private Date businessLicenseStartDate; | 100 | private Date businessLicenseStartDate; |
| 100 | 101 | ||
| 101 | /** | 102 | /** |
| 102 | * 营业结束日期 | 103 | * 营业结束日期 |
| 103 | */ | 104 | */ |
| ... | @@ -107,79 +108,79 @@ public class EnterpriseRSVO { | ... | @@ -107,79 +108,79 @@ public class EnterpriseRSVO { |
| 107 | 108 | ||
| 108 | @Schema(description = "营业日期范围") | 109 | @Schema(description = "营业日期范围") |
| 109 | private String businessLicenseStartEnd; | 110 | private String businessLicenseStartEnd; |
| 110 | 111 | ||
| 111 | /** | 112 | /** |
| 112 | * 营业执照 | 113 | * 营业执照 |
| 113 | */ | 114 | */ |
| 114 | @Schema(description = "营业执照") | 115 | @Schema(description = "营业执照") |
| 115 | private String businessLicenseJson; | 116 | private String businessLicenseJson; |
| 116 | 117 | ||
| 117 | /** | 118 | /** |
| 118 | * 营业执照经营范围 | 119 | * 营业执照经营范围 |
| 119 | */ | 120 | */ |
| 120 | @Schema(description = "营业执照经营范围") | 121 | @Schema(description = "营业执照经营范围") |
| 121 | private String businessLicenseScope; | 122 | private String businessLicenseScope; |
| 122 | 123 | ||
| 123 | /** | 124 | /** |
| 124 | * 公司法人 | 125 | * 公司法人 |
| 125 | */ | 126 | */ |
| 126 | @Schema(description = "公司法人") | 127 | @Schema(description = "公司法人") |
| 127 | private String juridicalPerson; | 128 | private String juridicalPerson; |
| 128 | 129 | ||
| 129 | /** | 130 | /** |
| 130 | * 法人证件类型 | 131 | * 法人证件类型 |
| 131 | */ | 132 | */ |
| 132 | @Schema(description = "法人证件类型") | 133 | @Schema(description = "法人证件类型") |
| 133 | private String juridicalPersonIdType; | 134 | private String juridicalPersonIdType; |
| 134 | 135 | ||
| 135 | /** | 136 | /** |
| 136 | * 法人证件号 | 137 | * 法人证件号 |
| 137 | */ | 138 | */ |
| 138 | @Schema(description = "法人证件号") | 139 | @Schema(description = "法人证件号") |
| 139 | private String juridicalPersonId; | 140 | private String juridicalPersonId; |
| 140 | 141 | ||
| 141 | /** | 142 | /** |
| 142 | * 法人证件照 | 143 | * 法人证件照 |
| 143 | */ | 144 | */ |
| 144 | @Schema(description = "法人证件照") | 145 | @Schema(description = "法人证件照") |
| 145 | private String juridicalPersonIdPhotoJson; | 146 | private String juridicalPersonIdPhotoJson; |
| 146 | 147 | ||
| 147 | /** | 148 | /** |
| 148 | * 登录账号 | 149 | * 登录账号 |
| 149 | */ | 150 | */ |
| 150 | @Schema(description = "登录账号") | 151 | @Schema(description = "登录账号") |
| 151 | private String logonUser; | 152 | private String logonUser; |
| 152 | 153 | ||
| 153 | /** | 154 | /** |
| 154 | * 联系人 | 155 | * 联系人 |
| 155 | */ | 156 | */ |
| 156 | @Schema(description = "联系人") | 157 | @Schema(description = "联系人") |
| 157 | private String contacts; | 158 | private String contacts; |
| 158 | 159 | ||
| 159 | /** | 160 | /** |
| 160 | * 联系人电话 | 161 | * 联系人电话 |
| 161 | */ | 162 | */ |
| 162 | @Schema(description = "联系人电话") | 163 | @Schema(description = "联系人电话") |
| 163 | private String contactTel; | 164 | private String contactTel; |
| 164 | 165 | ||
| 165 | /** | 166 | /** |
| 166 | * 管理员证件号 | 167 | * 管理员证件号 |
| 167 | */ | 168 | */ |
| 168 | @Schema(description = "管理员证件号") | 169 | @Schema(description = "管理员证件号") |
| 169 | private String managerPersonId; | 170 | private String managerPersonId; |
| 170 | 171 | ||
| 171 | /** | 172 | /** |
| 172 | * 管理员证件照 | 173 | * 管理员证件照 |
| 173 | */ | 174 | */ |
| 174 | @Schema(description = "管理员证件照") | 175 | @Schema(description = "管理员证件照") |
| 175 | private String managerPersonIdPhotoJson; | 176 | private String managerPersonIdPhotoJson; |
| 176 | 177 | ||
| 177 | /** | 178 | /** |
| 178 | * 授权委托书 | 179 | * 授权委托书 |
| 179 | */ | 180 | */ |
| 180 | @Schema(description = "授权委托书") | 181 | @Schema(description = "授权委托书") |
| 181 | private String authorizationLetter; | 182 | private String authorizationLetter; |
| 182 | 183 | ||
| 183 | /** | 184 | /** |
| 184 | * 业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃; 默认 N】 | 185 | * 业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃; 默认 N】 |
| 185 | */ | 186 | */ |
| ... | @@ -197,11 +198,21 @@ public class EnterpriseRSVO { | ... | @@ -197,11 +198,21 @@ public class EnterpriseRSVO { |
| 197 | */ | 198 | */ |
| 198 | @Schema(title = "跨平台审批状态(N 初始 A 审批中 Y 已通过 R 驳回 C 已撤销)") | 199 | @Schema(title = "跨平台审批状态(N 初始 A 审批中 Y 已通过 R 驳回 C 已撤销)") |
| 199 | private String crossPlatformApproveState; | 200 | private String crossPlatformApproveState; |
| 200 | 201 | ||
| 202 | @Schema(description = "组织机构性质") | ||
| 203 | private String institutionType; | ||
| 204 | |||
| 205 | @Schema(description = "组织机构性质名称") | ||
| 206 | @SystemParamsDict(dictTypeName = "组织机构性质", codeFieldName = "institutionType") | ||
| 207 | private String institutionTypeName; | ||
| 208 | |||
| 209 | @Schema(description = "详细地址") | ||
| 210 | private String detailedAddress; | ||
| 211 | |||
| 201 | /******** 库表存储属性 需处理 *****/ | 212 | /******** 库表存储属性 需处理 *****/ |
| 202 | 213 | ||
| 203 | /******** 自定义扩展 *****/ | 214 | /******** 自定义扩展 *****/ |
| 204 | 215 | ||
| 205 | /** | 216 | /** |
| 206 | * 审批信息 | 217 | * 审批信息 |
| 207 | */ | 218 | */ |
| ... | @@ -213,7 +224,13 @@ public class EnterpriseRSVO { | ... | @@ -213,7 +224,13 @@ public class EnterpriseRSVO { |
| 213 | 224 | ||
| 214 | @Schema(description = "变更前信息列表") | 225 | @Schema(description = "变更前信息列表") |
| 215 | private List<ChangeInfoVO> beforeChangeList; | 226 | private List<ChangeInfoVO> beforeChangeList; |
| 216 | 227 | ||
| 217 | /******** 子对象 *****/ | 228 | /******** 子对象 *****/ |
| 218 | 229 | ||
| 230 | @Schema(description = "开发主体附件信息返回参数") | ||
| 231 | private List<EnterpriseAttachmentRSVO> attachmentRSVOS; | ||
| 232 | |||
| 233 | @Schema(description = "开发主体领域信息返回参数") | ||
| 234 | private List<EnterpriseDomainRSVO> domainRSVOS; | ||
| 235 | |||
| 219 | } | 236 | } | ... | ... |
| 1 | package com.csbr.qingcloud.portal.feign; | ||
| 2 | |||
| 3 | import com.csbr.cloud.common.config.FastCallFeignConfiguration; | ||
| 4 | import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand; | ||
| 5 | import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty; | ||
| 6 | import org.springframework.cloud.openfeign.FeignClient; | ||
| 7 | import org.springframework.core.io.ByteArrayResource; | ||
| 8 | import org.springframework.http.MediaType; | ||
| 9 | import org.springframework.http.ResponseEntity; | ||
| 10 | import org.springframework.web.bind.annotation.RequestMapping; | ||
| 11 | import org.springframework.web.bind.annotation.RequestMethod; | ||
| 12 | import org.springframework.web.bind.annotation.RequestParam; | ||
| 13 | |||
| 14 | /** | ||
| 15 | * @program: | ||
| 16 | * @description: 公共服务调用 | ||
| 17 | * @author: lixiang | ||
| 18 | * @create: 2023-11-07 17:55 | ||
| 19 | **/ | ||
| 20 | @FeignClient(value = "ms-daop-common-service", configuration = FastCallFeignConfiguration.class) | ||
| 21 | public interface DaopCommonFeign { | ||
| 22 | /** | ||
| 23 | * 下载文件流 | ||
| 24 | * @param filePath | ||
| 25 | * @return | ||
| 26 | */ | ||
| 27 | @HystrixCommand(fallbackMethod = "CommonUtil.sleepFallback", commandProperties = | ||
| 28 | { | ||
| 29 | @HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds", value = "9000") | ||
| 30 | }) | ||
| 31 | @RequestMapping(value = "/obs/download-file-stream",method = RequestMethod.GET, produces = MediaType.APPLICATION_FORM_URLENCODED_VALUE) | ||
| 32 | ResponseEntity<ByteArrayResource> downloadFile(@RequestParam(value = "filePath", required = true) String filePath); | ||
| 33 | |||
| 34 | } |
| ... | @@ -26,149 +26,149 @@ public class MfEnterprise extends BaseDO { | ... | @@ -26,149 +26,149 @@ public class MfEnterprise extends BaseDO { |
| 26 | private String tenantGuid; | 26 | private String tenantGuid; |
| 27 | 27 | ||
| 28 | /** | 28 | /** |
| 29 | * 公司名称 | 29 | * 公司名称 |
| 30 | */ | 30 | */ |
| 31 | @Name("公司名称") | 31 | @Name("公司名称") |
| 32 | private String tenantName; | 32 | private String tenantName; |
| 33 | 33 | ||
| 34 | /** | 34 | /** |
| 35 | * 统一社会信用代码 | 35 | * 统一社会信用代码 |
| 36 | */ | 36 | */ |
| 37 | @Name("统一社会信用代码") | 37 | @Name("统一社会信用代码") |
| 38 | private String socialCreditCode; | 38 | private String socialCreditCode; |
| 39 | 39 | ||
| 40 | /** | 40 | /** |
| 41 | * 企业类型【选择平台字典【公司类型】的选项】 | 41 | * 企业类型【选择平台字典【公司类型】的选项】 |
| 42 | */ | 42 | */ |
| 43 | @Name("企业类型") | 43 | @Name("企业类型") |
| 44 | private String tenantType; | 44 | private String tenantType; |
| 45 | 45 | ||
| 46 | /** | 46 | /** |
| 47 | * 注册日期 | 47 | * 注册日期 |
| 48 | */ | 48 | */ |
| 49 | @Name("注册日期") | 49 | @Name("注册日期") |
| 50 | private Date registrationDate; | 50 | private Date registrationDate; |
| 51 | 51 | ||
| 52 | /** | 52 | /** |
| 53 | * 注册资本【(万元)】 | 53 | * 注册资本【(万元)】 |
| 54 | */ | 54 | */ |
| 55 | @Name("注册资本") | 55 | @Name("注册资本") |
| 56 | private BigDecimal registeredCapital; | 56 | private BigDecimal registeredCapital; |
| 57 | 57 | ||
| 58 | /** | 58 | /** |
| 59 | * 税号 | 59 | * 税号 |
| 60 | */ | 60 | */ |
| 61 | @Name("税号") | 61 | @Name("税号") |
| 62 | private String bankTaxNo; | 62 | private String bankTaxNo; |
| 63 | 63 | ||
| 64 | /** | 64 | /** |
| 65 | * 省 | 65 | * 省 |
| 66 | */ | 66 | */ |
| 67 | @Name("省") | 67 | @Name("省") |
| 68 | private String province; | 68 | private String province; |
| 69 | 69 | ||
| 70 | /** | 70 | /** |
| 71 | * 市 | 71 | * 市 |
| 72 | */ | 72 | */ |
| 73 | @Name("市") | 73 | @Name("市") |
| 74 | private String city; | 74 | private String city; |
| 75 | 75 | ||
| 76 | /** | 76 | /** |
| 77 | * 区 | 77 | * 区 |
| 78 | */ | 78 | */ |
| 79 | @Name("区") | 79 | @Name("区") |
| 80 | private String district; | 80 | private String district; |
| 81 | 81 | ||
| 82 | /** | 82 | /** |
| 83 | * 营业期限【1 长期有效;2 自定义】 | 83 | * 营业期限【1 长期有效;2 自定义】 |
| 84 | */ | 84 | */ |
| 85 | @Name("营业期限") | 85 | @Name("营业期限") |
| 86 | private String businessLicenseTerm; | 86 | private String businessLicenseTerm; |
| 87 | 87 | ||
| 88 | /** | 88 | /** |
| 89 | * 营业开始日期 | 89 | * 营业开始日期 |
| 90 | */ | 90 | */ |
| 91 | @Name("营业开始日期") | 91 | @Name("营业开始日期") |
| 92 | private Date businessLicenseStartDate; | 92 | private Date businessLicenseStartDate; |
| 93 | 93 | ||
| 94 | /** | 94 | /** |
| 95 | * 营业结束日期 | 95 | * 营业结束日期 |
| 96 | */ | 96 | */ |
| 97 | @Name("营业结束日期") | 97 | @Name("营业结束日期") |
| 98 | private Date businessLicenseEndDate; | 98 | private Date businessLicenseEndDate; |
| 99 | 99 | ||
| 100 | /** | 100 | /** |
| 101 | * 营业执照 | 101 | * 营业执照 |
| 102 | */ | 102 | */ |
| 103 | @Name("营业执照") | 103 | @Name("营业执照") |
| 104 | @TableField(updateStrategy = FieldStrategy.ALWAYS) | 104 | @TableField(updateStrategy = FieldStrategy.ALWAYS) |
| 105 | private String businessLicenseJson; | 105 | private String businessLicenseJson; |
| 106 | 106 | ||
| 107 | /** | 107 | /** |
| 108 | * 经营范围 | 108 | * 经营范围 |
| 109 | */ | 109 | */ |
| 110 | @Name("经营范围") | 110 | @Name("经营范围") |
| 111 | private String businessLicenseScope; | 111 | private String businessLicenseScope; |
| 112 | 112 | ||
| 113 | /** | 113 | /** |
| 114 | * 公司法人 | 114 | * 公司法人 |
| 115 | */ | 115 | */ |
| 116 | @Name("公司法人") | 116 | @Name("公司法人") |
| 117 | private String juridicalPerson; | 117 | private String juridicalPerson; |
| 118 | 118 | ||
| 119 | /** | 119 | /** |
| 120 | * 法人证件类型 | 120 | * 法人证件类型 |
| 121 | */ | 121 | */ |
| 122 | @Name("法人证件类型") | 122 | @Name("法人证件类型") |
| 123 | private String juridicalPersonIdType; | 123 | private String juridicalPersonIdType; |
| 124 | 124 | ||
| 125 | /** | 125 | /** |
| 126 | * 法人证件号 | 126 | * 法人证件号 |
| 127 | */ | 127 | */ |
| 128 | @Name("法人证件号") | 128 | @Name("法人证件号") |
| 129 | private String juridicalPersonId; | 129 | private String juridicalPersonId; |
| 130 | 130 | ||
| 131 | /** | 131 | /** |
| 132 | * 法人证件照 | 132 | * 法人证件照 |
| 133 | */ | 133 | */ |
| 134 | @Name("法人证件照") | 134 | @Name("法人证件照") |
| 135 | @TableField(updateStrategy = FieldStrategy.ALWAYS) | 135 | @TableField(updateStrategy = FieldStrategy.ALWAYS) |
| 136 | private String juridicalPersonIdPhotoJson; | 136 | private String juridicalPersonIdPhotoJson; |
| 137 | 137 | ||
| 138 | /** | 138 | /** |
| 139 | * 登录账号 | 139 | * 登录账号 |
| 140 | */ | 140 | */ |
| 141 | @Name("登录账号") | 141 | @Name("登录账号") |
| 142 | private String logonUser; | 142 | private String logonUser; |
| 143 | 143 | ||
| 144 | /** | 144 | /** |
| 145 | * 联系人 | 145 | * 联系人 |
| 146 | */ | 146 | */ |
| 147 | @Name("联系人") | 147 | @Name("联系人") |
| 148 | private String contacts; | 148 | private String contacts; |
| 149 | 149 | ||
| 150 | /** | 150 | /** |
| 151 | * 联系人电话 | 151 | * 联系人电话 |
| 152 | */ | 152 | */ |
| 153 | @Name("联系人电话") | 153 | @Name("联系人电话") |
| 154 | private String contactTel; | 154 | private String contactTel; |
| 155 | 155 | ||
| 156 | /** | 156 | /** |
| 157 | * 管理员证件号 | 157 | * 管理员证件号 |
| 158 | */ | 158 | */ |
| 159 | @Name("管理员证件号") | 159 | @Name("管理员证件号") |
| 160 | private String managerPersonId; | 160 | private String managerPersonId; |
| 161 | 161 | ||
| 162 | /** | 162 | /** |
| 163 | * 管理员证件照 | 163 | * 管理员证件照 |
| 164 | */ | 164 | */ |
| 165 | @Name("管理员证件照") | 165 | @Name("管理员证件照") |
| 166 | @TableField(updateStrategy = FieldStrategy.ALWAYS) | 166 | @TableField(updateStrategy = FieldStrategy.ALWAYS) |
| 167 | private String managerPersonIdPhotoJson; | 167 | private String managerPersonIdPhotoJson; |
| 168 | 168 | ||
| 169 | /** | 169 | /** |
| 170 | * 授权委托书 | 170 | * 授权委托书 |
| 171 | */ | 171 | */ |
| 172 | @Name("授权委托书") | 172 | @Name("授权委托书") |
| 173 | private String authorizationLetter; | 173 | private String authorizationLetter; |
| 174 | 174 | ||
| ... | @@ -180,11 +180,16 @@ public class MfEnterprise extends BaseDO { | ... | @@ -180,11 +180,16 @@ public class MfEnterprise extends BaseDO { |
| 180 | 180 | ||
| 181 | @Name("审批状态(N 初始 A 审批中 Y 已通过 R 驳回 C 已撤销)") | 181 | @Name("审批状态(N 初始 A 审批中 Y 已通过 R 驳回 C 已撤销)") |
| 182 | private String crossPlatformApproveState; | 182 | private String crossPlatformApproveState; |
| 183 | 183 | ||
| 184 | /** | 184 | /** |
| 185 | * 业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃; 默认 N】 | 185 | * 业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃; 默认 N】 |
| 186 | */ | 186 | */ |
| 187 | @Name("业务审批状态") | 187 | @Name("业务审批状态") |
| 188 | private String bizApproveState; | 188 | private String bizApproveState; |
| 189 | 189 | ||
| 190 | @Name("组织机构性质") | ||
| 191 | private String institutionType; | ||
| 192 | |||
| 193 | @Name("详细地址") | ||
| 194 | private String detailedAddress; | ||
| 190 | } | 195 | } | ... | ... |
| ... | @@ -26,167 +26,167 @@ public class MfEnterpriseChangeApprove extends BaseDO { | ... | @@ -26,167 +26,167 @@ public class MfEnterpriseChangeApprove extends BaseDO { |
| 26 | private String tenantGuid; | 26 | private String tenantGuid; |
| 27 | 27 | ||
| 28 | /** | 28 | /** |
| 29 | * 公司名称 | 29 | * 公司名称 |
| 30 | */ | 30 | */ |
| 31 | @Name("公司名称") | 31 | @Name("公司名称") |
| 32 | private String tenantName; | 32 | private String tenantName; |
| 33 | 33 | ||
| 34 | /** | 34 | /** |
| 35 | * 统一社会信用代码 | 35 | * 统一社会信用代码 |
| 36 | */ | 36 | */ |
| 37 | @Name("统一社会信用代码") | 37 | @Name("统一社会信用代码") |
| 38 | private String socialCreditCode; | 38 | private String socialCreditCode; |
| 39 | 39 | ||
| 40 | /** | 40 | /** |
| 41 | * 企业类型【选择平台字典【公司类型】的选项】 | 41 | * 企业类型【选择平台字典【公司类型】的选项】 |
| 42 | */ | 42 | */ |
| 43 | @Name("企业类型") | 43 | @Name("企业类型") |
| 44 | private String tenantType; | 44 | private String tenantType; |
| 45 | 45 | ||
| 46 | /** | 46 | /** |
| 47 | * 注册日期 | 47 | * 注册日期 |
| 48 | */ | 48 | */ |
| 49 | @Name("注册日期") | 49 | @Name("注册日期") |
| 50 | private Date registrationDate; | 50 | private Date registrationDate; |
| 51 | 51 | ||
| 52 | /** | 52 | /** |
| 53 | * 注册资本【(万元)】 | 53 | * 注册资本【(万元)】 |
| 54 | */ | 54 | */ |
| 55 | @Name("注册资本") | 55 | @Name("注册资本") |
| 56 | private BigDecimal registeredCapital; | 56 | private BigDecimal registeredCapital; |
| 57 | 57 | ||
| 58 | /** | 58 | /** |
| 59 | * 税号 | 59 | * 税号 |
| 60 | */ | 60 | */ |
| 61 | @Name("税号") | 61 | @Name("税号") |
| 62 | private String bankTaxNo; | 62 | private String bankTaxNo; |
| 63 | 63 | ||
| 64 | /** | 64 | /** |
| 65 | * 省 | 65 | * 省 |
| 66 | */ | 66 | */ |
| 67 | @Name("省") | 67 | @Name("省") |
| 68 | private String province; | 68 | private String province; |
| 69 | 69 | ||
| 70 | /** | 70 | /** |
| 71 | * 市 | 71 | * 市 |
| 72 | */ | 72 | */ |
| 73 | @Name("市") | 73 | @Name("市") |
| 74 | private String city; | 74 | private String city; |
| 75 | 75 | ||
| 76 | /** | 76 | /** |
| 77 | * 区 | 77 | * 区 |
| 78 | */ | 78 | */ |
| 79 | @Name("区") | 79 | @Name("区") |
| 80 | private String district; | 80 | private String district; |
| 81 | 81 | ||
| 82 | /** | 82 | /** |
| 83 | * 营业期限【1 长期有效;2 自定义】 | 83 | * 营业期限【1 长期有效;2 自定义】 |
| 84 | */ | 84 | */ |
| 85 | @Name("营业期限") | 85 | @Name("营业期限") |
| 86 | private String businessLicenseTerm; | 86 | private String businessLicenseTerm; |
| 87 | 87 | ||
| 88 | /** | 88 | /** |
| 89 | * 营业开始日期 | 89 | * 营业开始日期 |
| 90 | */ | 90 | */ |
| 91 | @Name("营业开始日期") | 91 | @Name("营业开始日期") |
| 92 | private Date businessLicenseStartDate; | 92 | private Date businessLicenseStartDate; |
| 93 | 93 | ||
| 94 | /** | 94 | /** |
| 95 | * 营业结束日期 | 95 | * 营业结束日期 |
| 96 | */ | 96 | */ |
| 97 | @Name("营业结束日期") | 97 | @Name("营业结束日期") |
| 98 | private Date businessLicenseEndDate; | 98 | private Date businessLicenseEndDate; |
| 99 | 99 | ||
| 100 | /** | 100 | /** |
| 101 | * 营业执照 | 101 | * 营业执照 |
| 102 | */ | 102 | */ |
| 103 | @Name("营业执照") | 103 | @Name("营业执照") |
| 104 | @TableField(updateStrategy = FieldStrategy.ALWAYS) | 104 | @TableField(updateStrategy = FieldStrategy.ALWAYS) |
| 105 | private String businessLicenseJson; | 105 | private String businessLicenseJson; |
| 106 | 106 | ||
| 107 | /** | 107 | /** |
| 108 | * 营业执照经营范围 | 108 | * 营业执照经营范围 |
| 109 | */ | 109 | */ |
| 110 | @Name("营业执照经营范围") | 110 | @Name("营业执照经营范围") |
| 111 | private String businessLicenseScope; | 111 | private String businessLicenseScope; |
| 112 | 112 | ||
| 113 | /** | 113 | /** |
| 114 | * 公司法人 | 114 | * 公司法人 |
| 115 | */ | 115 | */ |
| 116 | @Name("公司法人") | 116 | @Name("公司法人") |
| 117 | private String juridicalPerson; | 117 | private String juridicalPerson; |
| 118 | 118 | ||
| 119 | /** | 119 | /** |
| 120 | * 法人证件类型 | 120 | * 法人证件类型 |
| 121 | */ | 121 | */ |
| 122 | @Name("法人证件类型") | 122 | @Name("法人证件类型") |
| 123 | private String juridicalPersonIdType; | 123 | private String juridicalPersonIdType; |
| 124 | 124 | ||
| 125 | /** | 125 | /** |
| 126 | * 法人证件号 | 126 | * 法人证件号 |
| 127 | */ | 127 | */ |
| 128 | @Name("法人证件号") | 128 | @Name("法人证件号") |
| 129 | private String juridicalPersonId; | 129 | private String juridicalPersonId; |
| 130 | 130 | ||
| 131 | /** | 131 | /** |
| 132 | * 法人证件照 | 132 | * 法人证件照 |
| 133 | */ | 133 | */ |
| 134 | @Name("法人证件照") | 134 | @Name("法人证件照") |
| 135 | @TableField(updateStrategy = FieldStrategy.ALWAYS) | 135 | @TableField(updateStrategy = FieldStrategy.ALWAYS) |
| 136 | private String juridicalPersonIdPhotoJson; | 136 | private String juridicalPersonIdPhotoJson; |
| 137 | 137 | ||
| 138 | /** | 138 | /** |
| 139 | * 登录账号 | 139 | * 登录账号 |
| 140 | */ | 140 | */ |
| 141 | @Name("登录账号") | 141 | @Name("登录账号") |
| 142 | private String logonUser; | 142 | private String logonUser; |
| 143 | 143 | ||
| 144 | /** | 144 | /** |
| 145 | * 联系人 | 145 | * 联系人 |
| 146 | */ | 146 | */ |
| 147 | @Name("联系人") | 147 | @Name("联系人") |
| 148 | private String contacts; | 148 | private String contacts; |
| 149 | 149 | ||
| 150 | /** | 150 | /** |
| 151 | * 联系人电话 | 151 | * 联系人电话 |
| 152 | */ | 152 | */ |
| 153 | @Name("联系人电话") | 153 | @Name("联系人电话") |
| 154 | private String contactTel; | 154 | private String contactTel; |
| 155 | 155 | ||
| 156 | /** | 156 | /** |
| 157 | * 管理员证件号 | 157 | * 管理员证件号 |
| 158 | */ | 158 | */ |
| 159 | @Name("管理员证件号") | 159 | @Name("管理员证件号") |
| 160 | private String managerPersonId; | 160 | private String managerPersonId; |
| 161 | 161 | ||
| 162 | /** | 162 | /** |
| 163 | * 管理员证件照 | 163 | * 管理员证件照 |
| 164 | */ | 164 | */ |
| 165 | @Name("管理员证件照") | 165 | @Name("管理员证件照") |
| 166 | @TableField(updateStrategy = FieldStrategy.ALWAYS) | 166 | @TableField(updateStrategy = FieldStrategy.ALWAYS) |
| 167 | private String managerPersonIdPhotoJson; | 167 | private String managerPersonIdPhotoJson; |
| 168 | 168 | ||
| 169 | /** | 169 | /** |
| 170 | * 授权委托书 | 170 | * 授权委托书 |
| 171 | */ | 171 | */ |
| 172 | @Name("授权委托书") | 172 | @Name("授权委托书") |
| 173 | private String authorizationLetter; | 173 | private String authorizationLetter; |
| 174 | 174 | ||
| 175 | /** | 175 | /** |
| 176 | * 业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃; 默认 N】 | 176 | * 业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃; 默认 N】 |
| 177 | */ | 177 | */ |
| 178 | @Name("业务审批状态") | 178 | @Name("业务审批状态") |
| 179 | private String bizApproveState; | 179 | private String bizApproveState; |
| 180 | 180 | ||
| 181 | /** | 181 | /** |
| 182 | * 审批流唯一标识 | 182 | * 审批流唯一标识 |
| 183 | */ | 183 | */ |
| 184 | @Name("审批流唯一标识") | 184 | @Name("审批流唯一标识") |
| 185 | private String approveGuid; | 185 | private String approveGuid; |
| 186 | 186 | ||
| 187 | /** | 187 | /** |
| 188 | * 原数据唯一标识 | 188 | * 原数据唯一标识 |
| 189 | */ | 189 | */ |
| 190 | @Name("原数据唯一标识") | 190 | @Name("原数据唯一标识") |
| 191 | private String sourceGuid; | 191 | private String sourceGuid; |
| 192 | 192 | ||
| ... | @@ -198,11 +198,17 @@ public class MfEnterpriseChangeApprove extends BaseDO { | ... | @@ -198,11 +198,17 @@ public class MfEnterpriseChangeApprove extends BaseDO { |
| 198 | 198 | ||
| 199 | @Name("审批状态(N 初始 A 审批中 Y 已通过 R 驳回 C 已撤销)") | 199 | @Name("审批状态(N 初始 A 审批中 Y 已通过 R 驳回 C 已撤销)") |
| 200 | private String crossPlatformApproveState; | 200 | private String crossPlatformApproveState; |
| 201 | 201 | ||
| 202 | /** | 202 | /** |
| 203 | * 数据类型【数据类型 1原数据 2新数据 0认证表数据】 | 203 | * 数据类型【数据类型 1原数据 2新数据 0认证表数据】 |
| 204 | */ | 204 | */ |
| 205 | @Name("数据类型") | 205 | @Name("数据类型") |
| 206 | private String dataType; | 206 | private String dataType; |
| 207 | 207 | ||
| 208 | @Name("组织机构性质") | ||
| 209 | private String institutionType; | ||
| 210 | |||
| 211 | @Name("详细地址") | ||
| 212 | private String detailedAddress; | ||
| 213 | |||
| 208 | } | 214 | } | ... | ... |
| ... | @@ -9,7 +9,7 @@ import com.csbr.qingcloud.portal.domain.vo.EnterpriseAttachmentRSVO; | ... | @@ -9,7 +9,7 @@ import com.csbr.qingcloud.portal.domain.vo.EnterpriseAttachmentRSVO; |
| 9 | import java.util.List; | 9 | import java.util.List; |
| 10 | 10 | ||
| 11 | /** | 11 | /** |
| 12 | * @program: | 12 | * @program: |
| 13 | * @description: 开发主体附件信息业务逻辑接口 | 13 | * @description: 开发主体附件信息业务逻辑接口 |
| 14 | * @author: makejava | 14 | * @author: makejava |
| 15 | * @create: 2025-09-05 13:50 | 15 | * @create: 2025-09-05 13:50 |
| ... | @@ -83,4 +83,27 @@ public interface EnterpriseAttachmentService { | ... | @@ -83,4 +83,27 @@ public interface EnterpriseAttachmentService { |
| 83 | * @return | 83 | * @return |
| 84 | */ | 84 | */ |
| 85 | String getEnterpriseAttachmentUrl(String fileId); | 85 | String getEnterpriseAttachmentUrl(String fileId); |
| 86 | |||
| 87 | /** | ||
| 88 | * 批量新增开发主体附件信息 | ||
| 89 | * @param attachmentRQVOS | ||
| 90 | * @param guid | ||
| 91 | * @param isRequired | ||
| 92 | */ | ||
| 93 | void batchSave(List<EnterpriseAttachmentRQVO> attachmentRQVOS, String guid, Boolean isRequired); | ||
| 94 | |||
| 95 | /** | ||
| 96 | * 删除开发主体附件信息 | ||
| 97 | * @param enterpriseGuids | ||
| 98 | */ | ||
| 99 | void removeByEnterpriseGuids(List<String> enterpriseGuids); | ||
| 100 | |||
| 101 | /** | ||
| 102 | * 批量修改开发主体附件信息 | ||
| 103 | * @param attachmentRQVOS | ||
| 104 | * @param guid | ||
| 105 | * @param isRequired | ||
| 106 | */ | ||
| 107 | void batchUpdate(List<EnterpriseAttachmentRQVO> attachmentRQVOS, String guid, Boolean isRequired); | ||
| 108 | |||
| 86 | } | 109 | } | ... | ... |
| 1 | package com.csbr.qingcloud.portal.service; | 1 | package com.csbr.qingcloud.portal.service; |
| 2 | 2 | ||
| 3 | import csbr.cloud.entity.domain.base.vo.PageListVO; | ||
| 4 | import com.csbr.qingcloud.portal.domain.vo.EnterpriseDomainQueryVO; | 3 | import com.csbr.qingcloud.portal.domain.vo.EnterpriseDomainQueryVO; |
| 5 | import com.csbr.qingcloud.portal.domain.vo.EnterpriseDomainRQVO; | 4 | import com.csbr.qingcloud.portal.domain.vo.EnterpriseDomainRQVO; |
| 6 | import com.csbr.qingcloud.portal.domain.vo.EnterpriseDomainRSVO; | 5 | import com.csbr.qingcloud.portal.domain.vo.EnterpriseDomainRSVO; |
| 6 | import csbr.cloud.entity.domain.base.vo.PageListVO; | ||
| 7 | 7 | ||
| 8 | import java.util.List; | 8 | import java.util.List; |
| 9 | 9 | ||
| 10 | /** | 10 | /** |
| 11 | * @program: | 11 | * @program: |
| 12 | * @description: 开发主体领域信息业务逻辑接口 | 12 | * @description: 开发主体领域信息业务逻辑接口 |
| 13 | * @author: makejava | 13 | * @author: makejava |
| 14 | * @create: 2025-09-12 11:02 | 14 | * @create: 2025-09-12 11:02 |
| ... | @@ -68,5 +68,24 @@ public interface EnterpriseDomainService { | ... | @@ -68,5 +68,24 @@ public interface EnterpriseDomainService { |
| 68 | * @return void | 68 | * @return void |
| 69 | */ | 69 | */ |
| 70 | void removeHandleByGuids(List<String> guids); | 70 | void removeHandleByGuids(List<String> guids); |
| 71 | 71 | ||
| 72 | /** | ||
| 73 | * 批量新增开发主体领域信息 | ||
| 74 | * @param domainRQVOS | ||
| 75 | * @param guid | ||
| 76 | */ | ||
| 77 | void batchSave(List<EnterpriseDomainRQVO> domainRQVOS, String guid); | ||
| 78 | |||
| 79 | /** | ||
| 80 | * 删除开发主体领域信息 | ||
| 81 | * @param enterpriseGuids | ||
| 82 | */ | ||
| 83 | void removeByEnterpriseGuids(List<String> enterpriseGuids); | ||
| 84 | |||
| 85 | /** | ||
| 86 | * 批量新增开发主体领域信息 | ||
| 87 | * @param domainRQVOS | ||
| 88 | * @param guid | ||
| 89 | */ | ||
| 90 | void batchUpdate(List<EnterpriseDomainRQVO> domainRQVOS, String guid); | ||
| 72 | } | 91 | } | ... | ... |
| 1 | package com.csbr.qingcloud.portal.service.impl; | 1 | package com.csbr.qingcloud.portal.service.impl; |
| 2 | 2 | ||
| 3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | 3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| 4 | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; | ||
| 4 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; | 5 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| 5 | import com.csbr.cloud.common.enums.SystemError; | 6 | import com.csbr.cloud.common.enums.SystemError; |
| 6 | import com.csbr.cloud.common.exception.CsbrSystemException; | 7 | import com.csbr.cloud.common.exception.CsbrSystemException; |
| ... | @@ -8,6 +9,7 @@ import com.csbr.cloud.common.util.CommonUtil; | ... | @@ -8,6 +9,7 @@ import com.csbr.cloud.common.util.CommonUtil; |
| 8 | import com.csbr.cloud.common.util.CsbrBeanUtil; | 9 | import com.csbr.cloud.common.util.CsbrBeanUtil; |
| 9 | import com.csbr.cloud.common.util.MessageSourceUtil; | 10 | import com.csbr.cloud.common.util.MessageSourceUtil; |
| 10 | import com.csbr.qingcloud.portal.domain.vo.dataExchange.*; | 11 | import com.csbr.qingcloud.portal.domain.vo.dataExchange.*; |
| 12 | import com.csbr.qingcloud.portal.feign.DaopCommonFeign; | ||
| 11 | import com.csbr.qingcloud.portal.mybatis.entity.MfEnterprise; | 13 | import com.csbr.qingcloud.portal.mybatis.entity.MfEnterprise; |
| 12 | import com.csbr.qingcloud.portal.mybatis.service.MfEnterpriseService; | 14 | import com.csbr.qingcloud.portal.mybatis.service.MfEnterpriseService; |
| 13 | import csbr.cloud.entity.domain.base.vo.PageListVO; | 15 | import csbr.cloud.entity.domain.base.vo.PageListVO; |
| ... | @@ -17,21 +19,30 @@ import com.csbr.qingcloud.portal.domain.vo.EnterpriseAttachmentRSVO; | ... | @@ -17,21 +19,30 @@ import com.csbr.qingcloud.portal.domain.vo.EnterpriseAttachmentRSVO; |
| 17 | import com.csbr.qingcloud.portal.mybatis.entity.MfEnterpriseAttachment; | 19 | import com.csbr.qingcloud.portal.mybatis.entity.MfEnterpriseAttachment; |
| 18 | import com.csbr.qingcloud.portal.mybatis.service.MfEnterpriseAttachmentService; | 20 | import com.csbr.qingcloud.portal.mybatis.service.MfEnterpriseAttachmentService; |
| 19 | import com.csbr.qingcloud.portal.service.EnterpriseAttachmentService; | 21 | import com.csbr.qingcloud.portal.service.EnterpriseAttachmentService; |
| 22 | import csbr.cloud.entity.domain.easyexcel.MockMultipartFile; | ||
| 20 | import csbr.cloud.entity.enums.ApprovalStateEnum; | 23 | import csbr.cloud.entity.enums.ApprovalStateEnum; |
| 21 | import jakarta.annotation.Resource; | 24 | import jakarta.annotation.Resource; |
| 22 | import lombok.extern.slf4j.Slf4j; | 25 | import lombok.extern.slf4j.Slf4j; |
| 23 | import org.apache.commons.collections.CollectionUtils; | 26 | import org.apache.commons.collections.CollectionUtils; |
| 24 | import org.apache.commons.lang3.ObjectUtils; | 27 | import org.apache.commons.lang3.ObjectUtils; |
| 25 | import org.apache.commons.lang3.StringUtils; | 28 | import org.apache.commons.lang3.StringUtils; |
| 29 | import org.springframework.core.io.ByteArrayResource; | ||
| 30 | import org.springframework.http.HttpStatus; | ||
| 31 | import org.springframework.http.ResponseEntity; | ||
| 26 | import org.springframework.stereotype.Service; | 32 | import org.springframework.stereotype.Service; |
| 27 | import org.springframework.transaction.annotation.Transactional; | 33 | import org.springframework.transaction.annotation.Transactional; |
| 34 | import org.springframework.web.multipart.MultipartFile; | ||
| 28 | 35 | ||
| 36 | import java.math.BigDecimal; | ||
| 37 | import java.net.URLDecoder; | ||
| 38 | import java.nio.charset.StandardCharsets; | ||
| 29 | import java.util.ArrayList; | 39 | import java.util.ArrayList; |
| 30 | import java.util.Collections; | 40 | import java.util.Collections; |
| 31 | import java.util.List; | 41 | import java.util.List; |
| 42 | import java.util.Locale; | ||
| 32 | 43 | ||
| 33 | /** | 44 | /** |
| 34 | * @program: | 45 | * @program: |
| 35 | * @description: 开发主体附件信息业务逻辑实现 | 46 | * @description: 开发主体附件信息业务逻辑实现 |
| 36 | * @author: makejava | 47 | * @author: makejava |
| 37 | * @create: 2025-09-05 13:50 | 48 | * @create: 2025-09-05 13:50 |
| ... | @@ -39,7 +50,7 @@ import java.util.List; | ... | @@ -39,7 +50,7 @@ import java.util.List; |
| 39 | @Slf4j | 50 | @Slf4j |
| 40 | @Service | 51 | @Service |
| 41 | public class EnterpriseAttachmentServiceImpl implements EnterpriseAttachmentService { | 52 | public class EnterpriseAttachmentServiceImpl implements EnterpriseAttachmentService { |
| 42 | 53 | ||
| 43 | /** | 54 | /** |
| 44 | * 功能名称 | 55 | * 功能名称 |
| 45 | */ | 56 | */ |
| ... | @@ -57,6 +68,9 @@ public class EnterpriseAttachmentServiceImpl implements EnterpriseAttachmentServ | ... | @@ -57,6 +68,9 @@ public class EnterpriseAttachmentServiceImpl implements EnterpriseAttachmentServ |
| 57 | @Resource | 68 | @Resource |
| 58 | private MfEnterpriseService mfEnterpriseService; | 69 | private MfEnterpriseService mfEnterpriseService; |
| 59 | 70 | ||
| 71 | @Resource | ||
| 72 | private DaopCommonFeign daopCommonFeign; | ||
| 73 | |||
| 60 | /** | 74 | /** |
| 61 | * 开发主体附件信息分页查询 | 75 | * 开发主体附件信息分页查询 |
| 62 | * @author makejava | 76 | * @author makejava |
| ... | @@ -266,6 +280,59 @@ public class EnterpriseAttachmentServiceImpl implements EnterpriseAttachmentServ | ... | @@ -266,6 +280,59 @@ public class EnterpriseAttachmentServiceImpl implements EnterpriseAttachmentServ |
| 266 | return null; | 280 | return null; |
| 267 | } | 281 | } |
| 268 | 282 | ||
| 283 | @Override | ||
| 284 | @Transactional | ||
| 285 | public void batchSave(List<EnterpriseAttachmentRQVO> attachmentRQVOS, String guid, Boolean isRequired) { | ||
| 286 | if (ObjectUtils.isNotEmpty(attachmentRQVOS)) { | ||
| 287 | List<MfEnterpriseAttachment> attachmentList = new ArrayList<>(); | ||
| 288 | for (EnterpriseAttachmentRQVO attachmentRQVO : attachmentRQVOS) { | ||
| 289 | attachmentRQVO.setEnterpriseGuid(guid); | ||
| 290 | // 获取文件大小 | ||
| 291 | // 下载文件流 | ||
| 292 | String fileUrl = attachmentRQVO.getFileUrl(); | ||
| 293 | String url = URLDecoder.decode(fileUrl.split("\\?AccessKeyId")[0], StandardCharsets.UTF_8); | ||
| 294 | String fileName = attachmentRQVO.getFileName().split("\\.")[0]; | ||
| 295 | MultipartFile multipartFile = null; | ||
| 296 | ResponseEntity<ByteArrayResource> responseEntity = daopCommonFeign.downloadFile(url); | ||
| 297 | if (HttpStatus.OK.equals(responseEntity.getStatusCode()) && ObjectUtils.isNotEmpty(responseEntity.getBody())) { | ||
| 298 | multipartFile = new MockMultipartFile(fileName, fileName, "application/octet-stream", responseEntity.getBody().getByteArray()); | ||
| 299 | } | ||
| 300 | if (multipartFile == null || multipartFile.isEmpty()) { | ||
| 301 | attachmentRQVO.setFileSize(BigDecimal.ZERO); | ||
| 302 | } else { | ||
| 303 | attachmentRQVO.setFileSize(BigDecimal.valueOf(multipartFile.getSize() / 1024.0)); | ||
| 304 | } | ||
| 305 | attachmentRQVO.setFileId("enterprise_" + CommonUtil.newGuid().toUpperCase(Locale.ROOT)); | ||
| 306 | |||
| 307 | MfEnterpriseAttachment mfEnterpriseAttachment = convertToEntity(attachmentRQVO); | ||
| 308 | mfEnterpriseAttachmentService.csbrAddEntity(mfEnterpriseAttachment); | ||
| 309 | attachmentList.add(mfEnterpriseAttachment); | ||
| 310 | } | ||
| 311 | mfEnterpriseAttachmentService.saveBatch(attachmentList); | ||
| 312 | } | ||
| 313 | } | ||
| 314 | |||
| 315 | @Transactional | ||
| 316 | @Override | ||
| 317 | public void removeByEnterpriseGuids(List<String> enterpriseGuids) { | ||
| 318 | if (CollectionUtils.isEmpty(enterpriseGuids)) { | ||
| 319 | return; | ||
| 320 | } | ||
| 321 | LambdaUpdateWrapper<MfEnterpriseAttachment> updateWrapper = Wrappers.lambdaUpdate(MfEnterpriseAttachment.class); | ||
| 322 | updateWrapper.in(MfEnterpriseAttachment::getEnterpriseGuid, enterpriseGuids); | ||
| 323 | mfEnterpriseAttachmentService.remove(updateWrapper); | ||
| 324 | } | ||
| 325 | |||
| 326 | @Override | ||
| 327 | @Transactional | ||
| 328 | public void batchUpdate(List<EnterpriseAttachmentRQVO> attachmentRQVOS, String guid, Boolean isRequired) { | ||
| 329 | // 删除开发主体附件信息 | ||
| 330 | removeByEnterpriseGuids(Collections.singletonList(guid)); | ||
| 331 | |||
| 332 | // 批量新增开发主体附件信息 | ||
| 333 | batchSave(attachmentRQVOS, guid, isRequired); | ||
| 334 | } | ||
| 335 | |||
| 269 | /** | 336 | /** |
| 270 | * 开发主体附件信息新新增前置处理 | 337 | * 开发主体附件信息新新增前置处理 |
| 271 | * @author makejava | 338 | * @author makejava |
| ... | @@ -422,7 +489,7 @@ public class EnterpriseAttachmentServiceImpl implements EnterpriseAttachmentServ | ... | @@ -422,7 +489,7 @@ public class EnterpriseAttachmentServiceImpl implements EnterpriseAttachmentServ |
| 422 | * @return void | 489 | * @return void |
| 423 | */ | 490 | */ |
| 424 | private void beforeQuery(EnterpriseAttachmentQueryVO rqQueryVO) { | 491 | private void beforeQuery(EnterpriseAttachmentQueryVO rqQueryVO) { |
| 425 | 492 | ||
| 426 | } | 493 | } |
| 427 | 494 | ||
| 428 | /** | 495 | /** |
| ... | @@ -470,7 +537,7 @@ public class EnterpriseAttachmentServiceImpl implements EnterpriseAttachmentServ | ... | @@ -470,7 +537,7 @@ public class EnterpriseAttachmentServiceImpl implements EnterpriseAttachmentServ |
| 470 | } | 537 | } |
| 471 | return voList; | 538 | return voList; |
| 472 | } | 539 | } |
| 473 | 540 | ||
| 474 | /** | 541 | /** |
| 475 | * 开发主体附件信息实体数据转换为视图对象数据 | 542 | * 开发主体附件信息实体数据转换为视图对象数据 |
| 476 | * @author makejava | 543 | * @author makejava |
| ... | @@ -500,5 +567,5 @@ public class EnterpriseAttachmentServiceImpl implements EnterpriseAttachmentServ | ... | @@ -500,5 +567,5 @@ public class EnterpriseAttachmentServiceImpl implements EnterpriseAttachmentServ |
| 500 | } | 567 | } |
| 501 | 568 | ||
| 502 | //endregion | 569 | //endregion |
| 503 | 570 | ||
| 504 | } | 571 | } | ... | ... |
| 1 | package com.csbr.qingcloud.portal.service.impl; | 1 | package com.csbr.qingcloud.portal.service.impl; |
| 2 | 2 | ||
| 3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | 3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| 4 | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; | ||
| 5 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; | ||
| 4 | import com.csbr.cloud.common.enums.SystemError; | 6 | import com.csbr.cloud.common.enums.SystemError; |
| 5 | import com.csbr.cloud.common.exception.CsbrSystemException; | 7 | import com.csbr.cloud.common.exception.CsbrSystemException; |
| 6 | import com.csbr.cloud.common.util.CommonUtil; | 8 | import com.csbr.cloud.common.util.CommonUtil; |
| ... | @@ -16,6 +18,7 @@ import com.csbr.qingcloud.portal.service.EnterpriseDomainService; | ... | @@ -16,6 +18,7 @@ import com.csbr.qingcloud.portal.service.EnterpriseDomainService; |
| 16 | import jakarta.annotation.Resource; | 18 | import jakarta.annotation.Resource; |
| 17 | import lombok.extern.slf4j.Slf4j; | 19 | import lombok.extern.slf4j.Slf4j; |
| 18 | import org.apache.commons.collections.CollectionUtils; | 20 | import org.apache.commons.collections.CollectionUtils; |
| 21 | import org.apache.commons.lang3.ObjectUtils; | ||
| 19 | import org.apache.commons.lang3.StringUtils; | 22 | import org.apache.commons.lang3.StringUtils; |
| 20 | import org.springframework.stereotype.Service; | 23 | import org.springframework.stereotype.Service; |
| 21 | import org.springframework.transaction.annotation.Transactional; | 24 | import org.springframework.transaction.annotation.Transactional; |
| ... | @@ -180,6 +183,42 @@ public class EnterpriseDomainServiceImpl implements EnterpriseDomainService { | ... | @@ -180,6 +183,42 @@ public class EnterpriseDomainServiceImpl implements EnterpriseDomainService { |
| 180 | } | 183 | } |
| 181 | } | 184 | } |
| 182 | 185 | ||
| 186 | @Override | ||
| 187 | @Transactional | ||
| 188 | public void batchSave(List<EnterpriseDomainRQVO> domainRQVOS, String guid) { | ||
| 189 | if (ObjectUtils.isNotEmpty(domainRQVOS)) { | ||
| 190 | List<MfEnterpriseDomain> enterpriseDomains = new ArrayList<>(); | ||
| 191 | for (EnterpriseDomainRQVO enterpriseDomainRQVO : domainRQVOS) { | ||
| 192 | MfEnterpriseDomain entity = convertToEntity(enterpriseDomainRQVO); | ||
| 193 | entity.setEnterpriseGuid(guid); | ||
| 194 | mfEnterpriseDomainService.csbrAddEntity(entity); | ||
| 195 | enterpriseDomains.add(entity); | ||
| 196 | } | ||
| 197 | mfEnterpriseDomainService.saveBatch(enterpriseDomains); | ||
| 198 | } | ||
| 199 | } | ||
| 200 | |||
| 201 | @Transactional | ||
| 202 | @Override | ||
| 203 | public void removeByEnterpriseGuids(List<String> enterpriseGuids) { | ||
| 204 | if (CollectionUtils.isEmpty(enterpriseGuids)) { | ||
| 205 | return; | ||
| 206 | } | ||
| 207 | LambdaUpdateWrapper<MfEnterpriseDomain> updateWrapper = Wrappers.lambdaUpdate(MfEnterpriseDomain.class); | ||
| 208 | updateWrapper.in(MfEnterpriseDomain::getEnterpriseGuid, enterpriseGuids); | ||
| 209 | mfEnterpriseDomainService.remove(updateWrapper); | ||
| 210 | } | ||
| 211 | |||
| 212 | @Override | ||
| 213 | @Transactional | ||
| 214 | public void batchUpdate(List<EnterpriseDomainRQVO> domainRQVOS, String guid) { | ||
| 215 | // 删除开发主体附件信息 | ||
| 216 | removeByEnterpriseGuids(Collections.singletonList(guid)); | ||
| 217 | |||
| 218 | // 批量新增开发主体附件信息 | ||
| 219 | batchSave(domainRQVOS, guid); | ||
| 220 | } | ||
| 221 | |||
| 183 | /** | 222 | /** |
| 184 | * 开发主体领域信息新新增前置处理 | 223 | * 开发主体领域信息新新增前置处理 |
| 185 | * @author makejava | 224 | * @author makejava | ... | ... |
| ... | @@ -31,6 +31,8 @@ import com.csbr.qingcloud.portal.mybatis.entity.MfEnterpriseChangeApprove; | ... | @@ -31,6 +31,8 @@ import com.csbr.qingcloud.portal.mybatis.entity.MfEnterpriseChangeApprove; |
| 31 | import com.csbr.qingcloud.portal.mybatis.service.MfDemandService; | 31 | import com.csbr.qingcloud.portal.mybatis.service.MfDemandService; |
| 32 | import com.csbr.qingcloud.portal.mybatis.service.MfEnterpriseChangeApproveService; | 32 | import com.csbr.qingcloud.portal.mybatis.service.MfEnterpriseChangeApproveService; |
| 33 | import com.csbr.qingcloud.portal.mybatis.service.MfEnterpriseService; | 33 | import com.csbr.qingcloud.portal.mybatis.service.MfEnterpriseService; |
| 34 | import com.csbr.qingcloud.portal.service.EnterpriseAttachmentService; | ||
| 35 | import com.csbr.qingcloud.portal.service.EnterpriseDomainService; | ||
| 34 | import com.csbr.qingcloud.portal.service.EnterpriseService; | 36 | import com.csbr.qingcloud.portal.service.EnterpriseService; |
| 35 | import com.csbr.qingcloud.portal.util.ChangeInfoUtil; | 37 | import com.csbr.qingcloud.portal.util.ChangeInfoUtil; |
| 36 | import com.csbr.qingcloud.portal.util.DateUtil; | 38 | import com.csbr.qingcloud.portal.util.DateUtil; |
| ... | @@ -45,6 +47,7 @@ import org.apache.commons.collections.CollectionUtils; | ... | @@ -45,6 +47,7 @@ import org.apache.commons.collections.CollectionUtils; |
| 45 | import org.apache.commons.lang3.ObjectUtils; | 47 | import org.apache.commons.lang3.ObjectUtils; |
| 46 | import org.apache.commons.lang3.StringUtils; | 48 | import org.apache.commons.lang3.StringUtils; |
| 47 | import org.springframework.beans.factory.annotation.Autowired; | 49 | import org.springframework.beans.factory.annotation.Autowired; |
| 50 | import org.springframework.beans.factory.annotation.Value; | ||
| 48 | import org.springframework.stereotype.Service; | 51 | import org.springframework.stereotype.Service; |
| 49 | import org.springframework.transaction.annotation.Transactional; | 52 | import org.springframework.transaction.annotation.Transactional; |
| 50 | 53 | ||
| ... | @@ -70,6 +73,9 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris | ... | @@ -70,6 +73,9 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris |
| 70 | 73 | ||
| 71 | private static final String SysFuncCode = "QYRZ"; | 74 | private static final String SysFuncCode = "QYRZ"; |
| 72 | 75 | ||
| 76 | @Value("${enterpriseAttachment.isRequired:false}") | ||
| 77 | private Boolean isRequired; | ||
| 78 | |||
| 73 | @Autowired | 79 | @Autowired |
| 74 | private ZQConfig zqConfig; | 80 | private ZQConfig zqConfig; |
| 75 | 81 | ||
| ... | @@ -106,6 +112,12 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris | ... | @@ -106,6 +112,12 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris |
| 106 | @Resource | 112 | @Resource |
| 107 | private ConfigureFeign configureFeign; | 113 | private ConfigureFeign configureFeign; |
| 108 | 114 | ||
| 115 | @Resource | ||
| 116 | private EnterpriseAttachmentService enterpriseAttachmentService; | ||
| 117 | |||
| 118 | @Resource | ||
| 119 | private EnterpriseDomainService enterpriseDomainService; | ||
| 120 | |||
| 109 | /** | 121 | /** |
| 110 | * 企业信息分页查询 | 122 | * 企业信息分页查询 |
| 111 | * @author xcq | 123 | * @author xcq |
| ... | @@ -785,6 +797,14 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris | ... | @@ -785,6 +797,14 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris |
| 785 | enterpriseChangeApprove.setSourceGuid(entity.getGuid()); | 797 | enterpriseChangeApprove.setSourceGuid(entity.getGuid()); |
| 786 | enterpriseChangeApprove.setDataType("0"); | 798 | enterpriseChangeApprove.setDataType("0"); |
| 787 | mfEnterpriseChangeApproveService.save(enterpriseChangeApprove); | 799 | mfEnterpriseChangeApproveService.save(enterpriseChangeApprove); |
| 800 | |||
| 801 | // 新增附件信息 | ||
| 802 | List<EnterpriseAttachmentRQVO> attachmentRQVOS = rqVO.getAttachmentRQVOS(); | ||
| 803 | enterpriseAttachmentService.batchSave(attachmentRQVOS, entity.getGuid(), isRequired); | ||
| 804 | |||
| 805 | // 新增领域信息 | ||
| 806 | List<EnterpriseDomainRQVO> domainRQVOS = rqVO.getDomainRQVOS(); | ||
| 807 | enterpriseDomainService.batchSave(domainRQVOS, entity.getGuid()); | ||
| 788 | } | 808 | } |
| 789 | 809 | ||
| 790 | /** | 810 | /** |
| ... | @@ -855,6 +875,14 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris | ... | @@ -855,6 +875,14 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris |
| 855 | enterpriseChangeApprove.setSourceGuid(entity.getGuid()); | 875 | enterpriseChangeApprove.setSourceGuid(entity.getGuid()); |
| 856 | enterpriseChangeApprove.setDataType("0"); | 876 | enterpriseChangeApprove.setDataType("0"); |
| 857 | mfEnterpriseChangeApproveService.updateById(enterpriseChangeApprove); | 877 | mfEnterpriseChangeApproveService.updateById(enterpriseChangeApprove); |
| 878 | |||
| 879 | // 新增附件信息 | ||
| 880 | List<EnterpriseAttachmentRQVO> attachmentRQVOS = rqVO.getAttachmentRQVOS(); | ||
| 881 | enterpriseAttachmentService.batchUpdate(attachmentRQVOS, entity.getGuid(), isRequired); | ||
| 882 | |||
| 883 | // 新增领域信息 | ||
| 884 | List<EnterpriseDomainRQVO> domainRQVOS = rqVO.getDomainRQVOS(); | ||
| 885 | enterpriseDomainService.batchUpdate(domainRQVOS, entity.getGuid()); | ||
| 858 | } | 886 | } |
| 859 | 887 | ||
| 860 | 888 | ... | ... |
-
Please register or sign in to post a comment