Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!
Open sidebar
chainweaver
ida
registration-service
Commits
f2f01dbd
Commit
f2f01dbd
authored
8 months ago
by
kunkkawu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1b9394d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
internal/logic/assetlistlogic.go
internal/logic/assetlistlogic.go
+2
-2
No files found.
internal/logic/assetlistlogic.go
View file @
f2f01dbd
...
...
@@ -82,9 +82,9 @@ func (l *AssetListLogic) AssetList(in *registrationpb.AssetListReq) (*registrati
var
assetList
[]
*
model
.
AssetFull
sub1
:=
fmt
.
Sprintf
(
"SELECT asset_id from asset_chain_info where chain_info_id = %d "
+
"and on_chain_status !=
0
and deleted_at is NULL"
,
in
.
ChainInfoId
)
"and on_chain_status !=
%d
and deleted_at is NULL"
,
in
.
ChainInfoId
,
model
.
OnChainStatusNo
)
sub2
:=
fmt
.
Sprintf
(
"SELECT asset_id from asset_chain_info where chain_info_id = %d "
+
"and on_chain_status !=
0
and deleted_at is NULL"
,
in
.
ChainInfoId
)
"and on_chain_status !=
%d
and deleted_at is NULL"
,
in
.
ChainInfoId
,
model
.
OnChainStatusNo
)
// 查询其他链的资产,并输出唯一的资产id
sql1
:=
fmt
.
Sprintf
(
"SELECT asset_id from asset_chain_info where "
+
" deleted_at is NULL and asset_id not in(%s) group by asset_chain_info.asset_id"
,
sub1
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment