创建标品测试
This commit is contained in:
@@ -1874,7 +1874,9 @@ func CreateUpcSkuByExcelBin(ctx *jxcontext.Context, reader io.Reader, categoryID
|
|||||||
return retVal, err
|
return retVal, err
|
||||||
}
|
}
|
||||||
skuNames, _ := dao.GetSkuNames(db, nil, []string{*v.Upc}, "", false)
|
skuNames, _ := dao.GetSkuNames(db, nil, []string{*v.Upc}, "", false)
|
||||||
|
fmt.Println(utils.Format4Output(skuNames, false))
|
||||||
if len(skuNames) > 0 {
|
if len(skuNames) > 0 {
|
||||||
|
fmt.Println("test111111111111111111111111111111111111111")
|
||||||
retVal = []*CreateUpcSkuByExcelErr{buildCreateUpcSkuByExcelErr(v, "商品在京西库中已存在!")}
|
retVal = []*CreateUpcSkuByExcelErr{buildCreateUpcSkuByExcelErr(v, "商品在京西库中已存在!")}
|
||||||
return retVal, err
|
return retVal, err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
package dao
|
package dao
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
|
|
||||||
"git.rosy.net.cn/baseapi/platformapi/aliupcapi"
|
"git.rosy.net.cn/baseapi/platformapi/aliupcapi"
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
"git.rosy.net.cn/jx-callback/business/model"
|
"git.rosy.net.cn/jx-callback/business/model"
|
||||||
@@ -149,8 +147,6 @@ func GetSkuNames(db *DaoDB, nameIDs []int, upcs []string, name string, isExd boo
|
|||||||
if !isExd {
|
if !isExd {
|
||||||
sql += " AND t2.exd_sku_id <> ''"
|
sql += " AND t2.exd_sku_id <> ''"
|
||||||
}
|
}
|
||||||
fmt.Println(sql)
|
|
||||||
fmt.Println(sqlParams)
|
|
||||||
if err = GetRows(db, &skuNameList, sql, sqlParams...); err == nil {
|
if err = GetRows(db, &skuNameList, sql, sqlParams...); err == nil {
|
||||||
return skuNameList, nil
|
return skuNameList, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user