| | |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | return mdcRepairInfoService.exportXls(userId, mdcRepairInfoVo); |
| | | // return super.exportXls(request, mdcRepairInfo, MdcRepairInfo.class, "设备维修时长表"); |
| | | } |
| | | |
| | | /** |
| | |
| | | return super.importExcel(request, response, MdcRepairInfo.class); |
| | | } |
| | | |
| | | /** |
| | | * 计算MTTR |
| | | * |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "设备维修时长表-计算MTTR") |
| | | @ApiOperation(value = "设备维修时长表-计算MTTR", notes = "设备维修时长表-计算MTTR") |
| | | @PostMapping(value = "/computeMttr") |
| | | public Result<?> computeMttr(@RequestBody String month) { |
| | | mdcRepairInfoService.computeMttr(month); |
| | | return Result.OK("计算成功!"); |
| | | } |
| | | |
| | | } |