Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
dealaccountdata
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 35ad8161
authored
Apr 25, 2026
by
林冲
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修正scenetype映射
1 parent
cc5eacea
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
scene_refactor_data/PROJECT_STRUCTURE.md
scene_refactor_data/scene_type_mapping.py
scene_refactor_data/PROJECT_STRUCTURE.md
View file @
35ad816
...
@@ -74,10 +74,10 @@
...
@@ -74,10 +74,10 @@
### scene_type != 0
### scene_type != 0
直接按映射更新 base_scene_code:
直接按映射更新 base_scene_code:
-
scene_type=1 → base_scene_code=1
10101
-
scene_type=1 → base_scene_code=1
00101 (精品升级)
-
scene_type=2 → base_scene_code=100102
-
scene_type=2 → base_scene_code=100102
(次新车升配)
-
scene_type=3 → base_scene_code=100103
-
scene_type=3 → base_scene_code=100103
(售后众筹)
-
scene_type=7 → base_scene_code=120101
-
scene_type=7 → base_scene_code=120101
(二手车收车)
### scene_type = 0
### scene_type = 0
拆分为4条记录:
拆分为4条记录:
...
...
scene_refactor_data/scene_type_mapping.py
View file @
35ad816
...
@@ -8,14 +8,14 @@
...
@@ -8,14 +8,14 @@
# scene_type 到 base_scene_code 的映射
# scene_type 到 base_scene_code 的映射
# scene_type != 0 的一对一映射
# scene_type != 0 的一对一映射
SCENE_TYPE_MAPPING
=
{
SCENE_TYPE_MAPPING
=
{
1
:
'1
10101'
,
# 精品升级
1
:
'1
00101'
,
# 精品升级 (biz_type=1)
2
:
'100102'
,
# 次新车升配
2
:
'100102'
,
# 次新车升配
(biz_type=1)
3
:
'100103'
,
# 售后众筹
3
:
'100103'
,
# 售后众筹
(biz_type=1)
7
:
'120101'
,
# 二手车收车
7
:
'120101'
,
# 二手车收车
(biz_type=6)
# scene_type = 0 需要拆分为4条,单独处理
# scene_type = 0 需要拆分为4条,单独处理
}
}
# scene_type = 0 的拆分映射(会员权益
场景
)
# scene_type = 0 的拆分映射(会员权益
和延保场景,biz_type=2
)
SCENE_TYPE_0_SPLIT
=
[
SCENE_TYPE_0_SPLIT
=
[
'110101'
,
# 售前会员权益升级(原记录更新为此值)
'110101'
,
# 售前会员权益升级(原记录更新为此值)
'110102'
,
# 售后会员权益升级(复制插入)
'110102'
,
# 售后会员权益升级(复制插入)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment