Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
1676f67a
Commit
1676f67a
authored
Jan 08, 2020
by
linj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add index : owner_isSell_status
parent
6118adf4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
local_order_v2.go
plugin/dapp/trade/executor/local_order_v2.go
+4
-3
No files found.
plugin/dapp/trade/executor/local_order_v2.go
View file @
1676f67a
...
...
@@ -61,7 +61,6 @@ var optV2 = &table.Option{
"owner_asset_isSell"
,
// 接口 4
"owner_asset_status"
,
// 新需求, 在
"owner_isSell"
,
// 接口 6
// "owner_isSell_status", 可能需求, 界面分开显示订单
// "owner_isSell_statusPrefix", // 状态可以定制组合, 成交历史需求
"owner_status"
,
// 接口 2
"assset_isSell_isFinished"
,
// 用 isFinish, 进行订单是否完成的列表功能
...
...
@@ -72,6 +71,8 @@ var optV2 = &table.Option{
// https://chain.33.cn/document/105 1.8 sell & asset-price & status, order by price
// https://chain.33.cn/document/105 1.3 buy & asset-price & status, order by price
"asset_isSell_status_price"
,
// 1.2 15 按 用户状态来 addr-status buy or sell
"owner_isSell_status"
,
},
}
...
...
@@ -121,8 +122,8 @@ func (r *OrderV2Row) Get(key string) ([]byte, error) {
return
[]
byte
(
fmt
.
Sprintf
(
"%s_%s_%s"
,
r
.
Owner
,
r
.
asset
(),
r
.
status
())),
nil
case
"owner_isSell"
:
return
[]
byte
(
fmt
.
Sprintf
(
"%s_%d"
,
r
.
Owner
,
r
.
isSell
())),
nil
//case "owner_isSell_statusPrefix
":
// return []byte(fmt.Sprintf("%s_%d_%s", r.Owner, r.asset(), r.isSell
())), nil
case
"owner_isSell_status
"
:
return
[]
byte
(
fmt
.
Sprintf
(
"%s_%d_%s"
,
r
.
Owner
,
r
.
isSell
(),
r
.
status
())),
nil
case
"owner_status"
:
return
[]
byte
(
fmt
.
Sprintf
(
"%s_%s"
,
r
.
Owner
,
r
.
status
())),
nil
//case "owner_statusPrefix":
...
...
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