版本:v1.0|执行:小齐|时间:2026-09-14 00:2x|基线 HEAD:9b88ece9(推送后c833f77d)
依据设计文档:docs/reports/gpt6-评审-2026-09-13/03-波波小齐苦力活长线包设计.md(14 要素 / 12 字段证据 / P0-P3)
依赖:B05(波波商户入驻资料模型)、现有商户接口;不改核心代码,缺陷回原包
Q04「商户资料完整性巡检包」。目标:对商户域 9 项字段域(资料/联系人/收款账户/资质证照/staff/角色权限/状态/营业时间/位置坐标)做字段存在性、接口暴露与脱敏、权限一致性核验。
merchants、merchant_profiles、merchant_staff、merchant_applications、merchant_positions、merchant_position_perms、merchant_service_fee_profiles、distributorsGET /api/miniapp/merchants(公开列表)| # | 字段域 | 判定口径 |
|---|---|---|
| ① | 基本资料 | 名称/业态/区域/简介/形象 |
| ② | 联系人 | 联系人姓名与电话 |
| ③ | 收款账户 | 结算账户/开户信息 |
| ④ | 资质证照 | 营业执照/许可 |
| ⑤ | staff | 员工归属 |
| ⑥ | 角色权限 | 岗位与权限 |
| ⑦ | 状态 | 商户/员工/申请状态 |
| ⑧ | 营业时间 | 营业时段 |
| ⑨ | 位置坐标 | 经纬度 |
登录 staging 库取 information_schema.columns → 逐域比对字段 → 调公开商户接口取响应字段 → 判定脱敏与完整性。
全部为只读查询;可重复执行,证据按版本落盘。
| 项 | 设计/预期 | 实测 |
|---|---|---|
| 营业时间 | 应有承载字段 | 全库无营业时间字段 |
| 收款账户 | 应有承载字段 | merchants 无账户字段,仅有 payment_mode/offline_direct_flag |
| 资质证照 | 入驻后应留存 | 仅 merchant_applications.business_license(申请期),正式商户表无 |
| 评分 | 红线口径"商户平等·无评分"待拍板 | merchant_profiles.rating/review_count 存在且接口返回 rating/reviewCount |
phone?(当前明文返回)rating/reviewCount 与"商户平等·无评分"红线的最终口径(关联 OBS-01,待刘总拍板)information_schema.columns)merchants(16 列):id / name / industry / region / owner_user_id / status / created_at / is_test / temple_id / payment_mode / offline_direct_flag / platform_no_involvement_note / highlights_text / business_type / quota_tier / service_fee_paid_atmerchant_profiles(16 列):merchant_id / avatar / cover / description / address / phone / lat / lng / rating / review_count / leader_recommended / recommended_by / is_old_friend / last_visit / updated_at / is_testmerchant_staff(8 列):id / merchant_id / user_id / role / status / invited_by / created_at / is_testmerchant_applications(20 列):含 applicant_name/phone、contact_name/contact_phone、business_license、status / reviewer_user_id / reviewed_at / review_note / approved_merchant_id / is_testmerchant_positions(4) / merchant_position_perms(4) / merchant_service_fee_profiles(15) / distributors(12)| # | 字段域 | 承载 | 结果 |
|---|---|---|---|
| ① | 基本资料 | merchants + merchant_profiles | ✅ 在位 |
| ② | 联系人 | merchant_profiles.phone;merchant_applications.contact_name/phone | ✅ 在位(接口明文暴露,见 D-02) |
| ③ | 收款账户 | 无 bank/settlement 列 | ⚠️ GAP(待核心席确认承载位置) |
| ④ | 资质证照 | 仅申请期 business_license | ⚠️ 入驻后无留存 |
| ⑤ | staff | merchant_staff | ✅ |
| ⑥ | 角色权限 | merchant_staff.role + merchant_positions + merchant_position_perms | ✅ |
| ⑦ | 状态 | merchants.status / merchant_staff.status / merchant_applications.status | ✅ |
| ⑧ | 营业时间 | 无 | 🔴 GAP 缺失 |
| ⑨ | 位置坐标 | merchant_profiles.lat/lng | ✅ 字段在位(样例值 0,0=未录入) |
GET /api/miniapp/merchants9b88ece9→c833f77daddress, avatar, category, cover, description, id, isOldFriend, lastVisit, leaderRecommended, location, name, phone, rating, recommendedBy, reviewCount, statusphone 明文返回、rating/reviewCount 返回⑧ 营业时间merchants / merchant_profiles / merchant_applications 均无营业时段承载列③ 收款账户merchants 仅有 payment_mode / offline_direct_flag / platform_no_involvement_note,无账户号/开户行等列GET /api/miniapp/merchants → phonemerchant_profiles.rating / review_count 存在,且公开接口返回 rating / reviewCount;与「商户平等·无评分」红线口径待刘总裁定{"lat":0,"lng":0}=未录入(数据问题,非字段缺失)