- store sku GetStoreSkus.

This commit is contained in:
gazebo
2018-09-13 18:34:44 +08:00
parent deaee35464
commit 99c60d2233
7 changed files with 237 additions and 6 deletions

View File

@@ -9,7 +9,6 @@ import (
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/business/model"
"git.rosy.net.cn/jx-callback/business/model/dao"
"git.rosy.net.cn/jx-callback/globals"
)
type SkuNameExt struct {
@@ -230,6 +229,7 @@ func GetSkuNames(keyword string, params map[string]interface{}, offset, pageSize
t1.created_at,
t1.updated_at,
t1.last_operator,
t1.deleted_at,
t1.prefix,
t1.name,
t1.comment,
@@ -248,6 +248,7 @@ func GetSkuNames(keyword string, params map[string]interface{}, offset, pageSize
t1.created_at,
t1.updated_at,
t1.last_operator,
t1.deleted_at,
t1.prefix,
t1.name,
t1.comment,
@@ -271,7 +272,7 @@ func GetSkuNames(keyword string, params map[string]interface{}, offset, pageSize
}
sqlParams = append(sqlParams, pageSize, offset)
skuNamesInfo = &SkuNamesInfo{}
globals.SugarLogger.Debug(sqlData)
// globals.SugarLogger.Debug(sqlData)
if err = dao.GetRows(db, &skuNamesInfo.SkuNames, sqlData, sqlParams...); err == nil {
countInfo := &struct{ Ct int }{}
if err = dao.GetRow(db, countInfo, "SELECT FOUND_ROWS() ct"); err == nil {