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;//是否登录过 /** * 创建人