Commit cd0900539e27bba813a6afa9fc0d5a760715ec99
1 parent
69a8b27ccf
Exists in
master
and in
1 other branch
保存医院改为json接受
Showing 1 changed file with 2 additions and 5 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/HospitalController.java
View file @
cd09005
| ... | ... | @@ -9,10 +9,7 @@ |
| 9 | 9 | import com.lyms.talkonlineweb.service.LymsDictService; |
| 10 | 10 | import com.lyms.talkonlineweb.service.LymsHospitalService; |
| 11 | 11 | import org.springframework.beans.factory.annotation.Autowired; |
| 12 | -import org.springframework.web.bind.annotation.GetMapping; | |
| 13 | -import org.springframework.web.bind.annotation.PostMapping; | |
| 14 | -import org.springframework.web.bind.annotation.RequestMapping; | |
| 15 | -import org.springframework.web.bind.annotation.RestController; | |
| 12 | +import org.springframework.web.bind.annotation.*; | |
| 16 | 13 | |
| 17 | 14 | import java.util.Date; |
| 18 | 15 | import java.util.List; |
| ... | ... | @@ -108,7 +105,7 @@ |
| 108 | 105 | * @return |
| 109 | 106 | */ |
| 110 | 107 | @PostMapping("saveHosp") |
| 111 | - public BaseResponse saveHosp(LymsHospital hospital){ | |
| 108 | + public BaseResponse saveHosp(@RequestBody LymsHospital hospital){ | |
| 112 | 109 | BaseResponse baseResponse=new BaseResponse(); |
| 113 | 110 | |
| 114 | 111 | if(hospital.getHid()==null){ |