Appearance
POST /dm-device/device/mttr/chart/rate
Content-Type: application/json
触发按钮:rateAjax
入参
无
出参
传递对象:ResultData
无
前端校验规则
表单校验
└── deviceCode(设备编码)
└── 长度限制:最长 50后端逻辑
业务流程:归一化统计区间 -> 按所选产品线/线体/设备逐项取图表数据 -> 分支统计停机率或MTTR -> 按对象名称归集返回
├── 归一化统计区间
│ └── DeviceMttrServiceImpl.downRateChart :402-416
├── 产品线维度取数
│ ├── 停机率统计:DeviceMttrMapper.queryDownTimeRateByProductLine :429
│ │ └── 查询 device_downtime_rate 月度停机率
│ │ ├── 按月份补齐时间轴 :90-92
│ │ ├── 按产品线下线体平均停机率汇总 :99-128
│ │ └── 条件
│ │ ├── is_delete=0 :107
│ │ ├── confirm_time 区间 :109-114
│ │ └── product_line_no=指定产品线 :115-117
│ └── 非停机率统计:DeviceMttrServiceImpl.chartCount :432
├── 线体维度取数
│ ├── 停机率统计:DeviceMttrMapper.queryDownTimeRateByProductLine :445
│ │ └── 查询条件仅使用时间区间与 productLineNo :109-117
│ └── 非停机率统计:DeviceMttrServiceImpl.chartCount :448
├── 设备维度取数
│ ├── 停机率统计:DeviceMttrMapper.queryDownTimeRateByProductLine :461
│ │ └── 查询条件仅使用时间区间与 productLineNo :109-117
│ └── 非停机率统计:DeviceMttrServiceImpl.chartCount :464
├── MTTR统计分支
│ ├── 执行人维度统计:DeviceMttrMapper.queryMttrChartByExcutor :315
│ │ └── 查询 device_mttr 按执行人汇总响应时长、维修时长 :233-287
│ └── 月份维度统计:DeviceMttrMapper.queryMttrChartByMonth :322
│ └── 查询 device_mttr 按月份汇总 MTTR、平均响应时长、平均维修时长、停机率 :8-81
└── 按对象名称归集图表结果后端校验规则
无涉及数据库表
| 库名.表名 | mapper.statement | 描述 |
|---|---|---|
| mttr_mapper | mttrMapper.queryDownTimeRateByProductLine | mttrMapper |