| | |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @PostMapping("/page") |
| | | @ApiOperation("设备使用记录分页列表") |
| | | @PostMapping("/page") |
| | | public R<PageDTO<MwMicroEquipmentRecordVO>> pageList(@Valid @RequestBody MwMicroEquipmentRecordQuery query) { |
| | | return R.ok(mwMicroEquipmentRecordService.pageList(query)); |
| | | } |
| | |
| | | * |
| | | * @param query |
| | | */ |
| | | @PostMapping("/export") |
| | | @ApiOperation("导出设备使用记录") |
| | | @PostMapping("/export") |
| | | public void export(@RequestBody MwMicroEquipmentRecordQuery query, HttpServletResponse response) { |
| | | try { |
| | | mwMicroEquipmentRecordService.export(query, response); |
| | |
| | | * @param dto |
| | | * @return |
| | | */ |
| | | @PostMapping("/add") |
| | | @ApiOperation("新增使用记录") |
| | | @PostMapping("/add") |
| | | public R<?> add(@Valid @RequestBody MwMicroEquipmentRecordDTO dto) { |
| | | mwMicroEquipmentRecordService.add(dto); |
| | | return R.ok(); |
| | |
| | | * |
| | | * @return |
| | | */ |
| | | @GetMapping("/statics/title") |
| | | @ApiOperation("处置分析表头") |
| | | @GetMapping("/statics/title") |
| | | public R<List<MwMicroEquipmentStaticsTitleVO>> staticsTitle() { |
| | | return R.ok(mwMicroEquipmentRecordService.staticsTitle()); |
| | | } |
| | |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @PostMapping("/statics/data") |
| | | @ApiOperation("处置分析数据") |
| | | @PostMapping("/statics/data") |
| | | public R<List<List<String>>> staticsData(@Valid @RequestBody MwMicroEquipmentStaticsQuery query) { |
| | | return R.ok(mwMicroEquipmentRecordService.getStaticsData(query)); |
| | | } |
| | |
| | | * @param query |
| | | * @param response |
| | | */ |
| | | @PostMapping("/statics/export") |
| | | @ApiOperation("处置分析导出") |
| | | @PostMapping("/statics/export") |
| | | public void export(@Valid @RequestBody MwMicroEquipmentStaticsQuery query, HttpServletResponse response) { |
| | | try { |
| | | mwMicroEquipmentRecordService.staticsExport(query, response); |