This commit is contained in:
aozhiwei 2024-06-29 16:51:13 +08:00
parent 5831e3a8bf
commit 106065bcda
2 changed files with 3 additions and 1 deletions

View File

@ -36,7 +36,7 @@ WHERE A.idx > %d AND A.net_id = %d AND A.owner_address=? `,
if filterType == 1 {
sql += " AND B.status = '" + jccommon.ORDER_STATUS_ACTIVE + "' "
} 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{}
{

View File

@ -19,6 +19,7 @@ type StreamPagination struct {
NextCursor string `json:"next_cursor"`
PreviousCursor string `json:"previous_cursor"`
Remaining int32 `json:"remaining"`
Count int32 `json:"count"`
}
type ShopCartGoods struct {
@ -70,6 +71,7 @@ func (this* StreamPagination) FillPage(page *f5.StreamPagination) {
if page.PreviousCursor != 0 {
this.PreviousCursor = q5.ToString(page.PreviousCursor)
}
this.Count = page.Count
this.Remaining = page.Remaining
}