Skip to content

POST /dm-device/deviceType/page

Content-Type: application/json

触发按钮:getPageListAjax

入参

传递对象:DeviceTypeQueryVo

字段类型必填多选校验规则说明
fieldString--
orderString--
factoryNoString--
deviceTypeNameString-设备种类
deviceClassifyInteger-设备分类
deviceNameString-设备名称
deviceModelString-设备型号
typeInteger-查询类型,1/其他 设备种类(去重)/根据条件查询
partCodeString-物料编码
deviceCodeString--
deptNameString--
productLineNosList<String>-产品线集合
partNoString--
deptNoListList<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_typeDeviceTypeMapper.selectPage按筛选条件分页查询deviceType数据
device_type_mapperdeviceTypeMapper.selectPagedeviceTypeMapper