Appearance
POST /dm-device/deviceType/page
Content-Type: application/json
触发按钮:getPageListAjax
入参
传递对象:DeviceTypeQueryVo
| 字段 | 类型 | 必填 | 多选 | 校验规则 | 说明 |
|---|---|---|---|---|---|
| field | String | 否 | 否 | - | - |
| order | String | 否 | 否 | - | - |
| factoryNo | String | 否 | 否 | - | - |
| deviceTypeName | String | 否 | 否 | - | 设备种类 |
| deviceClassify | Integer | 否 | 否 | - | 设备分类 |
| deviceName | String | 否 | 否 | - | 设备名称 |
| deviceModel | String | 否 | 否 | - | 设备型号 |
| type | Integer | 否 | 否 | - | 查询类型,1/其他 设备种类(去重)/根据条件查询 |
| partCode | String | 否 | 否 | - | 物料编码 |
| deviceCode | String | 否 | 否 | - | - |
| deptName | String | 否 | 否 | - | - |
| productLineNos | List<String> | 否 | 是 | - | 产品线集合 |
| partNo | String | 否 | 否 | - | - |
| deptNoList | List<String> | 否 | 是 | - | - |
出参
传递对象:ResultData,前端实际消费的是 data 中的 rows / total。<rows + total>
json
{
"id": "",
"partNo": "",
"partCode": "",
"partName": "",
"bigCategory": "",
"...": "..."
}前端校验规则
权限校验
├── 查询按钮权限
│ └── v-auth: 'information:deviceType:search:popup'
├── 新增按钮权限
│ └── v-auth: 'information:deviceType:add:new'
├── 删除按钮权限
│ └── v-auth: 'information:deviceType:delete:popup'
├── 编辑操作权限
│ └── code: 'information:deviceType:edit:new'
└── 删除操作权限
└── code: 'information:deviceType:delete:popup'后端逻辑
业务流程:按条件筛选设备类型 -> 查询未删除记录 -> 按更新时间倒序返回分页结果
└── 分页查询设备类型
├── 分页查询:DeviceTypeServiceImpl.pages :90-93
└── 查询未删除设备类型:DeviceTypeMapper.selectPage :5-26
├── 条件
│ ├── is_delete = 0
│ ├── deviceTypeName 模糊匹配
│ ├── deviceClassify 精确匹配
│ ├── deviceName 模糊匹配
│ └── deviceModel 模糊匹配
└── 排序
└── update_time DESC, create_time DESC后端校验规则
无涉及数据库表
| 库名.表名 | mapper.statement | 描述 |
|---|---|---|
| device_type | DeviceTypeMapper.selectPage | 按筛选条件分页查询deviceType数据 |
| device_type_mapper | deviceTypeMapper.selectPage | deviceTypeMapper |