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
4a87a78b
authored
2025-10-15 19:26:08 +0800
by
xu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
可信空间连接器入住接口
1 parent
1f8acf01
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
src/main/java/com/csbr/qingcloud/portal/service/impl/TdsConnectorIdentityManagementServiceImpl.java
src/main/java/com/csbr/qingcloud/portal/service/impl/TdsConnectorIdentityManagementServiceImpl.java
View file @
4a87a78
...
...
@@ -36,6 +36,7 @@ import org.springframework.beans.factory.annotation.Value;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
/**
...
...
@@ -371,8 +372,9 @@ public class TdsConnectorIdentityManagementServiceImpl extends FlowAbstractImpl
ApprovalStateEnum
.
REJECT
.
getValue
(),
ApprovalStateEnum
.
DISABLE
.
getValue
());
//根据使用场景查询
queryWrapper
.
eq
(
MfTdsConnectorIdentityManagement:
:
getUseScenariosCode
,
rqVO
.
getUseScenariosCode
());
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
//期望效期有效的
queryWrapper
.
g
t
(
MfTdsConnectorIdentityManagement:
:
getExpirationTime
,
new
Date
(
));
queryWrapper
.
g
e
(
MfTdsConnectorIdentityManagement:
:
getExpirationTime
,
sdf
.
format
(
new
Date
()
));
if
(
mfTdsConnectorIdentityManagementService
.
count
(
queryWrapper
)>
0
){
throw
new
CsbrSystemException
(
SystemError
.
DATA_ALREADY_EXISTS
,
"该连接器的使用场景已经存在。"
);
}
...
...
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