1
This commit is contained in:
parent
5831e3a8bf
commit
106065bcda
@ -36,7 +36,7 @@ WHERE A.idx > %d AND A.net_id = %d AND A.owner_address=? `,
|
|||||||
if filterType == 1 {
|
if filterType == 1 {
|
||||||
sql += " AND B.status = '" + jccommon.ORDER_STATUS_ACTIVE + "' "
|
sql += " AND B.status = '" + jccommon.ORDER_STATUS_ACTIVE + "' "
|
||||||
} else if filterType == 2 {
|
} else if filterType == 2 {
|
||||||
sql += " AND B.status <> '" + jccommon.ORDER_STATUS_ACTIVE + "' "
|
sql += " AND (B.status IS NULL OR B.status <> '" + jccommon.ORDER_STATUS_ACTIVE + "') "
|
||||||
}
|
}
|
||||||
subFilters := []f5.DbQueryFilter{}
|
subFilters := []f5.DbQueryFilter{}
|
||||||
{
|
{
|
||||||
|
@ -19,6 +19,7 @@ type StreamPagination struct {
|
|||||||
NextCursor string `json:"next_cursor"`
|
NextCursor string `json:"next_cursor"`
|
||||||
PreviousCursor string `json:"previous_cursor"`
|
PreviousCursor string `json:"previous_cursor"`
|
||||||
Remaining int32 `json:"remaining"`
|
Remaining int32 `json:"remaining"`
|
||||||
|
Count int32 `json:"count"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ShopCartGoods struct {
|
type ShopCartGoods struct {
|
||||||
@ -70,6 +71,7 @@ func (this* StreamPagination) FillPage(page *f5.StreamPagination) {
|
|||||||
if page.PreviousCursor != 0 {
|
if page.PreviousCursor != 0 {
|
||||||
this.PreviousCursor = q5.ToString(page.PreviousCursor)
|
this.PreviousCursor = q5.ToString(page.PreviousCursor)
|
||||||
}
|
}
|
||||||
|
this.Count = page.Count
|
||||||
this.Remaining = page.Remaining
|
this.Remaining = page.Remaining
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user