This commit is contained in:
邹宗楠
2023-06-28 13:52:59 +08:00
parent bb06166986
commit b74594f4bf
3 changed files with 17 additions and 10 deletions

View File

@@ -3597,18 +3597,20 @@ func jxStatusTransForm(categoryName string) []string {
// 根据不同平台判断返回不同的价格类型
func vendorPriceTransForm(storeSkuExt *dao.StoreSkuExt, vendorID int) int64 {
switch vendorID {
case 1:
case model.VendorIDMTWM:
return int64(storeSkuExt.MtwmPrice)
case 0:
case model.VendorIDJD:
return int64(storeSkuExt.JdPrice)
case 3:
case model.VendorIDEBAI:
return int64(storeSkuExt.EbaiPrice)
case 4:
case model.VendorIDYB:
return int64(storeSkuExt.YbPrice)
case 5:
case model.VendorIDJDShop:
return int64(storeSkuExt.JdsPrice)
case 14:
case model.VendorIDDD:
return int64(storeSkuExt.DdPrice)
case model.VendorIDTaoVegetable:
return int64(storeSkuExt.TaoPrice)
default:
return 0
}