1、租赁订单排序优化,修复热门类型一直显示已抢光的缺陷;
This commit is contained in:
parent
7cf9a25bf4
commit
8c52102d44
|
@ -2052,7 +2052,7 @@ func NewGetGameCardList(sortType, page, pageSize int, gameTypeIds []uint64, stor
|
|||
}
|
||||
effectiveStoreListStr := fmt.Sprintf("(%s)", strings.Trim(strings.Join(strings.Fields(fmt.Sprint(effectiveStoreList)), ","), "[]"))
|
||||
|
||||
if homeCategoryInfo.AllFlag == 1 && homeCategoryInfo.OrderFlag != 1 {
|
||||
if homeCategoryInfo.AllFlag == 1 {
|
||||
if storeId != 0 {
|
||||
var cardStocks []GameCardGoodsStock
|
||||
cardStockSql1 := fmt.Sprintf("SELECT a.* FROM game_card_goods_stock a LEFT JOIN game_card b ON a.game_card_id=b.id WHERE a.store_id=%d AND a.store_id IN %s AND a.rent_stock>0 ORDER BY b.id ASC;", storeId, effectiveStoreListStr)
|
||||
|
|
Loading…
Reference in New Issue
Block a user