浏览代码

更新

master
huangjiajun 8 个月前
父节点
当前提交
cac70dbcfc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      db/db_b2c_ord.go

+ 1
- 1
db/db_b2c_ord.go 查看文件

@@ -30,7 +30,7 @@ func B2cOrdByTime(Db *xorm.Engine, uid, buyType, state, stime, etime interface{}

}
func B2cOrdByTimeWithCount(Db *xorm.Engine, uid, buyType, state, stime, etime interface{}) (int64, error) {
total, err := Db.Where("uid = ? AND confirm_time > ? AND confirm_time < ?", uid, stime, etime).In("state", state).Count(&model.B2cOrd{})
total, err := Db.Where("uid = ? AND finish_time > ? AND finish_time < ?", uid, stime, etime).In("state", state).Count(&model.B2cOrd{})
fmt.Println(err)
fmt.Println(total)
if err != nil {


正在加载...
取消
保存