Appearance
GET /dm-store/uom/detail/:id
触发按钮:getDetail
入参
传递对象:Long
| 字段 | 类型 | 必填 | 多选 | 校验规则 | 说明 |
|---|---|---|---|---|---|
| id | Long | 否 | 否 | - | 路径中的业务 id |
出参
传递对象:ResultData<PartMainVo><单个 PartMainVo 对象>
json
{
"id": "",
"partNo": "",
"partCode": "",
"partName": "",
"spec": "",
"...": "..."
}前端校验规则
权限校验
└── 编辑按钮权限
└── v-auth: 'information:uom:edit:popup'后端逻辑
业务流程:按ID查询计量单位 -> 校验记录是否存在 -> 返回详情结果
├── 按ID查询计量单位
│ └── getById :190
└── 校验记录是否存在
├── 不存在
│ └── UomServiceImpl.findUomById :191-193
└── 存在
└── UomServiceImpl.findUomById :195-196后端校验规则
数据存在性校验
└── 校验计量单位详情是否存在:findUomById,条件=根据 id 查询结果为空(uomDo == null):188-194
└── ExceptionCode.EX100007涉及数据库表
| 库名.表名 | mapper.statement | 描述 |
|---|---|---|
| store.uom | UomMapper.selectById | 按 id 查询uom详情 |