用户还车点申请

This commit is contained in:
yanglei 2025-12-25 14:33:57 +08:00
parent 947f51f41f
commit 6b69e31ac7

View File

@ -17,7 +17,7 @@ import java.util.Objects;
import static com.cdzy.operations.model.entity.table.EbikeReportRecordTableDef.EBIKE_REPORT_RECORD; import static com.cdzy.operations.model.entity.table.EbikeReportRecordTableDef.EBIKE_REPORT_RECORD;
/** /**
* 用户上报记录 控制层 * 用户还车点申请上报记录 控制层
* *
* @author yanglei * @author yanglei
* @since 2025-12-23 16:51 * @since 2025-12-23 16:51
@ -80,4 +80,19 @@ public class EbikeReportRecordController {
List<EbikeReportRecord> reportRecords = reportRecordService.listAs(queryWrapper, EbikeReportRecord.class); List<EbikeReportRecord> reportRecords = reportRecordService.listAs(queryWrapper, EbikeReportRecord.class);
return JsonResult.success(reportRecords); 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);
}
} }