Appearance
POST /dm-store/manufacturer/page
Content-Type: application/json
触发按钮:pageAjax
入参
传递对象:ManufacturerQueryVo
| 字段 | 类型 | 必填 | 多选 | 校验规则 | 说明 |
|---|---|---|---|---|---|
| field | String | 否 | 否 | - | - |
| order | String | 否 | 否 | - | - |
| factoryNo | String | 否 | 否 | - | - |
| ids | List<Long> | 否 | 是 | - | id集合 |
| manufacturerCode | String | 否 | 否 | - | 制造商编码 |
| manufacturerName | String | 否 | 否 | - | 制造商名称 |
出参
传递对象:ResultData,前端实际消费的是 data 中的 rows / total。<rows + total>
json
{
"id": "",
"partNo": "",
"partCode": "",
"partName": "",
"bigCategory": "",
"...": "..."
}前端校验规则
无后端逻辑
业务流程:按条件筛选制造商 -> 确定排序规则 -> 分页查询未删除制造商 -> 返回分页列表
├── 组装筛选条件:ManufacturerServiceImpl.findManufacturerCondition :73
│ ├── 按制造商名称模糊匹配
│ ├── 按制造商编码模糊匹配
│ └── 条件: isDelete=0
├── 确定排序规则:ManufacturerServiceImpl.findManufacturerCondition :106-117
│ ├── 未指定排序时按创建时间倒序
│ └── 指定字段时按前端排序方向处理
└── 分页查询制造商:page :78后端校验规则
无涉及数据库表
| 库名.表名 | mapper.statement | 描述 |
|---|---|---|
| store.manufacturer | ManufacturerMapper.selectPage | 按筛选条件分页查询manufacturer数据 |