From 6b69e31ac79d6cd5ff32a90f35501ca20d60afedffa7be51cdac77953b9a46d3 Mon Sep 17 00:00:00 2001 From: yanglei Date: Thu, 25 Dec 2025 14:33:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=BF=98=E8=BD=A6=E7=82=B9?= =?UTF-8?q?=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/EbikeReportRecordController.java | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/ebike-operations/src/main/java/com/cdzy/operations/controller/EbikeReportRecordController.java b/ebike-operations/src/main/java/com/cdzy/operations/controller/EbikeReportRecordController.java index 57a43d8..df737d7 100644 --- a/ebike-operations/src/main/java/com/cdzy/operations/controller/EbikeReportRecordController.java +++ b/ebike-operations/src/main/java/com/cdzy/operations/controller/EbikeReportRecordController.java @@ -17,7 +17,7 @@ import java.util.Objects; import static com.cdzy.operations.model.entity.table.EbikeReportRecordTableDef.EBIKE_REPORT_RECORD; /** - * 用户上报记录 控制层 + * 用户还车点申请上报记录 控制层 * * @author yanglei * @since 2025-12-23 16:51 @@ -80,4 +80,19 @@ public class EbikeReportRecordController { List reportRecords = reportRecordService.listAs(queryWrapper, EbikeReportRecord.class); return JsonResult.success(reportRecords); } + + /** + * 根据主键id查询用户上报记录 + * + * @param recordId 主键id + * @return 用户上报记录 + */ + @GetMapping("/getReportRecordById") + public JsonResult getReportRecordById(@RequestParam("recordId") Long recordId) { + QueryWrapper queryWrapper = QueryWrapper.create() + .select(EBIKE_REPORT_RECORD.ALL_COLUMNS) + .where(EBIKE_REPORT_RECORD.RECORD_ID.eq(recordId)); + EbikeReportRecord reportRecord = reportRecordService.getOneAs(queryWrapper, EbikeReportRecord.class); + return JsonResult.success(reportRecord); + } }