From 18f2eb72590ce5ff79693eb8a27188a499bbd114 Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期二, 29 十月 2024 16:12:53 +0800 Subject: [PATCH] appointment table key Integer -> Long --- jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/AppointmentController.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/AppointmentController.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/AppointmentController.java index 017e0c1..f3f1a93 100644 --- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/AppointmentController.java +++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/AppointmentController.java @@ -77,7 +77,7 @@ @PostMapping("/create") @Operation(summary = "鍒涘缓棰勭害") @PreAuthorize("@ss.hasPermission('ecg:appointment:create')") - public CommonResult<Integer> createAppointment(@Valid @RequestBody AppointmentSaveReqVO createReqVO) { + public CommonResult<Long> createAppointment(@Valid @RequestBody AppointmentSaveReqVO createReqVO) { return success(appointmentService.createAppointment(createReqVO)); } @@ -93,7 +93,7 @@ @Operation(summary = "鍒犻櫎棰勭害") @Parameter(name = "id", description = "缂栧彿", required = true) @PreAuthorize("@ss.hasPermission('ecg:appointment:delete')") - public CommonResult<Boolean> deleteAppointment(@RequestParam("id") Integer id) { + public CommonResult<Boolean> deleteAppointment(@RequestParam("id") Long id) { appointmentService.deleteAppointment(id); return success(true); } @@ -102,7 +102,7 @@ @Operation(summary = "鑾峰緱棰勭害") @Parameter(name = "id", description = "缂栧彿", required = true, example = "1024") @PreAuthorize("@ss.hasPermission('ecg:appointment:query')") - public CommonResult<AppointmentRespVO> getAppointment(@RequestParam("id") Integer id) { + public CommonResult<AppointmentRespVO> getAppointment(@RequestParam("id") Long id) { AppointmentDO appointment = appointmentService.getAppointment(id); return success(BeanUtils.toBean(appointment, AppointmentRespVO.class)); } -- Gitblit v1.9.3