From 31a596584979ef2354a4c0a77f863ea2182cdea9 Mon Sep 17 00:00:00 2001 From: changpengfei Date: Wed, 8 Sep 2021 11:11:57 +0800 Subject: [PATCH] =?UTF-8?q?form=E8=BD=ACjson?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/lyms/talkonlineweb/controller/DepartController.java | 7 ++----- .../java/com/lyms/talkonlineweb/controller/PatientController.java | 7 ++----- .../src/main/java/com/lyms/talkonlineweb/domain/LymsPatient.java | 2 +- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DepartController.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DepartController.java index 376302c..a12272a 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DepartController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DepartController.java @@ -14,10 +14,7 @@ import com.lyms.talkonlineweb.util.JwtUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.validation.BindingResult; import org.springframework.validation.annotation.Validated; -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.HashMap; @@ -64,7 +61,7 @@ public class DepartController { * @return */ @PostMapping("saveDepart") - public BaseResponse saveDepart(@Validated LymsHdepart depart, BindingResult result,String ills){ + public BaseResponse saveDepart(@Validated @RequestBody LymsHdepart depart, BindingResult result, String ills){ BaseResponse baseResponse=new BaseResponse(); baseResponse.setErrormsg(""); if(depart.getDid()==null){ diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java index 2e78ba2..d4d0b62 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java @@ -11,10 +11,7 @@ import lombok.extern.log4j.Log4j2; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.validation.BindingResult; import org.springframework.validation.annotation.Validated; -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.HashMap; @@ -151,7 +148,7 @@ public class PatientController { * @return */ @PostMapping("loginPatient") - public BaseResponse loginPatient(LymsPatient patient){ + public BaseResponse loginPatient(@RequestBody LymsPatient patient){ BaseResponse baseResponse=new BaseResponse(); List dLst=lymsPatientService.list(Wrappers.query(patient)); baseResponse.setErrorcode(1); diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsPatient.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsPatient.java index cce1ff2..0785b90 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsPatient.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsPatient.java @@ -58,7 +58,7 @@ public class LymsPatient implements Serializable { private String hxid; @TableField(value = "islogin") - private int islogin;//是否登录过 + private Integer islogin;//是否登录过 /** * 创建人 -- 1.8.3.1