POST/shop/updateShop管理后台

Shop-更新

商户·店铺·基础数据 / 店铺· ShopController#updateShop

基本信息

  • 接口状态前端在用 置信度 高
  • 接口URLPOSThttps://dscp-dev.hn12301.net/manage-api/shop/updateShop
  • 请求方式POST
  • Content-Typeapplication/json
  • 暴露渠道管理后台 前缀 /manage-api
  • 名称来源源码注释
  • 调用方已确认在用 · 管理后台(1 个前端)
  • 需求上下文feat:业务基础代码生成
  • 维护人 / 最后改动AsiQue 2023-11-24 最近提交:feat:业务基础代码生成
  • 读写数据表system_user_dept、system_user_relation、system_user_role、shop、shop_relation、goods、sku、checker_relation 反查该表全部接口 →
  • 控制器com.jxxx.dscp.api.controller.shop.ShopController#updateShop
  • 源码位置jxxx-dscp/dscp-service-business/src/main/java/com/jxxx/dscp/api/controller/shop/ShopController.java:347
  • 判定依据1 个调用点:dscp-html-manage/src/api/shop/index.ts

请求参数

Header 请求参数

参数名参数值是否必填参数类型描述说明
无(渠道统一鉴权头见《认证方式》)

Query 请求参数

参数名参数值是否必填参数类型描述说明
无

路径参数及说明

参数名参数值是否必填参数类型描述说明
无

Body 请求参数

Body 类型 ShopUpdateRequest
参数名参数值是否必填参数类型描述说明
id…是Long商铺id,主键 → checker_relation.id
merchantId…是Long所属商户id,关联merchant表id → checker_relation.merchant_id
name…是String商铺名称 → shop.name
logo…否String商铺LOGO图片url地址 → shop.logo
typeId…否Long商铺大类 → shop.type_id
subTypeId…否Long商铺小类ID → shop.sub_type_id
status…否ShopStatus商铺状态,1正常运营,2审核中,3暂停运营,4已关店 → shop.status 1=正常运营 2=审核中 3=暂停运营 4=已关店
provinceId…否String省id → shop.province_id
cityId…否String市id → shop.city_id
districtId…否String区县id → shop.district_id
address…否String商铺地址 → shop.address
mobile…否String客服电话 → shop.mobile
linkman…否String商户联系人 → shop.linkman
linkphone…否String商户联系人手机 → shop.linkphone
manager…否String专属客户经理 → shop.manager
level…否String等级 → shop.level
lng…否String经度 → shop.lng
lat…否String纬度 → shop.lat
introduction…否String简介 → shop.introduction
businessTime…否String营业时间 → shop.business_time
tags…否String商铺标签 → shop.tags
mainPic…否String景区主图url地址 → shop.main_pic
propagatePic…否String宣传图片url地址 → shop.propagate_pic
video…否String景区视频url地址 → shop.video
poster…否String分享海报url地址 → shop.poster
propagateContent…否String宣传语 → shop.propagate_content
description…否String图文详情 → shop.description
ticketInfo…否String门票信息 → shop.ticket_info
trafficInfo…否String交通信息 → shop.traffic_info
tips…否String温馨提示 → shop.tips
thirdId…否String → checker_relation.third_id
thirdName…否String → shop.third_name
relationList…否List<ShopRelationUpdateRequest>
id…否Longid → checker_relation.id
thirdName…否String → shop.third_name
thirdId…否String → checker_relation.third_id
channelType…否ChannelType → checker_relation.channel_type
remark…否Stringxuchao: 第三方备注 → shop_relation.remark

认证方式

需登录态:Authorization: Bearer <token>(多租户另带 tenant-id);30002 会话失效需重登。详见全局公共参数。

响应参数

参数名参数值是否必填参数类型描述说明
void —— 不返回业务数据(外层包装见全局公共参数)

响应示例

成功响应示例 code=0

{"errcode":0,"errmsg":""}
示例来自源码/导出内容,仅结构参考,非线上真实数据。

附录 · 实现细节

调用链 / 数据表 / 调用点证据 / 源码注释 / 逻辑摘要
涉及数据表:system_user_dept、system_user_relation、system_user_role、shop、shop_relation、goods、sku、checker_relation 反查全部引用接口 →
  • ShopController#updateShop
  • SessionUserService#isMerchant
  • UserDeptService#queryList(UserDeptServiceImpl)
  • UserDeptMapper#queryList
  • UserDeptService#updateList(UserDeptServiceImpl)
  • UserDeptMapper#updateList
  • UserRelationService#queryList(UserRelationServiceImpl)
  • UserRelationMapper#queryList
  • UserRelationService#updateList(UserRelationServiceImpl)
  • UserRoleService#queryList(UserRoleServiceImpl)
  • UserRoleMapper#queryList
  • UserRoleService#updateList(UserRoleServiceImpl)
  • UserRoleMapper#updateList
  • ShopService#update(ShopServiceImpl)
  • ShopMapper#update
  • ShopRelationService#queryList(ShopRelationServiceImpl)
  • ShopRelationMapper#queryList
  • ShopRelationService#delete(ShopRelationServiceImpl)
  • ShopRelationMapper#delete
  • GoodsService#queryList(GoodsServiceImpl)
  • GoodsMapper#queryList
  • GoodsService#updateList(GoodsServiceImpl)
  • GoodsMapper#updateList
  • SkuService#queryList(SkuServiceImpl)
  • SkuMapper#queryList
  • SkuService#updateList(SkuServiceImpl)
  • SkuMapper#updateList
  • CheckerRelationService#queryList(CheckerRelationServiceImpl)
  • CheckerRelationMapper#queryList
  • CheckerRelationService#updateList(CheckerRelationServiceImpl)
  • CheckerRelationMapper#updateList
  • SessionUserService#getSessionUser
  • BeanUtils.map → Shop ⇒ 表 shop
  • BeanUtils.mapList → ShopRelationAddRequest
其它依赖:ChaosTransactionTemplate.execute
逻辑摘要:调用 execute(newTransactionTemplate.execute);查询详情(shopService.get);列表查询(userDeptService.queryList);入参与返回值经 BeanUtils 做对象/分页映射
源码内联注释(旧站解析结果)
  • 修改用户部门关系
  • 修改用户组织关系
  • 修改用户信息的昵称
  • 合并去重
  • 更新shop
  • 处理第三方
  • 查询现有数据
  • 处理删除数据
旧站环境备注:pro:(仓库 .env.pro 指向 uat;生产域名未确认,此处沿用 uat 主机示意)
调用点证据
  • dscp-html-manage/src/api/shop/index.ts:20 管理后台 · request
由 tools/build.py 从 data/apis.json 生成 · 生成时间 2026-09-12 19:49 · 数据口径见说明 · 本页数字非手写,均来自同一份数据