- sku comment
This commit is contained in:
@@ -154,7 +154,7 @@ func IsFakeID(id int64) bool {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
multiple := id / genFakeID1()
|
multiple := id / genFakeID1()
|
||||||
return multiple == 2 || multiple == 3 || multiple == 4
|
return multiple >= 2 && multiple <= 4
|
||||||
}
|
}
|
||||||
|
|
||||||
func FormalizePageSize(pageSize int) int {
|
func FormalizePageSize(pageSize int) int {
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ func (p *PurchaseHandler) cuSku(db *dao.DaoDB, sku *model.Sku, handler func(skuE
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if err == nil {
|
if err == nil {
|
||||||
skuName := jxutils.ComposeSkuName(skuInfoExt.Prefix, skuInfoExt.Name, skuInfoExt.Comment, skuInfoExt.Unit, sku.SpecQuality, sku.SpecUnit, 0)
|
skuName := jxutils.ComposeSkuName(skuInfoExt.Prefix, skuInfoExt.Name, sku.Comment, skuInfoExt.Unit, sku.SpecQuality, sku.SpecUnit, 0)
|
||||||
skuPrice := jxutils.CaculateSkuPrice(skuInfoExt.Price, sku.SpecQuality, sku.SpecUnit, skuInfoExt.Unit)
|
skuPrice := jxutils.CaculateSkuPrice(skuInfoExt.Price, sku.SpecQuality, sku.SpecUnit, skuInfoExt.Unit)
|
||||||
result, err2 := handler(&skuInfoExt, skuPrice, skuName, shopCategories, addParams)
|
result, err2 := handler(&skuInfoExt, skuPrice, skuName, shopCategories, addParams)
|
||||||
if err = err2; err == nil {
|
if err = err2; err == nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user