From cd0900539e27bba813a6afa9fc0d5a760715ec99 Mon Sep 17 00:00:00 2001 From: changpengfei Date: Tue, 7 Sep 2021 14:26:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98=E5=8C=BB=E9=99=A2=E6=94=B9?= =?UTF-8?q?=E4=B8=BAjson=E6=8E=A5=E5=8F=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/lyms/talkonlineweb/controller/HospitalController.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/HospitalController.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/HospitalController.java index ca72b2f..0236edb 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/HospitalController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/HospitalController.java @@ -9,10 +9,7 @@ import com.lyms.talkonlineweb.result.BaseResponse; import com.lyms.talkonlineweb.service.LymsDictService; import com.lyms.talkonlineweb.service.LymsHospitalService; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; import java.util.Date; import java.util.List; @@ -108,7 +105,7 @@ public class HospitalController { * @return */ @PostMapping("saveHosp") - public BaseResponse saveHosp(LymsHospital hospital){ + public BaseResponse saveHosp(@RequestBody LymsHospital hospital){ BaseResponse baseResponse=new BaseResponse(); if(hospital.getHid()==null){ -- 1.8.3.1