Explorar o código

promotion for go 5

abiao %!s(int64=2) %!d(string=hai) anos
pai
achega
e55463ede7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      go/gopath/src/fohow.com/apps/models/order_model/order.go

+ 1 - 1
go/gopath/src/fohow.com/apps/models/order_model/order.go

@@ -932,7 +932,7 @@ func GetNotInvovedAmount(promotionId int64, orderId string) int64 {
     	AND IF(od.nums IS NULL, 0, od.nums) > 0;
 		`
 
-	var results []PromotionPds
+	var results []*PromotionPds
 	db := orm.NewOrm()
 	_, err := db.Raw(sql, promotionId, orderId).QueryRows(&results)
 	if err != nil {