浏览代码

update sold count static function

abiao 4 年之前
父节点
当前提交
66ef5c2ff9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      go/gopath/src/fohow.com/apps/models/order_model/order_dt_item.go

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

@@ -86,7 +86,7 @@ func GetOrderDetailPackages(orderDtId, nums int64, useCache bool) (list []*Produ
 
 	sql :=
 		fmt.Sprintf(`
-		select product_id as item_id,title as item_title,nums/%d as nums from
+		select product_id as item_id,title as item_title,ceil(nums/%d) as nums from
 		order_base_details
 		where order_dt_id = ?  ;
 		`, nums)