|
|
@@ -29,6 +29,15 @@ func B2cOrdByTime(Db *xorm.Engine, uid, buyType, state, stime, etime interface{} |
|
|
|
return total, nil |
|
|
|
|
|
|
|
} |
|
|
|
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{}) |
|
|
|
fmt.Println(err) |
|
|
|
fmt.Println(total) |
|
|
|
if err != nil { |
|
|
|
return 0, zhios_condition_statistics_logx.Error(err) |
|
|
|
} |
|
|
|
return total, nil |
|
|
|
} |
|
|
|
|
|
|
|
func B2cOrd(Db *xorm.Engine, uid, buyType, state interface{}, isSettle int) (float64, error) { |
|
|
|
sess := Db.Where("uid = ? ", uid) |
|
|
|