Bläddra i källkod

更新

master
huangjiajun 1 år sedan
förälder
incheckning
3c51e05070
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. +2
    -2
      db/db_mall_order.go

+ 2
- 2
db/db_mall_order.go Visa fil

@@ -67,9 +67,9 @@ func MallOrderRelateListByTimeByState(Db *xorm.Engine, uid, state, startTime, en
func MallOrdByTime(Db *xorm.Engine, uid, buyType, state, stime, etime interface{}) (float64, error) {
sess := Db.Where("uid = ? AND state in (?) ", uid, state)
if state == "1,2,3" {
sess = sess.And(" create_time > ? AND create_time < ?", uid, state, stime, etime)
sess = sess.And(" create_time > ? AND create_time < ?", stime, etime)
} else {
sess = sess.And(" confirm_time > ? AND confirm_time < ?", uid, state, stime, etime)
sess = sess.And(" confirm_time > ? AND confirm_time < ?", stime, etime)
}
if zhios_condition_statistics_utils.AnyToInt64(buyType) > 0 {
sess.And("order_type", buyType)


Laddar…
Avbryt
Spara