abiao лет назад: 5
Родитель
Сommit
58c8ead523

+ 2 - 0
go/gopath/src/fohow.com/apps/controllers/order_controller/order_controller.go

@@ -467,6 +467,7 @@ func (self *OrderController) Detail() {
 		product.ColorName = item.ColorName
 		product.ColorName = item.ColorName
 		product.OrderCount = item.Count
 		product.OrderCount = item.Count
 		product.IsZeng = item.Send
 		product.IsZeng = item.Send
+		product.Commend = item.Commend
 		o.Count += item.Count
 		o.Count += item.Count
 		if product.SeckilShowPrice > 0 {
 		if product.SeckilShowPrice > 0 {
 			now := time.Now()
 			now := time.Now()
@@ -539,6 +540,7 @@ func (self *OrderController) List() {
 			item.Count += orderItem.Count
 			item.Count += orderItem.Count
 			product.OrderCount = orderItem.Count
 			product.OrderCount = orderItem.Count
 			product.IsZeng = orderItem.Send
 			product.IsZeng = orderItem.Send
+			product.Commend = orderItem.Commend
 
 
 			if product.SeckilShowPrice > 0 {
 			if product.SeckilShowPrice > 0 {
 				now := time.Now()
 				now := time.Now()

+ 6 - 6
go/gopath/src/fohow.com/apps/models/product_model/product.go

@@ -99,12 +99,12 @@ type Product struct {
 	ShowFlag         bool   `orm:"column(show_flag)"                          json:"-"`                         // varchar(255)
 	ShowFlag         bool   `orm:"column(show_flag)"                          json:"-"`                         // varchar(255)
 	SizeId           int64  `orm:"column(size_id)"                          json:"size_id"`                     // varchar(255)
 	SizeId           int64  `orm:"column(size_id)"                          json:"size_id"`                     // varchar(255)
 	ColorId          int64  `orm:"column(color_id)"                          json:"color_id"`                   // varchar(255)
 	ColorId          int64  `orm:"column(color_id)"                          json:"color_id"`                   // varchar(255)
-	HaveSize         bool   `orm:"-"                         json:"have_size"`                                  // bool
-	IsZeng           bool   `orm:"-"                         json:"is_zeng"`                                    // bool
-	SizeName         string `orm:"-"                       json:"size_name"`                                    // varchar(255)
-	ColorName        string `orm:"-"                       json:"color_name"`                                   // varchar(255)
-	SinglePurchLimit int64  `orm:"column(single_purch_limit)"     json:"-"`                                     // varchar(255)
-
+	HaveSize         bool   `orm:"-"                                     json:"have_size"`                      // bool
+	IsZeng           bool   `orm:"-"                                     json:"is_zeng"`                        // bool
+	SizeName         string `orm:"-"                                     json:"size_name"`                      // varchar(255)
+	ColorName        string `orm:"-"                                     json:"color_name"`                     // varchar(255)
+	SinglePurchLimit int64  `orm:"column(single_purch_limit)"            json:"-"`                              // varchar(255)
+	Commend          bool   `orm:"-"                                     json:"commend"`                        // bool
 }
 }
 
 
 //获取最新推荐商品
 //获取最新推荐商品