From c6ed4cd6870be50bac99285e2637f016df01b9bb Mon Sep 17 00:00:00 2001 From: chenfei <18955928961@163.com> Date: Wed, 10 Aug 2022 14:25:59 +0800 Subject: [PATCH] =?UTF-8?q?App=E6=8E=A5=E5=8F=A3=E5=85=A5=E5=8F=82?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E8=AF=B7=E6=B1=82=E4=BD=93=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/ruoyi/web/controller/api/AppController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java index 961dd69..550177a 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java @@ -148,7 +148,7 @@ public class AppController extends BaseController */ @ApiOperation("诊断记录上传") @PostMapping("/record/diagnostic/upload") - public AjaxResult diagnosticRecordsUploaded(AppRecordReq appRecordReq) { + public AjaxResult diagnosticRecordsUploaded(@RequestBody AppRecordReq appRecordReq) { TRecord tRecord = new TRecord(); BeanUtils.copyProperties(appRecordReq, tRecord); return AjaxResult.success(tRecordService.updateTRecord(tRecord)); @@ -162,7 +162,7 @@ public class AppController extends BaseController */ @ApiOperation("添加患者") @PostMapping("/patient/add") - public AjaxResult addPatient(AppPatientReq appPatientReq) + public AjaxResult addPatient(@RequestBody AppPatientReq appPatientReq) { TPatient tPatient = new TPatient(); BeanUtils.copyProperties(appPatientReq, tPatient);