Procházet zdrojové kódy

update

tags/v1.1.1
DengBiao před 2 roky
rodič
revize
888d89641a
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. +2
    -1
      db/db_order.go

+ 2
- 1
db/db_order.go Zobrazit soubor

@@ -23,11 +23,12 @@ func OrderListCountByUIDByOrderTypeByTime(Db *xorm.Engine, uid, buyType, state,
fmt.Println(str)
total, _ := Db.Where("uid = ? AND confirm_at > ? AND confirm_at < ? and settle_at=0", uid, stime, etime).In("state", state).Count(&model.OrdList{})
total1, _ := Db.Where("uid = ? AND confirm_at > ? AND confirm_at < ? and settle_at>0", uid, stime, etime).Count(&model.OrdList{})
total3, _ := Db.Where("uid = ? AND settle_at > ? AND settle_at < ? and confirm_at=0", uid, stime, etime).Count(&model.OrdList{})
total2, _ := Db.Where("uid = ? AND confirm_at > ? AND confirm_at < ? and state=?", uid, stime, etime, 1).Count(&model.PrivilegeCardOrd{})

fmt.Println(total)

return total + total1 + total2, nil
return total + total1 + total2 + total3, nil
}

// 查询用户某时间段内某状态的佣金(ord_id => amount)


Načítá se…
Zrušit
Uložit