Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
ms-data-circulation-portal-service
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
5978f32f
authored
2025-10-15 17:00:05 +0800
by
xu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
可信空间连接器入住接口
1 parent
5e166b8e
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
0 deletions
src/main/java/com/csbr/qingcloud/portal/controller/TdsConnectorIdentityManagementController.java
src/main/java/com/csbr/qingcloud/portal/domain/vo/TdsConnectorIdentityRQVO.java
src/main/java/com/csbr/qingcloud/portal/service/TdsConnectorIdentityManagementService.java
src/main/java/com/csbr/qingcloud/portal/service/impl/TdsConnectorIdentityManagementServiceImpl.java
src/main/java/com/csbr/qingcloud/portal/service/impl/TdsConnectorIdentityServiceImpl.java
src/main/java/com/csbr/qingcloud/portal/controller/TdsConnectorIdentityManagementController.java
View file @
5978f32
...
...
@@ -94,6 +94,14 @@ public class TdsConnectorIdentityManagementController {
return
CommonRes
.
success
(
true
);
}
@PostMapping
(
"/cross-flow-call-back"
)
@SystemLog
(
value
=
"连接器身份管理-流程结束后进行业务回调(跨服务审批)"
)
@Operation
(
summary
=
"连接器身份管理-流程结束后进行业务回调(跨服务审批)"
,
hidden
=
true
)
public
CommonRes
<
Boolean
>
crossFlowCallBack
(
@RequestBody
@Valid
BizCallbackDTO
dto
)
{
tdsConnectorIdentityManagementService
.
crossFlowCallBack
(
dto
);
return
CommonRes
.
success
(
true
);
}
//endregion
}
...
...
src/main/java/com/csbr/qingcloud/portal/domain/vo/TdsConnectorIdentityRQVO.java
View file @
5978f32
...
...
@@ -112,6 +112,8 @@ public class TdsConnectorIdentityRQVO extends FlowRQBaseVO {
@Schema
(
description
=
"是否变更数据【N 正常数据,Y 变更数据】"
)
private
String
isChangeData
;
private
String
funcCode
;
/******** 库表存储属性 需处理 *****/
/******** 自定义扩展 *****/
...
...
src/main/java/com/csbr/qingcloud/portal/service/TdsConnectorIdentityManagementService.java
View file @
5978f32
...
...
@@ -76,4 +76,6 @@ public interface TdsConnectorIdentityManagementService {
* @param rqVO
*/
void
updateVoucher
(
TdsConnectorIdentityManagementVoucherRQVO
rqVO
);
void
crossFlowCallBack
(
BizCallbackDTO
dto
);
}
...
...
src/main/java/com/csbr/qingcloud/portal/service/impl/TdsConnectorIdentityManagementServiceImpl.java
View file @
5978f32
...
...
@@ -19,6 +19,7 @@ import com.csbr.qingcloud.portal.domain.vo.TdsConnectorIdentityManagementQueryVO
import
com.csbr.qingcloud.portal.domain.vo.TdsConnectorIdentityManagementRQVO
;
import
com.csbr.qingcloud.portal.domain.vo.TdsConnectorIdentityManagementRSVO
;
import
com.csbr.qingcloud.portal.domain.vo.TdsConnectorIdentityManagementVoucherRQVO
;
import
com.csbr.qingcloud.portal.mybatis.entity.MfTdsConnectorIdentity
;
import
com.csbr.qingcloud.portal.mybatis.entity.MfTdsConnectorIdentityManagement
;
import
com.csbr.qingcloud.portal.mybatis.service.MfTdsConnectorIdentityManagementService
;
import
com.csbr.qingcloud.portal.service.TdsConnectorIdentityManagementService
;
...
...
@@ -267,6 +268,13 @@ public class TdsConnectorIdentityManagementServiceImpl extends FlowAbstractImpl
mfTdsConnectorIdentityManagementService
.
updateById
(
entity
);
}
@Override
public
void
crossFlowCallBack
(
BizCallbackDTO
dto
)
{
MfTdsConnectorIdentityManagement
entity
=
mfTdsConnectorIdentityManagementService
.
getById
(
dto
.
getBizGuid
());
entity
.
setCrossPlatformApproveState
(
dto
.
getApprovalState
());
mfTdsConnectorIdentityManagementService
.
updateById
(
entity
);
}
/**
* 获取发起流程参数
* @author xup
...
...
src/main/java/com/csbr/qingcloud/portal/service/impl/TdsConnectorIdentityServiceImpl.java
View file @
5978f32
...
...
@@ -181,7 +181,11 @@ public class TdsConnectorIdentityServiceImpl extends FlowAbstractImpl implements
*/
private
AddApprovalDTO
getAddApprovalDTO
(
MfTdsConnectorIdentity
entity
,
TdsConnectorIdentityRQVO
rqVO
)
{
AddApprovalDTO
approvalDTO
=
new
AddApprovalDTO
(
FLOW_TYPE
,
entity
.
getGuid
());
if
(
StringUtils
.
isBlank
(
rqVO
.
getFuncCode
()))
{
approvalDTO
.
setFuncCode
(
SysFuncCode
);
}
else
{
approvalDTO
.
setFuncCode
(
rqVO
.
getFuncCode
());
}
// 流程消息中的变量替换参数
String
msParam
=
String
.
format
(
"%s,%s"
,
bizCommonRedisUtil
.
getTenantName
(
entity
.
getTenantGuid
()),
null
);
approvalDTO
.
setFlowMessageBody
(
msParam
);
...
...
@@ -299,6 +303,12 @@ public class TdsConnectorIdentityServiceImpl extends FlowAbstractImpl implements
mfTdsConnectorIdentityService
.
updateById
(
sourceEntity
);
}
}
//主平台审批通过更新数据
if
(
"MAIN"
.
equals
(
platformType
))
{
if
(
ApprovalStateEnum
.
PASSED
.
getValue
().
equals
(
bizApproveVO
.
getApprovalState
())){
changSourceConnectorInentity
(
entity
);
}
}
// 同步更新审批状态
entity
.
setBizApproveState
(
bizApproveVO
.
getApprovalState
());
mfTdsConnectorIdentityService
.
updateById
(
entity
);
...
...
@@ -444,6 +454,7 @@ public class TdsConnectorIdentityServiceImpl extends FlowAbstractImpl implements
MfTdsConnectorIdentity
oldTdsConnectorIdentity
=
beforeChangeSaveTdsConnectorIdentity
(
rqVO
);
//发起连接器入住申请
rqVO
.
setIsChangeData
(
"Y"
);
rqVO
.
setFuncCode
(
SysFuncCode
+
"BG"
);
saveTdsConnectorIdentity
(
rqVO
);
afterChangeSaveTdsConnectorIdentity
(
rqVO
,
oldTdsConnectorIdentity
);
}
...
...
@@ -471,9 +482,12 @@ public class TdsConnectorIdentityServiceImpl extends FlowAbstractImpl implements
userInfo
.
setCurrentTenantGuid
(
entity
.
getTenantGuid
());
UserContextHolder
.
set
(
userInfo
);
//如果是变更数据需要更新原来数据信息
//审批通过
if
(
ApprovalStateEnum
.
PASSED
.
getValue
().
equals
(
dto
.
getApprovalState
())){
if
(
"Y"
.
equals
(
entity
.
getIsChangeData
()))
{
changSourceConnectorInentity
(
entity
);
}
}
//驳回和撤销是,修改原来数据状态
if
(
ApprovalStateEnum
.
REJECT
.
getValue
().
equals
(
dto
.
getApprovalState
())
||
ApprovalStateEnum
.
CANCEL
.
getValue
().
equals
(
dto
.
getApprovalState
()))
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment