银豹添加商品后缀
This commit is contained in:
@@ -722,6 +722,20 @@ func AddSkuName(ctx *jxcontext.Context, skuNameExt *model.SkuNameExt, userName s
|
|||||||
skuNameExt.SpecUnit = skuNameExt.Skus[0].SpecUnit
|
skuNameExt.SpecUnit = skuNameExt.Skus[0].SpecUnit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if skuNameExt.YbNameSuffix == "" {
|
||||||
|
var name *model.SkuName
|
||||||
|
sql := "SELECT * FROM sku_name WHERE yb_name_suffix <> '' ORDER BY yb_name_suffix DESC LIMIT 1"
|
||||||
|
dao.GetRow(db, &name, sql, nil)
|
||||||
|
if name != nil {
|
||||||
|
// prefix := utils.Int64ToStr(utils.Str2Int64(storeMap2.YbStorePrefix) + 1)
|
||||||
|
// realPrefix := prefix
|
||||||
|
// for i := 0; i < 3-len(prefix); i++ {
|
||||||
|
// realPrefix = "0" + realPrefix
|
||||||
|
// }
|
||||||
|
// storeMap.YbStorePrefix = realPrefix
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
picType := true
|
picType := true
|
||||||
for _, imgName := range []string{skuNameExt.Img, skuNameExt.Img2} {
|
for _, imgName := range []string{skuNameExt.Img, skuNameExt.Img2} {
|
||||||
if imgName != "" {
|
if imgName != "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user