You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
1022 B
18 lines
1022 B
|
14 hours ago
|
# 05 · 联系人导入三段式
|
||
|
|
|
||
|
|
- **Type:** task
|
||
|
|
- **Status:** open
|
||
|
|
- **Blocked by:** 01, 02
|
||
|
|
|
||
|
|
## Question
|
||
|
|
|
||
|
|
按 spec 实现联系人导入(对齐客户导入先例 `CustomerImportExecutor` 三段式形态):
|
||
|
|
|
||
|
|
1. 模板下载(列集 = 6.2 字段:联系人*/职务*/联系电话/是否关键联系人/是否内线/礼品备注/来源…按 spec 定稿)。
|
||
|
|
2. 上传预检:Analyzer 校验**前移**(必填 + 字典值域 + 手机号查重 + 客户+姓名+职务疑似重复;迁移 D-05/D-04 教训——NOT NULL 无默认列群必填前移、fail_reason clip500、明细行保留)。
|
||
|
|
3. confirm 执行:行级写入 + 失败明细 + 任务终态;策略语义(SKIP/OVERWRITE 是否需要按 spec)。
|
||
|
|
4. 导入成功后触发图谱自动更新(调用票 03 的生成引擎;同步/异步按 spec)。
|
||
|
|
5. 单测:预检拒/行级失败/成功链路/触发更新。
|
||
|
|
|
||
|
|
**验收**:`mvn -pl crm-customer -am test` 全绿;本地起服手工三段式冒烟(含一行失败场景明细断言)。
|