Skip to content

POST /dm-device/sp/page

Content-Type: application/json

触发按钮:pageAjax

入参

出参

传递对象:ResultData,前端实际消费的是 data 中的 rows / total。<rows + total>

json
{
  "id": "",
  "partNo": "",
  "partCode": "",
  "partName": "",
  "bigCategory": "",
  "...": "..."
}

前端校验规则

text
前端校验
└── 权限校验
    ├── 新增按钮权限
    │   └── v-auth: 'spotCheck:plan:add:new'
    ├── 状态列权限
    │   └── code: 'spotCheck:plan:status'
    ├── planStatus disabled: true(auditStatus in [10, 30] 时生效)
    └── edit disabled: true(auditStatus in [10] 时生效)

后端逻辑

text
业务流程:限定点检计划查询范围后按部门与查询条件分页查询计划
├── 初始化点检计划查询标识 :53
└── 分页查询点检计划:MaintenancePlansService.queryToPage :55
    ├── 获取当前用户部门范围:MaintenancePlansServiceImpl.getDeptList :133
    ├── 部门范围为空时直接返回空分页 :135-136
    └── MaintenancePlansServiceImpl.page :141

后端校验规则

text

涉及数据库表

库名.表名mapper.statement描述
planPlanMapper.selectPage按筛选条件分页查询plan数据