|
|
@@ -158,7 +158,7 @@ func GetLatest(page, perPage, recommend, priceSort, saleSort int64, ptype string
|
|
|
order by %s limit %d, %d;
|
|
|
`
|
|
|
sql = fmt.Sprintf(sql, orderSql, (page-1)*perPage, perPage)
|
|
|
- beego.BeeLogger.Warn("sql=%s", sql)
|
|
|
+ //beego.BeeLogger.Warn("sql=%s", sql)
|
|
|
_, err := orm.NewOrm().Raw(sql, 1, recommend, true, ptype).QueryRows(&products)
|
|
|
|
|
|
if err != nil {
|
|
|
@@ -255,7 +255,7 @@ func GetProductsByCatId(cId, page, perPage, priceSort, saleSort int64, words str
|
|
|
order by %s limit %d, %d ;
|
|
|
`
|
|
|
sql = fmt.Sprintf(sql, cidSql, orderSql, (page-1)*perPage, perPage)
|
|
|
- beego.BeeLogger.Warn("cate sql=%s", sql)
|
|
|
+ //beego.BeeLogger.Warn("cate sql=%s", sql)
|
|
|
_, err := orm.NewOrm().Raw(sql, 1, true, TYPE_DIRECT_SALE).QueryRows(&products)
|
|
|
|
|
|
if err != nil {
|