Commit 4ce658ca3b4591341b62535a101872f6d23468e3
1 parent
13e236bbc6
Exists in
master
and in
6 other branches
产前诊断
Showing 1 changed file with 3 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/DiagnosisController.java
View file @
4ce658c
| ... | ... | @@ -6,11 +6,13 @@ |
| 6 | 6 | import com.lyms.platform.operate.web.result.DiagnosisManagerResult; |
| 7 | 7 | import org.springframework.beans.factory.annotation.Autowired; |
| 8 | 8 | import org.springframework.stereotype.Controller; |
| 9 | +import org.springframework.web.bind.annotation.RequestBody; | |
| 9 | 10 | import org.springframework.web.bind.annotation.RequestMapping; |
| 10 | 11 | import org.springframework.web.bind.annotation.RequestMethod; |
| 11 | 12 | import org.springframework.web.bind.annotation.ResponseBody; |
| 12 | 13 | |
| 13 | 14 | import javax.servlet.http.HttpServletRequest; |
| 15 | +import javax.validation.Valid; | |
| 14 | 16 | |
| 15 | 17 | /** |
| 16 | 18 | * 产前诊断 |
| ... | ... | @@ -46,7 +48,7 @@ |
| 46 | 48 | */ |
| 47 | 49 | @ResponseBody |
| 48 | 50 | @RequestMapping(value = "/addDiagnosis",method = RequestMethod.POST) |
| 49 | - public BaseResponse addOrUpdateDiagnosis(DiagnosisAddRequest diagnosisAddRequest,HttpServletRequest request){ | |
| 51 | + public BaseResponse addOrUpdateDiagnosis(@RequestBody @Valid DiagnosisAddRequest diagnosisAddRequest,HttpServletRequest request){ | |
| 50 | 52 | //LoginContext loginState = (LoginContext) request.getAttribute("loginContext"); |
| 51 | 53 | /*diagnosisAddRequest.setName("aaaa"); |
| 52 | 54 | diagnosisAddRequest.setId("5bade15d0cf2d495ecedb46f"); |