Skip to content

POST /dm-device/device/mttr/chart

Content-Type: application/json

触发按钮:chartAjax

入参

出参

传递对象:ResultData

前端校验规则

text
前端校验
└── 表单校验
    └── deviceCode(设备编码)
        └── 长度限制:maxlength=50

后端逻辑

text
业务流程:确定统计区间后按统计维度绑定工厂范围并聚合维修指标生成MTTR图表
├── 确定统计区间 :294-306
├── 按执行人统计
│   └── DeviceMttrMapper.queryMttrChartByExcutor :315
├── 按月份统计
│   └── DeviceMttrMapper.queryMttrChartByMonth :322
└── 返回图表数据 :325

后端校验规则

text

涉及数据库表

库名.表名mapper.statement描述
mttr_mappermttrMapper.queryMttrChartByExcutormttrMapper
mttr_mappermttrMapper.queryMttrChartByMonthmttrMapper