Commit 3af019a8a7a57a74c5ae4cb20d7a013ef27a1b0f
1 parent
64c71411f0
Exists in
master
and in
6 other branches
血压临时表接口
Showing 1 changed file with 2 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/TemporaryBloodController.java
View file @
3af019a
| ... | ... | @@ -12,6 +12,7 @@ |
| 12 | 12 | import org.springframework.web.bind.annotation.*; |
| 13 | 13 | |
| 14 | 14 | import javax.servlet.http.HttpServletRequest; |
| 15 | +import javax.validation.Valid; | |
| 15 | 16 | import java.util.Date; |
| 16 | 17 | |
| 17 | 18 | |
| ... | ... | @@ -25,7 +26,7 @@ |
| 25 | 26 | @RequestMapping(value = "/addOrUpdate", method = RequestMethod.POST) |
| 26 | 27 | @TokenRequired |
| 27 | 28 | @ResponseBody |
| 28 | - public BaseResponse addTemporaryBlood(TemporaryBloodModel temporaryBloodModel, HttpServletRequest request) { | |
| 29 | + public BaseResponse addTemporaryBlood(@Valid @RequestBody TemporaryBloodModel temporaryBloodModel, HttpServletRequest request) { | |
| 29 | 30 | return temporaryBloodService.addTemporaryBlood(temporaryBloodModel); |
| 30 | 31 | } |
| 31 | 32 |