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
b105aa2c
authored
2025-03-07 17:50:47 +0800
by
肖初晴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
【DAOP-1.0】企业认证
【功能点】测试问题处理
1 parent
1dba8937
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
9 deletions
src/main/java/com/csbr/qingcloud/portal/service/impl/DemandServiceImpl.java
src/main/java/com/csbr/qingcloud/portal/service/impl/EnterpriseServiceImpl.java
src/main/java/com/csbr/qingcloud/portal/service/impl/ServicerMaintainServiceImpl.java
src/main/java/com/csbr/qingcloud/portal/service/impl/DemandServiceImpl.java
View file @
b105aa2
...
...
@@ -201,9 +201,6 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService
// MfDemand oldEntity = mfDemandService.getById(rqVO.getGuid());
beforeUpdate
(
rqVO
);
MfDemand
entity
=
convertToEntity
(
rqVO
);
if
(
rqVO
.
getIsRestart
())
{
entity
.
setGuid
(
CommonUtil
.
newGuid
());
}
// 发起审批流程或保存草稿
AddApprovalDTO
approvalDTO
=
getAddApprovalDTO
(
entity
,
rqVO
);
super
.
startOrRestartWorkFlow
(
rqVO
,
rqVO
.
getBizApproveState
(),
approvalDTO
,
entity:
:
setBizApproveState
);
...
...
@@ -231,6 +228,7 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService
* @return void
*/
private
void
againSubmitFlow
(
MfDemand
entity
,
DemandRQVO
rqVO
,
AddApprovalDTO
approvalDTO
)
{
entity
.
setGuid
(
CommonUtil
.
newGuid
());
mfDemandService
.
csbrBaseEntity
(
entity
);
// 保存新数据
boolean
flag
=
mfDemandService
.
save
(
entity
);
...
...
@@ -239,6 +237,7 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService
}
// 发起新的流程
approvalDTO
.
setBizGuid
(
entity
.
getGuid
());
approvalDTO
.
setUrlParam
(
String
.
format
(
"guid=%s&name=%s"
,
entity
.
getGuid
(),
entity
.
getDataDemandName
()));
approvalFlowUtil
.
addApproval
(
approvalDTO
);
afterSave
(
entity
,
rqVO
);
}
...
...
src/main/java/com/csbr/qingcloud/portal/service/impl/EnterpriseServiceImpl.java
View file @
b105aa2
...
...
@@ -227,9 +227,6 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
// MfEnterprise oldEntity = mfEnterpriseService.getById(rqVO.getGuid());
beforeUpdate
(
rqVO
);
MfEnterprise
entity
=
convertToEntity
(
rqVO
);
if
(
rqVO
.
getIsRestart
())
{
entity
.
setGuid
(
CommonUtil
.
newGuid
());
}
// 发起审批流程或保存草稿
AddApprovalDTO
approvalDTO
=
getAddApprovalDTO
(
entity
,
rqVO
);
super
.
startOrRestartWorkFlow
(
rqVO
,
rqVO
.
getBizApproveState
(),
approvalDTO
,
entity:
:
setBizApproveState
);
...
...
@@ -257,6 +254,7 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
* @return void
*/
private
void
againSubmitFlow
(
MfEnterprise
entity
,
EnterpriseRQVO
rqVO
,
AddApprovalDTO
approvalDTO
)
{
entity
.
setGuid
(
CommonUtil
.
newGuid
());
mfEnterpriseService
.
csbrBaseEntity
(
entity
);
// 保存新数据
boolean
flag
=
mfEnterpriseService
.
save
(
entity
);
...
...
@@ -265,6 +263,9 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
}
// 发起新的流程
approvalDTO
.
setBizGuid
(
entity
.
getGuid
());
RedisStaffPOJO
staffPOJO
=
redisUtil
.
getRedisStaff
();
approvalDTO
.
setUrlParam
(
String
.
format
(
"guid=%s&name=%s&tName=%s&fType=%s&bizGuid=%s"
,
entity
.
getGuid
(),
entity
.
getTenantName
(),
staffPOJO
.
getTenantName
(),
WorkFlowBizEnum
.
ENTERPRISE_APPLY
.
getValue
(),
entity
.
getGuid
()));
approvalFlowUtil
.
addApproval
(
approvalDTO
);
afterSave
(
entity
,
rqVO
);
}
...
...
src/main/java/com/csbr/qingcloud/portal/service/impl/ServicerMaintainServiceImpl.java
View file @
b105aa2
...
...
@@ -164,9 +164,6 @@ public class ServicerMaintainServiceImpl extends FlowAbstractImpl implements Ser
MfServicerMaintain
oldEntity
=
mfServicerMaintainService
.
getById
(
rqVO
.
getGuid
());
beforeUpdate
(
rqVO
);
MfServicerMaintain
entity
=
convertToEntity
(
rqVO
);
if
(
rqVO
.
getIsRestart
())
{
entity
.
setGuid
(
CommonUtil
.
newGuid
());
}
if
(
"Y"
.
equals
(
rqVO
.
getBizApproveState
())){
// 修改业务数据
boolean
flag
=
mfServicerMaintainService
.
updateById
(
entity
);
...
...
@@ -205,6 +202,7 @@ public class ServicerMaintainServiceImpl extends FlowAbstractImpl implements Ser
* @return void
*/
private
void
againSubmitFlow
(
MfServicerMaintain
entity
,
ServicerMaintainRQVO
rqVO
,
AddApprovalDTO
approvalDTO
)
{
entity
.
setGuid
(
CommonUtil
.
newGuid
());
mfServicerMaintainService
.
csbrBaseEntity
(
entity
);
// 保存新数据
boolean
flag
=
mfServicerMaintainService
.
save
(
entity
);
...
...
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