| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得能耗抄表记录") |
| | | @Parameter(name = "id", description = "编号", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:em-record:query')") |
| | | public CommonResult<MesEmRecordRespVO> getRecord(@RequestParam("id") Long id) { |
| | | MesEmRecordDO record = mesEmRecordService.getRecord(id); |
| | | if (record == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得能耗抄表记录分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:em-record:query')") |
| | | public CommonResult<PageResult<MesEmRecordRespVO>> getRecordPage(@Valid MesEmRecordPageReqVO pageReqVO) { |
| | | PageResult<MesEmRecordDO> pageResult = mesEmRecordService.getRecordPage(pageReqVO); |
| | | return success(new PageResult<>(mesEmRecordService.getRecordRespVOList(pageResult.getList()), |
| | |
| | | |
| | | @GetMapping("/last-reading") |
| | | @Operation(summary = "获得计量点上期读数", description = "用于新增抄表记录时自动带入期初读数") |
| | | @PreAuthorize("@ss.hasPermission('mes:em-record:query')") |
| | | public CommonResult<MesEmLastReadingRespVO> getLastReading( |
| | | @RequestParam("meterId") Long meterId, |
| | | @RequestParam("recordDate") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate recordDate, |