Merge branch 'develop' into feature-dataPort-v1.0.0
Showing
28 changed files
with
209 additions
and
38 deletions
| 1 | package com.csbr.qingcloud.portal.controller; | 1 | package com.csbr.qingcloud.portal.controller; |
| 2 | 2 | ||
| 3 | import com.csbr.cloud.common.enums.SystemError; | ||
| 4 | import com.csbr.cloud.common.exception.CsbrSystemException; | ||
| 3 | import com.csbr.cloud.common.response.CommonRes; | 5 | import com.csbr.cloud.common.response.CommonRes; |
| 4 | import com.csbr.cloud.workflow.domain.dto.callback.BizCallbackDTO; | 6 | import com.csbr.cloud.workflow.domain.dto.callback.BizCallbackDTO; |
| 7 | import com.csbr.qingcloud.portal.mybatis.entity.MfTdsConnectorIdentity; | ||
| 5 | import csbr.cloud.entity.annotation.SystemLog; | 8 | import csbr.cloud.entity.annotation.SystemLog; |
| 6 | import csbr.cloud.entity.domain.base.vo.PageListVO; | 9 | import csbr.cloud.entity.domain.base.vo.PageListVO; |
| 7 | import com.csbr.qingcloud.portal.domain.vo.TdsConnectorIdentityQueryVO; | 10 | import com.csbr.qingcloud.portal.domain.vo.TdsConnectorIdentityQueryVO; |
| ... | @@ -13,6 +16,7 @@ import io.swagger.v3.oas.annotations.Parameter; | ... | @@ -13,6 +16,7 @@ import io.swagger.v3.oas.annotations.Parameter; |
| 13 | import io.swagger.v3.oas.annotations.tags.Tag; | 16 | import io.swagger.v3.oas.annotations.tags.Tag; |
| 14 | import jakarta.annotation.Resource; | 17 | import jakarta.annotation.Resource; |
| 15 | import jakarta.validation.Valid; | 18 | import jakarta.validation.Valid; |
| 19 | import org.apache.commons.lang3.StringUtils; | ||
| 16 | import org.springframework.web.bind.annotation.*; | 20 | import org.springframework.web.bind.annotation.*; |
| 17 | 21 | ||
| 18 | import java.util.List; | 22 | import java.util.List; |
| ... | @@ -41,11 +45,39 @@ public class TdsConnectorIdentityController { | ... | @@ -41,11 +45,39 @@ public class TdsConnectorIdentityController { |
| 41 | return CommonRes.success(true); | 45 | return CommonRes.success(true); |
| 42 | } | 46 | } |
| 43 | 47 | ||
| 48 | @PostMapping("/change-save") | ||
| 49 | @SystemLog(value = "连接器身份信息-变更") | ||
| 50 | @Operation(summary = "连接器身份信息-变更") | ||
| 51 | public CommonRes<Boolean> changeSaveTdsConnectorIdentity(@RequestBody @Valid TdsConnectorIdentityRQVO vo) { | ||
| 52 | tdsConnectorIdentityService.changeSaveTdsConnectorIdentity(vo); | ||
| 53 | return CommonRes.success(true); | ||
| 54 | } | ||
| 55 | |||
| 44 | @PutMapping("/update") | 56 | @PutMapping("/update") |
| 45 | @SystemLog(value = "连接器身份信息-修改") | 57 | @SystemLog(value = "连接器身份信息-修改") |
| 46 | @Operation(summary = "连接器身份信息-修改") | 58 | @Operation(summary = "连接器身份信息-修改") |
| 47 | public CommonRes<Boolean> updateTdsConnectorIdentity(@RequestBody TdsConnectorIdentityRQVO vo) { | 59 | public CommonRes<Boolean> updateTdsConnectorIdentity(@RequestBody TdsConnectorIdentityRQVO vo) { |
| 48 | tdsConnectorIdentityService.updateTdsConnectorIdentity(vo); | 60 | if (StringUtils.isBlank(vo.getGuid())) { |
| 61 | // W00012 = {0}:参数[{1}]不能为空! | ||
| 62 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, "数据唯一标识为空。"); | ||
| 63 | } | ||
| 64 | MfTdsConnectorIdentity mfTdsConnectorIdentity = tdsConnectorIdentityService.getTdsConnectorIdentityById(vo.getGuid()); | ||
| 65 | //变更数据重新提交流程 | ||
| 66 | if("Y".equals(mfTdsConnectorIdentity.getIsChangeData()) && vo.getImmediateApprove()){ | ||
| 67 | vo.setSourceBizGuid(mfTdsConnectorIdentity.getSourceBizGuid()); | ||
| 68 | vo.setIsRestart(true); | ||
| 69 | tdsConnectorIdentityService.changeSaveTdsConnectorIdentity(vo); | ||
| 70 | }else { | ||
| 71 | tdsConnectorIdentityService.updateTdsConnectorIdentity(vo); | ||
| 72 | } | ||
| 73 | return CommonRes.success(true); | ||
| 74 | } | ||
| 75 | |||
| 76 | @PostMapping("/cross-flow-call-back") | ||
| 77 | @SystemLog(value = "连接器身份信息-流程结束后进行业务回调(跨服务审批)") | ||
| 78 | @Operation(summary = "连接器身份信息-流程结束后进行业务回调(跨服务审批)", hidden = true) | ||
| 79 | public CommonRes<Boolean> crossFlowCallBack(@RequestBody @Valid BizCallbackDTO dto) { | ||
| 80 | tdsConnectorIdentityService.crossFlowCallBack(dto); | ||
| 49 | return CommonRes.success(true); | 81 | return CommonRes.success(true); |
| 50 | } | 82 | } |
| 51 | 83 | ||
| ... | @@ -93,8 +125,8 @@ public class TdsConnectorIdentityController { | ... | @@ -93,8 +125,8 @@ public class TdsConnectorIdentityController { |
| 93 | 125 | ||
| 94 | @GetMapping("/check-connector") | 126 | @GetMapping("/check-connector") |
| 95 | @SystemLog(value = "连接器身份信息-检查连接器是否已经存在") | 127 | @SystemLog(value = "连接器身份信息-检查连接器是否已经存在") |
| 96 | public CommonRes<Boolean> checkConnector() { | 128 | public CommonRes<TdsConnectorIdentityRSVO> checkConnector() { |
| 97 | Boolean vo = tdsConnectorIdentityService.verifyUniqueness(null); | 129 | TdsConnectorIdentityRSVO vo = tdsConnectorIdentityService.checkConnector(); |
| 98 | return CommonRes.success(vo); | 130 | return CommonRes.success(vo); |
| 99 | } | 131 | } |
| 100 | //endregion | 132 | //endregion | ... | ... |
| ... | @@ -93,6 +93,14 @@ public class TdsConnectorIdentityManagementController { | ... | @@ -93,6 +93,14 @@ public class TdsConnectorIdentityManagementController { |
| 93 | tdsConnectorIdentityManagementService.updateVoucher(rqVO); | 93 | tdsConnectorIdentityManagementService.updateVoucher(rqVO); |
| 94 | return CommonRes.success(true); | 94 | return CommonRes.success(true); |
| 95 | } | 95 | } |
| 96 | |||
| 97 | @PostMapping("/cross-flow-call-back") | ||
| 98 | @SystemLog(value = "连接器身份管理-流程结束后进行业务回调(跨服务审批)") | ||
| 99 | @Operation(summary = "连接器身份管理-流程结束后进行业务回调(跨服务审批)", hidden = true) | ||
| 100 | public CommonRes<Boolean> crossFlowCallBack(@RequestBody @Valid BizCallbackDTO dto) { | ||
| 101 | tdsConnectorIdentityManagementService.crossFlowCallBack(dto); | ||
| 102 | return CommonRes.success(true); | ||
| 103 | } | ||
| 96 | 104 | ||
| 97 | //endregion | 105 | //endregion |
| 98 | 106 | ... | ... |
| ... | @@ -4,6 +4,7 @@ import com.csbr.cloud.common.annotations.SystemParamsDict; | ... | @@ -4,6 +4,7 @@ import com.csbr.cloud.common.annotations.SystemParamsDict; |
| 4 | import com.csbr.cloud.workflow.domain.vo.appove.BizApproveVO; | 4 | import com.csbr.cloud.workflow.domain.vo.appove.BizApproveVO; |
| 5 | import com.fasterxml.jackson.annotation.JsonFormat; | 5 | import com.fasterxml.jackson.annotation.JsonFormat; |
| 6 | import io.swagger.v3.oas.annotations.media.Schema; | 6 | import io.swagger.v3.oas.annotations.media.Schema; |
| 7 | import jdk.jfr.Name; | ||
| 7 | import lombok.Data; | 8 | import lombok.Data; |
| 8 | 9 | ||
| 9 | import java.math.BigDecimal; | 10 | import java.math.BigDecimal; |
| ... | @@ -266,6 +267,21 @@ public class EnterpriseRSVO { | ... | @@ -266,6 +267,21 @@ public class EnterpriseRSVO { |
| 266 | @SystemParamsDict(dictTypeName = "证件类型", codeFieldName = "handlePersonIdType") | 267 | @SystemParamsDict(dictTypeName = "证件类型", codeFieldName = "handlePersonIdType") |
| 267 | private String handlePersonIdTypeName; | 268 | private String handlePersonIdTypeName; |
| 268 | 269 | ||
| 270 | /** | ||
| 271 | * 可信身份凭证 | ||
| 272 | */ | ||
| 273 | @Schema(description = "可信身份凭证") | ||
| 274 | private String trustedIdentityCredential; | ||
| 275 | |||
| 276 | /** | ||
| 277 | * 凭证颁发日期 | ||
| 278 | */ | ||
| 279 | @Schema(description = "凭证颁发日期") | ||
| 280 | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") | ||
| 281 | private Date credentialTime; | ||
| 282 | |||
| 283 | private String trustedIdentityCredentialUnit="北京传世博润科技有限公司"; | ||
| 284 | |||
| 269 | /******** 库表存储属性 需处理 *****/ | 285 | /******** 库表存储属性 需处理 *****/ |
| 270 | 286 | ||
| 271 | /******** 自定义扩展 *****/ | 287 | /******** 自定义扩展 *****/ | ... | ... |
| ... | @@ -36,7 +36,7 @@ public class TdsConnectorAdditionalRQVO { | ... | @@ -36,7 +36,7 @@ public class TdsConnectorAdditionalRQVO { |
| 36 | @Schema(description = "可验证身份签发单位") | 36 | @Schema(description = "可验证身份签发单位") |
| 37 | @Size(max = 100, message = "可验证身份签发单位长度超过100") | 37 | @Size(max = 100, message = "可验证身份签发单位长度超过100") |
| 38 | // @NotBlank(message = "可验证身份签发单位为空。") | 38 | // @NotBlank(message = "可验证身份签发单位为空。") |
| 39 | private String identityIssuingUnit; | 39 | private String trustedIdentityCredentialUnit; |
| 40 | 40 | ||
| 41 | /** | 41 | /** |
| 42 | * 供应商名称 | 42 | * 供应商名称 | ... | ... |
| ... | @@ -37,7 +37,7 @@ public class TdsConnectorAdditionalRSVO { | ... | @@ -37,7 +37,7 @@ public class TdsConnectorAdditionalRSVO { |
| 37 | * 可验证身份签发单位 | 37 | * 可验证身份签发单位 |
| 38 | */ | 38 | */ |
| 39 | @Schema(description = "可验证身份签发单位") | 39 | @Schema(description = "可验证身份签发单位") |
| 40 | private String identityIssuingUnit; | 40 | private String trustedIdentityCredentialUnit; |
| 41 | 41 | ||
| 42 | /** | 42 | /** |
| 43 | * 供应商名称 | 43 | * 供应商名称 | ... | ... |
| ... | @@ -37,5 +37,11 @@ public class TdsConnectorIdentityManagementQueryVO extends FlowBizGuidQueryDTO { | ... | @@ -37,5 +37,11 @@ public class TdsConnectorIdentityManagementQueryVO extends FlowBizGuidQueryDTO { |
| 37 | */ | 37 | */ |
| 38 | @Schema(description = "是否调用查询的判断", hidden = true) | 38 | @Schema(description = "是否调用查询的判断", hidden = true) |
| 39 | private Boolean isNeedQuery; | 39 | private Boolean isNeedQuery; |
| 40 | |||
| 41 | /** | ||
| 42 | * 连接器名称 | ||
| 43 | */ | ||
| 44 | @Schema(description = "连接器名称") | ||
| 45 | private String conName; | ||
| 40 | 46 | ||
| 41 | } | 47 | } | ... | ... |
| ... | @@ -90,6 +90,9 @@ public class TdsConnectorIdentityManagementRQVO extends FlowRQBaseVO { | ... | @@ -90,6 +90,9 @@ public class TdsConnectorIdentityManagementRQVO extends FlowRQBaseVO { |
| 90 | */ | 90 | */ |
| 91 | @Schema(description = "业务审批状态") | 91 | @Schema(description = "业务审批状态") |
| 92 | private String bizApproveState; | 92 | private String bizApproveState; |
| 93 | |||
| 94 | @Schema(title = "节点名称") | ||
| 95 | private String zqName; | ||
| 93 | 96 | ||
| 94 | /******** 库表存储属性 需处理 *****/ | 97 | /******** 库表存储属性 需处理 *****/ |
| 95 | 98 | ... | ... |
| ... | @@ -105,6 +105,9 @@ public class TdsConnectorIdentityManagementRSVO extends BaseVO { | ... | @@ -105,6 +105,9 @@ public class TdsConnectorIdentityManagementRSVO extends BaseVO { |
| 105 | 105 | ||
| 106 | @Schema(title = "跨平台审批状态(N 初始 A 审批中 Y 已通过 R 驳回 C 已撤销)") | 106 | @Schema(title = "跨平台审批状态(N 初始 A 审批中 Y 已通过 R 驳回 C 已撤销)") |
| 107 | private String crossPlatformApproveState; | 107 | private String crossPlatformApproveState; |
| 108 | |||
| 109 | @Schema(title = "节点名称") | ||
| 110 | private String zqName; | ||
| 108 | 111 | ||
| 109 | /******** 库表存储属性 需处理 *****/ | 112 | /******** 库表存储属性 需处理 *****/ |
| 110 | 113 | ... | ... |
| ... | @@ -7,6 +7,7 @@ import com.fasterxml.jackson.annotation.JsonFormat; | ... | @@ -7,6 +7,7 @@ import com.fasterxml.jackson.annotation.JsonFormat; |
| 7 | import jakarta.validation.constraints.NotBlank; | 7 | import jakarta.validation.constraints.NotBlank; |
| 8 | import jakarta.validation.constraints.NotNull; | 8 | import jakarta.validation.constraints.NotNull; |
| 9 | import jakarta.validation.constraints.Size; | 9 | import jakarta.validation.constraints.Size; |
| 10 | import jdk.jfr.Name; | ||
| 10 | import lombok.Data; | 11 | import lombok.Data; |
| 11 | import java.util.Date; | 12 | import java.util.Date; |
| 12 | import java.util.List; | 13 | import java.util.List; |
| ... | @@ -83,7 +84,7 @@ public class TdsConnectorIdentityRQVO extends FlowRQBaseVO { | ... | @@ -83,7 +84,7 @@ public class TdsConnectorIdentityRQVO extends FlowRQBaseVO { |
| 83 | * 可信身份凭证 | 84 | * 可信身份凭证 |
| 84 | */ | 85 | */ |
| 85 | @Schema(description = "可信身份凭证") | 86 | @Schema(description = "可信身份凭证") |
| 86 | private JSONArray trustedIdentityCredential; | 87 | private String trustedIdentityCredential; |
| 87 | 88 | ||
| 88 | /** | 89 | /** |
| 89 | * 凭证颁发日期 | 90 | * 凭证颁发日期 |
| ... | @@ -97,6 +98,24 @@ public class TdsConnectorIdentityRQVO extends FlowRQBaseVO { | ... | @@ -97,6 +98,24 @@ public class TdsConnectorIdentityRQVO extends FlowRQBaseVO { |
| 97 | */ | 98 | */ |
| 98 | @Schema(description = "业务审批状态") | 99 | @Schema(description = "业务审批状态") |
| 99 | private String bizApproveState; | 100 | private String bizApproveState; |
| 101 | |||
| 102 | /** | ||
| 103 | * 原始数据Guid | ||
| 104 | */ | ||
| 105 | @Schema(description = "原始数据Guid") | ||
| 106 | private String sourceBizGuid; | ||
| 107 | |||
| 108 | |||
| 109 | /** | ||
| 110 | * 是否变更数据【N 正常数据,Y 变更数据】 | ||
| 111 | */ | ||
| 112 | @Schema(description = "是否变更数据【N 正常数据,Y 变更数据】") | ||
| 113 | private String isChangeData; | ||
| 114 | |||
| 115 | private String funcCode; | ||
| 116 | |||
| 117 | @Schema(title = "节点名称") | ||
| 118 | private String zqName; | ||
| 100 | 119 | ||
| 101 | /******** 库表存储属性 需处理 *****/ | 120 | /******** 库表存储属性 需处理 *****/ |
| 102 | 121 | ... | ... |
| ... | @@ -4,6 +4,7 @@ import com.csbr.cloud.workflow.domain.vo.appove.BizApproveVO; | ... | @@ -4,6 +4,7 @@ import com.csbr.cloud.workflow.domain.vo.appove.BizApproveVO; |
| 4 | import csbr.cloud.entity.domain.base.vo.BaseVO; | 4 | import csbr.cloud.entity.domain.base.vo.BaseVO; |
| 5 | import io.swagger.v3.oas.annotations.media.Schema; | 5 | import io.swagger.v3.oas.annotations.media.Schema; |
| 6 | import com.fasterxml.jackson.annotation.JsonFormat; | 6 | import com.fasterxml.jackson.annotation.JsonFormat; |
| 7 | import jdk.jfr.Name; | ||
| 7 | import lombok.Data; | 8 | import lombok.Data; |
| 8 | import java.util.Date; | 9 | import java.util.Date; |
| 9 | import java.util.List; | 10 | import java.util.List; |
| ... | @@ -66,13 +67,13 @@ public class TdsConnectorIdentityRSVO extends BaseVO { | ... | @@ -66,13 +67,13 @@ public class TdsConnectorIdentityRSVO extends BaseVO { |
| 66 | */ | 67 | */ |
| 67 | @Schema(description = "所属法人或其他组织统一社会信用代码") | 68 | @Schema(description = "所属法人或其他组织统一社会信用代码") |
| 68 | private String legalSocialCreditCode; | 69 | private String legalSocialCreditCode; |
| 69 | 70 | ||
| 70 | /** | 71 | /** |
| 71 | * 可信身份凭证 | 72 | * 可信身份凭证 |
| 72 | */ | 73 | */ |
| 73 | @Schema(description = "可信身份凭证") | 74 | @Schema(description = "可信身份凭证") |
| 74 | private Map<String,String> trustedIdentityCredential; | 75 | private String trustedIdentityCredential; |
| 75 | 76 | ||
| 76 | /** | 77 | /** |
| 77 | * 凭证颁发日期 | 78 | * 凭证颁发日期 |
| 78 | */ | 79 | */ |
| ... | @@ -89,6 +90,21 @@ public class TdsConnectorIdentityRSVO extends BaseVO { | ... | @@ -89,6 +90,21 @@ public class TdsConnectorIdentityRSVO extends BaseVO { |
| 89 | @Schema(title = "跨平台审批状态(N 初始 A 审批中 Y 已通过 R 驳回 C 已撤销)") | 90 | @Schema(title = "跨平台审批状态(N 初始 A 审批中 Y 已通过 R 驳回 C 已撤销)") |
| 90 | private String crossPlatformApproveState; | 91 | private String crossPlatformApproveState; |
| 91 | 92 | ||
| 93 | /** | ||
| 94 | * 原始数据Guid | ||
| 95 | */ | ||
| 96 | @Schema(description = "原始数据Guid") | ||
| 97 | private String sourceBizGuid; | ||
| 98 | |||
| 99 | /** | ||
| 100 | * 是否变更数据【N 正常数据,Y 变更数据】 | ||
| 101 | */ | ||
| 102 | @Schema(description = "是否变更数据【N 正常数据,Y 变更数据】") | ||
| 103 | private String isChangeData; | ||
| 104 | |||
| 105 | @Schema(title = "节点名称") | ||
| 106 | private String zqName; | ||
| 107 | |||
| 92 | /******** 库表存储属性 需处理 *****/ | 108 | /******** 库表存储属性 需处理 *****/ |
| 93 | 109 | ||
| 94 | /******** 自定义扩展 *****/ | 110 | /******** 自定义扩展 *****/ | ... | ... |
| ... | @@ -65,49 +65,42 @@ public class TdsConnectorVerifiableRQVO { | ... | @@ -65,49 +65,42 @@ public class TdsConnectorVerifiableRQVO { |
| 65 | * 加密模块认证 | 65 | * 加密模块认证 |
| 66 | */ | 66 | */ |
| 67 | @Schema(description = "加密模块认证") | 67 | @Schema(description = "加密模块认证") |
| 68 | @NotNull(message = "加密模块认证为空。") | ||
| 69 | private JSONArray encryptionModuleAuthentication; | 68 | private JSONArray encryptionModuleAuthentication; |
| 70 | 69 | ||
| 71 | /** | 70 | /** |
| 72 | * 软件供应链合规声明 | 71 | * 软件供应链合规声明 |
| 73 | */ | 72 | */ |
| 74 | @Schema(description = "软件供应链合规声明") | 73 | @Schema(description = "软件供应链合规声明") |
| 75 | @NotNull(message = "软件供应链合规声明为空。") | ||
| 76 | private JSONArray softwareScmStatemen; | 74 | private JSONArray softwareScmStatemen; |
| 77 | 75 | ||
| 78 | /** | 76 | /** |
| 79 | * 安全漏洞修复声明 | 77 | * 安全漏洞修复声明 |
| 80 | */ | 78 | */ |
| 81 | @Schema(description = "安全漏洞修复声明") | 79 | @Schema(description = "安全漏洞修复声明") |
| 82 | @NotNull(message = "安全漏洞修复声明为空。") | ||
| 83 | private JSONArray securityLoopholeRepairStatement; | 80 | private JSONArray securityLoopholeRepairStatement; |
| 84 | 81 | ||
| 85 | /** | 82 | /** |
| 86 | * 通信协议兼容性认证 | 83 | * 通信协议兼容性认证 |
| 87 | */ | 84 | */ |
| 88 | @Schema(description = "通信协议兼容性认证") | 85 | @Schema(description = "通信协议兼容性认证") |
| 89 | @NotNull(message = "通信协议兼容性认证为空。") | ||
| 90 | private JSONArray communicationProtocolCompatibilityCertification; | 86 | private JSONArray communicationProtocolCompatibilityCertification; |
| 91 | 87 | ||
| 92 | /** | 88 | /** |
| 93 | * 硬件可信执行环境(TEE)认证 | 89 | * 硬件可信执行环境(TEE)认证 |
| 94 | */ | 90 | */ |
| 95 | @Schema(description = "硬件可信执行环境(TEE)认证") | 91 | @Schema(description = "硬件可信执行环境(TEE)认证") |
| 96 | @NotNull(message = "硬件可信执行环境(TEE)认证为空。") | ||
| 97 | private JSONArray teeCertification; | 92 | private JSONArray teeCertification; |
| 98 | 93 | ||
| 99 | /** | 94 | /** |
| 100 | * 接入行为审计合规报告 | 95 | * 接入行为审计合规报告 |
| 101 | */ | 96 | */ |
| 102 | @Schema(description = "接入行为审计合规报告") | 97 | @Schema(description = "接入行为审计合规报告") |
| 103 | @NotNull(message = "接入行为审计合规报告为空。") | ||
| 104 | private JSONArray accessAuditReport; | 98 | private JSONArray accessAuditReport; |
| 105 | 99 | ||
| 106 | /** | 100 | /** |
| 107 | * 第三方认证声明 | 101 | * 第三方认证声明 |
| 108 | */ | 102 | */ |
| 109 | @Schema(description = "第三方认证声明") | 103 | @Schema(description = "第三方认证声明") |
| 110 | @NotNull(message = "第三方认证声明为空。") | ||
| 111 | private JSONArray thirdPartyCertification; | 104 | private JSONArray thirdPartyCertification; |
| 112 | 105 | ||
| 113 | /** | 106 | /** | ... | ... |
| ... | @@ -38,6 +38,12 @@ public class TenantRQVO extends CsbrBaseVO { | ... | @@ -38,6 +38,12 @@ public class TenantRQVO extends CsbrBaseVO { |
| 38 | private String tenantName; | 38 | private String tenantName; |
| 39 | 39 | ||
| 40 | /** | 40 | /** |
| 41 | * 统一社会信用代码 | ||
| 42 | */ | ||
| 43 | @Schema(description = "统一社会信用代码") | ||
| 44 | private String socialCreditCode; | ||
| 45 | |||
| 46 | /** | ||
| 41 | * 公司简称 | 47 | * 公司简称 |
| 42 | */ | 48 | */ |
| 43 | @Schema(description = "公司简称") | 49 | @Schema(description = "公司简称") | ... | ... |
| ... | @@ -2,6 +2,7 @@ package com.csbr.qingcloud.portal.mybatis.entity; | ... | @@ -2,6 +2,7 @@ package com.csbr.qingcloud.portal.mybatis.entity; |
| 2 | 2 | ||
| 3 | import com.baomidou.mybatisplus.annotation.FieldStrategy; | 3 | import com.baomidou.mybatisplus.annotation.FieldStrategy; |
| 4 | import com.baomidou.mybatisplus.annotation.TableField; | 4 | import com.baomidou.mybatisplus.annotation.TableField; |
| 5 | import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler; | ||
| 5 | import csbr.cloud.entity.domain.base.dao.BaseDO; | 6 | import csbr.cloud.entity.domain.base.dao.BaseDO; |
| 6 | import jdk.jfr.Name; | 7 | import jdk.jfr.Name; |
| 7 | import lombok.Data; | 8 | import lombok.Data; |
| ... | @@ -219,4 +220,16 @@ public class MfEnterprise extends BaseDO { | ... | @@ -219,4 +220,16 @@ public class MfEnterprise extends BaseDO { |
| 219 | 220 | ||
| 220 | @Name("经办人证件类型") | 221 | @Name("经办人证件类型") |
| 221 | private String handlePersonIdType; | 222 | private String handlePersonIdType; |
| 223 | |||
| 224 | /** | ||
| 225 | * 可信身份凭证 | ||
| 226 | */ | ||
| 227 | @Name("可信身份凭证") | ||
| 228 | private String trustedIdentityCredential; | ||
| 229 | |||
| 230 | /** | ||
| 231 | * 凭证颁发日期 | ||
| 232 | */ | ||
| 233 | @Name("凭证颁发日期") | ||
| 234 | private Date credentialTime; | ||
| 222 | } | 235 | } | ... | ... |
| ... | @@ -32,7 +32,7 @@ public class MfTdsConnectorAdditional extends BaseShardingDO { | ... | @@ -32,7 +32,7 @@ public class MfTdsConnectorAdditional extends BaseShardingDO { |
| 32 | * 可验证身份签发单位 | 32 | * 可验证身份签发单位 |
| 33 | */ | 33 | */ |
| 34 | @Name("可验证身份签发单位") | 34 | @Name("可验证身份签发单位") |
| 35 | private String identityIssuingUnit; | 35 | private String trustedIdentityCredentialUnit; |
| 36 | 36 | ||
| 37 | /** | 37 | /** |
| 38 | * 供应商名称 | 38 | * 供应商名称 | ... | ... |
| ... | @@ -7,6 +7,8 @@ import com.baomidou.mybatisplus.annotation.TableName; | ... | @@ -7,6 +7,8 @@ import com.baomidou.mybatisplus.annotation.TableName; |
| 7 | import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler; | 7 | import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler; |
| 8 | import csbr.cloud.entity.domain.base.dao.BaseDO; | 8 | import csbr.cloud.entity.domain.base.dao.BaseDO; |
| 9 | import csbr.cloud.entity.domain.base.dao.BaseShardingDO; | 9 | import csbr.cloud.entity.domain.base.dao.BaseShardingDO; |
| 10 | import io.swagger.v3.oas.annotations.media.Schema; | ||
| 11 | import jakarta.validation.constraints.NotBlank; | ||
| 10 | import jdk.jfr.Name; | 12 | import jdk.jfr.Name; |
| 11 | import lombok.Data; | 13 | import lombok.Data; |
| 12 | import lombok.EqualsAndHashCode; | 14 | import lombok.EqualsAndHashCode; |
| ... | @@ -75,8 +77,7 @@ public class MfTdsConnectorIdentity extends BaseShardingDO { | ... | @@ -75,8 +77,7 @@ public class MfTdsConnectorIdentity extends BaseShardingDO { |
| 75 | * 可信身份凭证 | 77 | * 可信身份凭证 |
| 76 | */ | 78 | */ |
| 77 | @Name("可信身份凭证") | 79 | @Name("可信身份凭证") |
| 78 | @TableField(typeHandler = FastjsonTypeHandler.class) | 80 | private String trustedIdentityCredential; |
| 79 | private JSONArray trustedIdentityCredential; | ||
| 80 | 81 | ||
| 81 | /** | 82 | /** |
| 82 | * 凭证颁发日期 | 83 | * 凭证颁发日期 |
| ... | @@ -93,4 +94,18 @@ public class MfTdsConnectorIdentity extends BaseShardingDO { | ... | @@ -93,4 +94,18 @@ public class MfTdsConnectorIdentity extends BaseShardingDO { |
| 93 | @Name("业务审批状态") | 94 | @Name("业务审批状态") |
| 94 | private String bizApproveState; | 95 | private String bizApproveState; |
| 95 | 96 | ||
| 97 | /** | ||
| 98 | * 是否变更数据【N 正常数据,Y 变更数据】 | ||
| 99 | */ | ||
| 100 | @Name("是否变更数据") | ||
| 101 | private String isChangeData; | ||
| 102 | |||
| 103 | /** | ||
| 104 | * 原始数据Guid | ||
| 105 | */ | ||
| 106 | @Name("原始数据Guid") | ||
| 107 | private String sourceBizGuid; | ||
| 108 | |||
| 109 | @Name("节点名称") | ||
| 110 | private String zqName; | ||
| 96 | } | 111 | } | ... | ... |
| ... | @@ -96,4 +96,7 @@ public class MfTdsConnectorIdentityManagement extends BaseShardingDO { | ... | @@ -96,4 +96,7 @@ public class MfTdsConnectorIdentityManagement extends BaseShardingDO { |
| 96 | @Name("所属法人或其他组织名称") | 96 | @Name("所属法人或其他组织名称") |
| 97 | private String legalEntity; | 97 | private String legalEntity; |
| 98 | 98 | ||
| 99 | @Name("节点名称") | ||
| 100 | private String zqName; | ||
| 101 | |||
| 99 | } | 102 | } | ... | ... |
| ... | @@ -76,4 +76,6 @@ public interface TdsConnectorIdentityManagementService { | ... | @@ -76,4 +76,6 @@ public interface TdsConnectorIdentityManagementService { |
| 76 | * @param rqVO | 76 | * @param rqVO |
| 77 | */ | 77 | */ |
| 78 | void updateVoucher(TdsConnectorIdentityManagementVoucherRQVO rqVO); | 78 | void updateVoucher(TdsConnectorIdentityManagementVoucherRQVO rqVO); |
| 79 | |||
| 80 | void crossFlowCallBack(BizCallbackDTO dto); | ||
| 79 | } | 81 | } | ... | ... |
| ... | @@ -94,4 +94,24 @@ public interface TdsConnectorIdentityService { | ... | @@ -94,4 +94,24 @@ public interface TdsConnectorIdentityService { |
| 94 | Map<String, MfTdsConnectorIdentity> getCrossTenantTdsConnectorIdentitys(Set<String> guidSet); | 94 | Map<String, MfTdsConnectorIdentity> getCrossTenantTdsConnectorIdentitys(Set<String> guidSet); |
| 95 | 95 | ||
| 96 | Boolean verifyUniqueness(TdsConnectorIdentityRQVO rqVO); | 96 | Boolean verifyUniqueness(TdsConnectorIdentityRQVO rqVO); |
| 97 | |||
| 98 | /** | ||
| 99 | * 变更数据申请 | ||
| 100 | * @param flowBaseVO | ||
| 101 | */ | ||
| 102 | void changeSaveTdsConnectorIdentity(FlowRQBaseVO flowBaseVO); | ||
| 103 | |||
| 104 | /** | ||
| 105 | * 检查连接器是否已经存在 | ||
| 106 | * @return | ||
| 107 | */ | ||
| 108 | TdsConnectorIdentityRSVO checkConnector(); | ||
| 109 | |||
| 110 | /** | ||
| 111 | * 跨平台业务调用 | ||
| 112 | * @param dto | ||
| 113 | */ | ||
| 114 | void crossFlowCallBack(BizCallbackDTO dto); | ||
| 115 | |||
| 116 | MfTdsConnectorIdentity getTdsConnectorIdentityById(String guid); | ||
| 97 | } | 117 | } | ... | ... |
| ... | @@ -311,10 +311,11 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService | ... | @@ -311,10 +311,11 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService |
| 311 | // 删除主平台数据 | 311 | // 删除主平台数据 |
| 312 | if (!zqConfig.getIsMain() && StringUtils.isNotEmpty(crossPlatformApproveState)) { | 312 | if (!zqConfig.getIsMain() && StringUtils.isNotEmpty(crossPlatformApproveState)) { |
| 313 | JSONObject jsonObject = new JSONObject(); | 313 | JSONObject jsonObject = new JSONObject(); |
| 314 | jsonObject.put("zqSystemCode", SysFuncCode); | 314 | jsonObject.put("bizCode", SysFuncCode); |
| 315 | jsonObject.put("zqBizGuids", JSON.toJSONString(guids)); | 315 | jsonObject.put("operation", "DEL"); |
| 316 | jsonObject.put("zqData", JSON.toJSONString(guids)); | ||
| 316 | jsonObject.put("isCollection", true); | 317 | jsonObject.put("isCollection", true); |
| 317 | invokeUtil.invokeMainDel(jsonObject, zqConfig.getAppKey(), zqConfig.getZqDelUrl()); | 318 | invokeUtil.invokeMainDel(jsonObject, zqConfig.getAppKey(), zqConfig.getReceiveUrl()); |
| 318 | } | 319 | } |
| 319 | } | 320 | } |
| 320 | 321 | ||
| ... | @@ -477,10 +478,13 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService | ... | @@ -477,10 +478,13 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService |
| 477 | // 下架主平台数据 | 478 | // 下架主平台数据 |
| 478 | if (!zqConfig.getIsMain() && StringUtils.isNotEmpty(mfDemand.getCrossPlatformApproveState())) { | 479 | if (!zqConfig.getIsMain() && StringUtils.isNotEmpty(mfDemand.getCrossPlatformApproveState())) { |
| 479 | JSONObject jsonObject = new JSONObject(); | 480 | JSONObject jsonObject = new JSONObject(); |
| 480 | jsonObject.put("zqSystemCode", SysFuncCode); | 481 | jsonObject.put("bizCode", SysFuncCode); |
| 481 | jsonObject.put("guid", vo.getGuid()); | 482 | jsonObject.put("operation", "SJ"); |
| 482 | jsonObject.put("listingStatus", vo.getListingStatus()); | 483 | JSONObject data = new JSONObject(); |
| 483 | invokeUtil.invokeMainDel(jsonObject, zqConfig.getAppKey(), zqConfig.getGroundingPickUrl()); | 484 | data.put("guid", vo.getGuid()); |
| 485 | data.put("listingStatus", vo.getListingStatus()); | ||
| 486 | jsonObject.put("zqData", data); | ||
| 487 | invokeUtil.invokeMainDel(jsonObject, zqConfig.getAppKey(), zqConfig.getReceiveUrl()); | ||
| 484 | } | 488 | } |
| 485 | return Boolean.TRUE; | 489 | return Boolean.TRUE; |
| 486 | } | 490 | } | ... | ... |
| ... | @@ -298,10 +298,11 @@ public class EnterpriseChangeApproveServiceImpl implements EnterpriseChangeAppro | ... | @@ -298,10 +298,11 @@ public class EnterpriseChangeApproveServiceImpl implements EnterpriseChangeAppro |
| 298 | // 删除主平台数据 | 298 | // 删除主平台数据 |
| 299 | if (!zqConfig.getIsMain() && StringUtils.isNotEmpty(crossPlatformApproveState)) { | 299 | if (!zqConfig.getIsMain() && StringUtils.isNotEmpty(crossPlatformApproveState)) { |
| 300 | JSONObject jsonObject = new JSONObject(); | 300 | JSONObject jsonObject = new JSONObject(); |
| 301 | jsonObject.put("zqSystemCode", SysFuncCode + "BG"); | 301 | jsonObject.put("bizCode", SysFuncCode + "BG"); |
| 302 | jsonObject.put("zqBizGuids", JSON.toJSONString(guids)); | 302 | jsonObject.put("operation", "DEL"); |
| 303 | jsonObject.put("zqData", JSON.toJSONString(guids)); | ||
| 303 | jsonObject.put("isCollection", true); | 304 | jsonObject.put("isCollection", true); |
| 304 | invokeUtil.invokeMainDel(jsonObject, zqConfig.getAppKey(), zqConfig.getZqDelUrl()); | 305 | invokeUtil.invokeMainDel(jsonObject, zqConfig.getAppKey(), zqConfig.getReceiveUrl()); |
| 305 | } | 306 | } |
| 306 | 307 | ||
| 307 | // 删除流程数据 | 308 | // 删除流程数据 | ... | ... |
| ... | @@ -421,10 +421,11 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris | ... | @@ -421,10 +421,11 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris |
| 421 | // 删除主平台数据 | 421 | // 删除主平台数据 |
| 422 | if (!zqConfig.getIsMain() && StringUtils.isNotEmpty(crossPlatformApproveState)) { | 422 | if (!zqConfig.getIsMain() && StringUtils.isNotEmpty(crossPlatformApproveState)) { |
| 423 | JSONObject jsonObject = new JSONObject(); | 423 | JSONObject jsonObject = new JSONObject(); |
| 424 | jsonObject.put("zqSystemCode", SysFuncCode); | 424 | jsonObject.put("bizCode", SysFuncCode); |
| 425 | jsonObject.put("zqBizGuids", JSON.toJSONString(guids)); | 425 | jsonObject.put("operation", "DEL"); |
| 426 | jsonObject.put("zqData", JSON.toJSONString(guids)); | ||
| 426 | jsonObject.put("isCollection", true); | 427 | jsonObject.put("isCollection", true); |
| 427 | invokeUtil.invokeMainDel(jsonObject, zqConfig.getAppKey(), zqConfig.getZqDelUrl()); | 428 | invokeUtil.invokeMainDel(jsonObject, zqConfig.getAppKey(), zqConfig.getReceiveUrl()); |
| 428 | } | 429 | } |
| 429 | 430 | ||
| 430 | // 删除流程数据 | 431 | // 删除流程数据 | ... | ... |
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
| ... | @@ -13,6 +13,7 @@ public class IdentificationCodeUtil { | ... | @@ -13,6 +13,7 @@ public class IdentificationCodeUtil { |
| 13 | 13 | ||
| 14 | private static final String CHARACTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; | 14 | private static final String CHARACTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; |
| 15 | private static SecureRandom random = new SecureRandom(); | 15 | private static SecureRandom random = new SecureRandom(); |
| 16 | public static final String medIndustry = "0084"; | ||
| 16 | 17 | ||
| 17 | 18 | ||
| 18 | /** | 19 | /** | ... | ... |
| ... | @@ -21,9 +21,7 @@ public class ZQConfig { | ... | @@ -21,9 +21,7 @@ public class ZQConfig { |
| 21 | 21 | ||
| 22 | private String zqName = ""; | 22 | private String zqName = ""; |
| 23 | 23 | ||
| 24 | private String zqDelUrl = ""; | 24 | private String receiveUrl = ""; |
| 25 | |||
| 26 | private String groundingPickUrl = ""; | ||
| 27 | 25 | ||
| 28 | private Boolean isMain = false; | 26 | private Boolean isMain = false; |
| 29 | 27 | ... | ... |
| ... | @@ -49,4 +49,8 @@ management: | ... | @@ -49,4 +49,8 @@ management: |
| 49 | enabled: false | 49 | enabled: false |
| 50 | feign: | 50 | feign: |
| 51 | sentinel: | 51 | sentinel: |
| 52 | enabled: true | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 52 | enabled: true | ||
| 53 | |||
| 54 | csbr: | ||
| 55 | # 平台类型:ENTERPRISE,ZQ,MAIN | ||
| 56 | platform-type: MAIN | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -49,4 +49,8 @@ management: | ... | @@ -49,4 +49,8 @@ management: |
| 49 | enabled: false | 49 | enabled: false |
| 50 | feign: | 50 | feign: |
| 51 | sentinel: | 51 | sentinel: |
| 52 | enabled: true | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 52 | enabled: true | ||
| 53 | |||
| 54 | csbr: | ||
| 55 | # 平台类型:ENTERPRISE,ZQ,MAIN | ||
| 56 | platform-type: MAIN | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -49,4 +49,7 @@ management: | ... | @@ -49,4 +49,7 @@ management: |
| 49 | enabled: false | 49 | enabled: false |
| 50 | feign: | 50 | feign: |
| 51 | sentinel: | 51 | sentinel: |
| 52 | enabled: true | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 52 | enabled: true | ||
| 53 | csbr: | ||
| 54 | # 平台类型:ENTERPRISE,ZQ,MAIN | ||
| 55 | platform-type: ZQ | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment