Appearance
GET /dm-store/productLine/detail/:id
触发按钮:getDetail
入参
传递对象:Long
| 字段 | 类型 | 必填 | 多选 | 校验规则 | 说明 |
|---|---|---|---|---|---|
| id | Long | 否 | 否 | - | 路径中的业务 id |
出参
传递对象:ResultData<PartMainVo><单个 PartMainVo 对象>
json
{
"code": 200,
"msg": "success",
"data": {
"id": 235,
"createTime": "2026-05-26 00:38:08",
"createUser": "zhongmg2",
"updateTime": "2026-05-26 00:38:08",
"updateUser": "zhongmg2",
"factoryNo": "000027",
"isDelete": 0,
"inStockNumber": null,
"productLineNo": "000243",
"productLineCode": "22",
"productLineName": "222",
"validFlag": 1
}
}前端校验规则
权限校验
├── 编辑按钮权限
│ └── code: 'information:productLine:edit:popup'
├── 表单校验
│ ├── productLineCode
│ │ └── required: true, trigger: blur
│ └── productLineName
│ └── required: true, trigger: blur
└── 提交拦截校验
└── approvalAction
└── this.$refs.form.validate 未通过时拦截提交后端逻辑
业务流程:按ID查询产品线 -> 形成详情结果 -> 返回产品线详情
└── 查询产品线详情
├── 查询产品线记录:getById :227
│ └── 条件
│ └── id
└── 输出产品线详情后端校验规则
数据存在性校验
└── 校验产品线是否存在:findProductLineById :227-230
└── 不存在则抛出 ExceptionCode.EX100007涉及数据库表
| 库名.表名 | mapper.statement | 描述 |
|---|---|---|
| store.product_line | ProductLineMapper.selectById | 按 id 查询productLine详情 |