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
81bb30ec
authored
2025-10-30 10:19:51 +0800
by
xiaojie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
【数据资产】
1、连接器入驻作废旧数据报错
1 parent
574a6345
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletions
src/main/java/com/csbr/qingcloud/portal/service/impl/DataPortServiceImpl.java
src/main/java/com/csbr/qingcloud/portal/service/impl/DataPortServiceImpl.java
View file @
81bb30e
...
...
@@ -167,7 +167,31 @@ public class DataPortServiceImpl implements DataPortService {
log
.
info
(
"======法人用户更新开始======"
);
MfEnterprise
mfEnterprise
=
csbrBeanUtil
.
convert
(
entity
,
MfEnterprise
.
class
);
EnterpriseRegisterRQVO
enterpriseRegisterRQVO
=
beforeEnterprise
(
mfEnterprise
);
dataPortConnectUtil
.
postByAuthKey
(
enterpriseRegisterRQVO
,
dataPortConfig
.
getEnterpriseUpdateUri
());
ByteArrayResource
resource
=
dataPortConnectUtil
.
postByAuthKeyForFile
(
enterpriseRegisterRQVO
,
dataPortConfig
.
getEnterpriseUpdateUri
());
if
(
ObjectUtils
.
isNotEmpty
(
resource
))
{
byte
[]
resourceByteArray
=
resource
.
getByteArray
();
String
resp
=
new
String
(
resourceByteArray
);
// 判断返回值
if
(
resp
.
contains
(
"code"
))
{
JSONObject
respJson
=
JSON
.
parseObject
(
resp
);
Integer
code
=
respJson
.
getInteger
(
"code"
);
if
(
code
!=
200
&&
!
resp
.
contains
(
"统一社会信用代码已存在"
))
{
throw
new
CsbrSystemException
(
SystemError
.
DATA_GET_ERROR
,
respJson
.
getString
(
"message"
));
}
}
else
{
String
fileName
=
"身份凭证.png"
;
MultipartFile
image
=
new
MockMultipartFile
(
fileName
,
fileName
,
"application/octet-stream"
,
resourceByteArray
);
String
url
=
(
String
)
daopCommonFeign
.
uploadImage
(
image
).
getData
();
log
.
info
(
"======url======, {}"
,
url
);
LambdaUpdateWrapper
<
MfEnterprise
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
updateWrapper
.
set
(
MfEnterprise:
:
getTrustedIdentityCredential
,
url
);
updateWrapper
.
set
(
MfEnterprise:
:
getCredentialTime
,
new
Date
());
updateWrapper
.
eq
(
MfEnterprise:
:
getGuid
,
entity
.
getGuid
());
mfEnterpriseService
.
update
(
updateWrapper
);
}
}
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