Commit b84e229bd59cf1f11d589364b712fd6af78343e9

Authored by changpengfei
1 parent 4a9a7f9a3e
Exists in master

update

Showing 1 changed file with 2 additions and 5 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DoctorController.java View file @ b84e229
... ... @@ -12,10 +12,7 @@
12 12 import org.springframework.beans.factory.annotation.Autowired;
13 13 import org.springframework.validation.BindingResult;
14 14 import org.springframework.validation.annotation.Validated;
15   -import org.springframework.web.bind.annotation.GetMapping;
16   -import org.springframework.web.bind.annotation.PostMapping;
17   -import org.springframework.web.bind.annotation.RequestMapping;
18   -import org.springframework.web.bind.annotation.RestController;
  15 +import org.springframework.web.bind.annotation.*;
19 16  
20 17 import java.util.Date;
21 18 import java.util.HashMap;
... ... @@ -108,7 +105,7 @@
108 105 * @return
109 106 */
110 107 @PostMapping("loginDoctor")
111   - public BaseResponse loginDoctor(LymsDoctor doctor){
  108 + public BaseResponse loginDoctor(@RequestBody LymsDoctor doctor){
112 109 BaseResponse baseResponse=new BaseResponse();
113 110 List<LymsDoctor> dLst=lymsDoctorService.list(Wrappers.query(doctor));
114 111 baseResponse.setErrorcode(1);