Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
go_sku_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b6f4903a
authored
Apr 13, 2026
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
temp
parent
c29758c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
13 deletions
doc/price_generation_logic_白话版.md
doc/price_generation_logic_白话版.md
View file @
b6f4903a
# 商品价
格生成逻辑说明(产品版)
# 商品价
格生成逻辑说明(产品版)
...
...
@@ -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)**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment