All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m6s
店铺被软删除后,GORM 默认过滤 deleted_at IS NOT NULL 的记录, 导致查询店铺名称时找不到对应店铺,shop_name 字段被 omitempty 省略。 修复方案:在加载店铺名称的查询中添加 Unscoped(),包含已删除的店铺。 影响接口: - GET /api/admin/devices(设备列表) - GET /api/admin/iot-cards/standalone(独立卡列表) - GET /api/admin/asset-allocation-records(分配记录列表) - GET /api/admin/enterprises(企业列表) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>