Commit b6f4903a by 杨树贤

temp

parent c29758c0
Showing with 4 additions and 13 deletions
# 商品价格生成逻辑说明(产品版)
# 商品价格生成逻辑说明(产品版)
......@@ -11,7 +11,7 @@
## 二、猎芯的价格生成流程
### 第一步:基础价格计算(GetCoefficientAndPrice)
### 第一步:售价计算(GetCoefficientAndPrice)
#### 情况A:专卖供应商(supplier_id = 17,自营渠道)
......@@ -64,17 +64,6 @@
折扣系数用于对成本价进行折扣调整,**主要适用于代购渠道**(专营渠道基本为1,即无折扣)。
**数据来源(Redis):**
| 供应商类型 | 配置Key | 默认Key |
|-----------|---------|---------|
| 代购(supplier_id ≠ 17)| `magic_cube_channel_discount_daigou` | `magic_cube_channel_discount_default_daigou` |
| 专营(supplier_id = 17)| `magic_cube_channel_discount_zhuanying` | `magic_cube_channel_discount_default_zhuanying` |
**专营供应商的Key格式:**
- 猎芯(OrgId = 1):渠道编码(如 `L0018319`
- 爱智/华云(OrgId = 3):`渠道编码-_组织ID`(如 `L0018319-_3`
**多条件匹配逻辑(按优先级从高到低):**
系统会尝试匹配最精确的折扣系数,匹配优先级:
......@@ -127,6 +116,8 @@
---
**核心方法:GenerateLadderPrice(生成阶梯价)**
**适用范围:专营供应商(supplier_id = 17)**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment