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
fe901eab
authored
2025-03-21 15:01:43 +0800
by
xiaojie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
【数据资产】
1、元数据导入
1 parent
d412776b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
4 deletions
src/main/java/com/csbr/qingcloud/portal/service/impl/DemandServiceImpl.java
src/main/java/com/csbr/qingcloud/portal/service/impl/EnterpriseChangeApproveServiceImpl.java
src/main/java/com/csbr/qingcloud/portal/service/impl/EnterpriseServiceImpl.java
src/main/java/com/csbr/qingcloud/portal/service/impl/DemandServiceImpl.java
View file @
fe901ea
...
...
@@ -284,7 +284,13 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService
String
crossPlatformApproveState
=
""
;
for
(
String
guid
:
guids
)
{
MfDemand
entity
=
mfDemandService
.
getById
(
guid
);
beforeRemove
(
entity
);
if
(
entity
==
null
)
{
continue
;
}
if
(
ApprovalStateEnum
.
CHECKING
.
getValue
().
equals
(
entity
.
getBizApproveState
())
||
ApprovalStateEnum
.
PASSED
.
getValue
().
equals
(
entity
.
getBizApproveState
()))
{
throw
new
CsbrSystemException
(
SystemError
.
DATA_DEL_ERROR
,
"审批中和审批通过的数据不能删除!"
);
}
mfDemandService
.
removeById
(
entity
);
afterRemove
(
entity
);
crossPlatformApproveState
=
entity
.
getCrossPlatformApproveState
();
...
...
src/main/java/com/csbr/qingcloud/portal/service/impl/EnterpriseChangeApproveServiceImpl.java
View file @
fe901ea
...
...
@@ -200,7 +200,13 @@ public class EnterpriseChangeApproveServiceImpl implements EnterpriseChangeAppro
String
crossPlatformApproveState
=
""
;
for
(
String
guid
:
guids
)
{
MfEnterpriseChangeApprove
entity
=
mfEnterpriseChangeApproveService
.
getById
(
guid
);
beforeRemove
(
entity
);
if
(
entity
==
null
)
{
continue
;
}
if
(
ApprovalStateEnum
.
CHECKING
.
getValue
().
equals
(
entity
.
getBizApproveState
())
||
ApprovalStateEnum
.
PASSED
.
getValue
().
equals
(
entity
.
getBizApproveState
()))
{
throw
new
CsbrSystemException
(
SystemError
.
DATA_DEL_ERROR
,
"审批中和审批通过的数据不能删除!"
);
}
mfEnterpriseChangeApproveService
.
removeById
(
guid
);
crossPlatformApproveState
=
entity
.
getCrossPlatformApproveState
();
}
...
...
src/main/java/com/csbr/qingcloud/portal/service/impl/EnterpriseServiceImpl.java
View file @
fe901ea
...
...
@@ -382,7 +382,13 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
String
crossPlatformApproveState
=
""
;
for
(
String
guid
:
guids
)
{
MfEnterprise
entity
=
mfEnterpriseService
.
getById
(
guid
);
beforeRemove
(
entity
);
if
(
entity
==
null
)
{
continue
;
}
if
(
ApprovalStateEnum
.
CHECKING
.
getValue
().
equals
(
entity
.
getBizApproveState
())
||
ApprovalStateEnum
.
PASSED
.
getValue
().
equals
(
entity
.
getBizApproveState
()))
{
throw
new
CsbrSystemException
(
SystemError
.
DATA_DEL_ERROR
,
"审批中和审批通过的数据不能删除!"
);
}
mfEnterpriseService
.
removeById
(
guid
);
afterRemove
(
entity
);
crossPlatformApproveState
=
entity
.
getCrossPlatformApproveState
();
...
...
@@ -806,7 +812,7 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
*/
private
void
beforeRemove
(
MfEnterprise
entity
)
{
if
(
entity
==
null
)
{
throw
new
CsbrSystemException
(
SystemError
.
DATA_DEL_ERROR
,
messageSourceUtil
.
notExistsToDelMessage
(
FUNCTION_NAME
))
;
return
;
}
if
(
ApprovalStateEnum
.
CHECKING
.
getValue
().
equals
(
entity
.
getBizApproveState
())
||
ApprovalStateEnum
.
PASSED
.
getValue
().
equals
(
entity
.
getBizApproveState
()))
{
...
...
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