Appearance
GET /dm-store/storeMain/detail/:id
触发按钮:getDetail
入参
传递对象:Long
| 字段 | 类型 | 必填 | 多选 | 校验规则 | 说明 |
|---|---|---|---|---|---|
| id | Long | 否 | 否 | - | 路径中的业务 id |
出参
传递对象:ResultData<PartMainVo>
json
{
"code": 200,
"msg": "success",
"data": {
"id": 144,
"createTime": "2026-05-25 03:11:09",
"createUser": "zhongmg2",
"updateTime": "2026-05-25 03:11:09",
"updateUser": "zhongmg2",
"factoryNo": "000027",
"isDelete": 0,
"mainId": null,
"areaId": null,
"binId": null,
"storeNo": "000159",
"storeCode": "asdasd",
"storeName": "asdasd",
"deptName": "MFG",
"deptNo": "000025",
"storeType": 1,
"adminAccount": "yangkx2",
"validFlag": 1,
"location": "asd",
"adminName": "yangkx2",
"storeAreaNo": null,
"storeAreaCode": null,
"storeAreaName": null,
"storeAreaType": null,
"storeBinNo": null,
"storeBinCode": null,
"storeBinName": null,
"storeBinType": null,
"children": null,
"childrenBin": null,
"storeCodeOrName": null
}
}前端校验规则
权限校验
└── 编辑按钮权限
└── code: 'information:warehouse:edit:popup'后端逻辑
业务流程:按仓库 id 查询仓库详情,并补充所属部门名称后返回
├── 查询仓库详情
│ └── getById :202
├── 校验仓库存在
├── 查询所属部门
│ ├── DeptClient.getDept :208
│ └── 查询未删除部门:DepartmentServiceImpl.queryList :263-268
│ └── list :266
└── 补充部门名称后端校验规则
数据存在性校验
└── 校验仓库主数据是否存在:StoreMainServiceImpl.findStoreMainById :200-206
└── ExceptionCode.EX100007涉及数据库表
| 库名.表名 | mapper.statement | 描述 |
|---|---|---|
| device.store_main | StoreMainMapper.selectById | 按 id 查询warehouse详情 |