Commit 66c784219ac75f04b2bf9e6b47014ec900f3dc55
1 parent
824d0e6c43
Exists in
master
and in
1 other branch
增加是否通知
Showing 2 changed files with 4 additions and 5 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/PuerperaManageController.java
View file @
66c7842
... | ... | @@ -15,10 +15,7 @@ |
15 | 15 | import com.lyms.platform.operate.web.request.*; |
16 | 16 | import org.springframework.beans.factory.annotation.Autowired; |
17 | 17 | import org.springframework.stereotype.Controller; |
18 | -import org.springframework.web.bind.annotation.RequestMapping; | |
19 | -import org.springframework.web.bind.annotation.RequestMethod; | |
20 | -import org.springframework.web.bind.annotation.RequestParam; | |
21 | -import org.springframework.web.bind.annotation.ResponseBody; | |
18 | +import org.springframework.web.bind.annotation.*; | |
22 | 19 | |
23 | 20 | import javax.servlet.http.HttpServletRequest; |
24 | 21 | import javax.validation.Valid; |
... | ... | @@ -151,7 +148,7 @@ |
151 | 148 | */ |
152 | 149 | @RequestMapping(value = "/sendPGuildSms", method = RequestMethod.POST) |
153 | 150 | @ResponseBody |
154 | - public BaseResponse patientGuildSms(@Valid PatientGuideSmsRequest patientGuideSmsRequest){ | |
151 | + public BaseResponse patientGuildSms(@RequestBody @Valid PatientGuideSmsRequest patientGuideSmsRequest){ | |
155 | 152 | |
156 | 153 | return patientFacade.patientGuildSms(patientGuideSmsRequest); |
157 | 154 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/PatientGuideSmsRequest.java
View file @
66c7842
1 | 1 | package com.lyms.platform.operate.web.request; |
2 | 2 | |
3 | 3 | import com.lyms.platform.common.core.annotation.form.FormParam; |
4 | +import com.lyms.platform.common.core.annotation.form.Form; | |
4 | 5 | import org.hibernate.validator.constraints.NotBlank; |
5 | 6 | import org.hibernate.validator.constraints.NotEmpty; |
6 | 7 | |
... | ... | @@ -11,6 +12,7 @@ |
11 | 12 | * |
12 | 13 | * Created by Administrator on 2016/7/12 0012. |
13 | 14 | */ |
15 | +@Form | |
14 | 16 | public class PatientGuideSmsRequest { |
15 | 17 | //短信内容 |
16 | 18 | @FormParam |