用户还车点申请
This commit is contained in:
parent
947f51f41f
commit
6b69e31ac7
@ -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<EbikeReportRecord> 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);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user