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
81d2d33d
authored
2025-11-04 10:32:59 +0800
by
xiaojie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
【数据资产】
1、合约备案查询签署时间
1 parent
b8fdcfe1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
src/main/java/com/csbr/qingcloud/portal/domain/vo/ConnectorIdentityRQVO.java
src/main/java/com/csbr/qingcloud/portal/service/impl/DataPortServiceImpl.java
src/main/java/com/csbr/qingcloud/portal/domain/vo/ConnectorIdentityRQVO.java
View file @
81d2d33
...
...
@@ -35,4 +35,10 @@ public class ConnectorIdentityRQVO {
@NotBlank
(
message
=
"接入连接器身份标识为空."
)
private
String
connectorIdentity
;
/**
* 凭证颁发日期
*/
@Schema
(
description
=
"凭证颁发日期"
)
private
Date
credentialTime
;
}
...
...
src/main/java/com/csbr/qingcloud/portal/service/impl/DataPortServiceImpl.java
View file @
81d2d33
...
...
@@ -38,6 +38,7 @@ import org.springframework.util.Base64Utils;
import
org.springframework.web.multipart.MultipartFile
;
import
java.io.FileOutputStream
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
...
...
@@ -237,6 +238,19 @@ public class DataPortServiceImpl implements DataPortService {
}
}
// 凭证颁发日期转换
String
authTime
=
connectorRegisterRSVO
.
getAuthTime
();
if
(
StringUtils
.
isNotEmpty
(
authTime
))
{
SimpleDateFormat
dataFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
try
{
Date
parse
=
dataFormat
.
parse
(
authTime
);
entity
.
setCredentialTime
(
parse
);
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
();
log
.
error
(
"凭证颁发日期转换出错."
);
}
}
// 修改接入连接器身份标识
entity
.
setConnectorIdentity
(
connectorRegisterRSVO
.
getIdentityCode
());
mfTdsConnectorIdentityService
.
updateById
(
entity
);
...
...
@@ -247,6 +261,7 @@ public class DataPortServiceImpl implements DataPortService {
JSONObject
data
=
new
JSONObject
();
data
.
put
(
"guid"
,
entity
.
getGuid
());
data
.
put
(
"connectorIdentity"
,
entity
.
getConnectorIdentity
());
data
.
put
(
"credentialTime"
,
entity
.
getCredentialTime
());
jsonObject
.
put
(
"zqData"
,
data
.
toJSONString
());
invokeUtil
.
invokeMainDel
(
jsonObject
,
zqConfig
.
getAppKey
(),
zqConfig
.
getReceiveUrl
());
log
.
info
(
"======连接器注册结束======"
);
...
...
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