Commit da6537c2c2eb0366d7625f4026ca28e1c311da9c
1 parent
5c82ca8de2
Exists in
master
and in
8 other branches
增加是否通知
Showing 1 changed file with 27 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/PuerperaManageController.java
View file @
da6537c
... | ... | @@ -3,8 +3,13 @@ |
3 | 3 | import com.lyms.platform.common.annotation.TokenRequired; |
4 | 4 | import com.lyms.platform.common.base.BaseController; |
5 | 5 | import com.lyms.platform.common.base.LoginContext; |
6 | +import com.lyms.platform.common.constants.ErrorCodeConstants; | |
6 | 7 | import com.lyms.platform.common.result.BaseListResponse; |
8 | +import com.lyms.platform.common.result.BaseObjectResponse; | |
7 | 9 | import com.lyms.platform.common.result.BaseResponse; |
10 | +import com.lyms.platform.common.utils.SystemConfig; | |
11 | +import com.lyms.platform.operate.web.facade.AntenatalExaminationFacade; | |
12 | +import com.lyms.platform.operate.web.facade.BasicConfigFacade; | |
8 | 13 | import com.lyms.platform.operate.web.facade.PatientFacade; |
9 | 14 | import com.lyms.platform.operate.web.facade.PuerperaManagerFacade; |
10 | 15 | import com.lyms.platform.operate.web.request.PatientQueryRequest; |
... | ... | @@ -20,6 +25,10 @@ |
20 | 25 | |
21 | 26 | import javax.servlet.http.HttpServletRequest; |
22 | 27 | import javax.validation.Valid; |
28 | +import java.util.ArrayList; | |
29 | +import java.util.HashMap; | |
30 | +import java.util.List; | |
31 | +import java.util.Map; | |
23 | 32 | |
24 | 33 | /** |
25 | 34 | * 孕产妇管理接口 |
26 | 35 | |
... | ... | @@ -33,7 +42,11 @@ |
33 | 42 | @Autowired |
34 | 43 | private PuerperaManagerFacade puerperaManagerFacade; |
35 | 44 | @Autowired |
45 | + private BasicConfigFacade basicConfigFacade; | |
46 | + @Autowired | |
36 | 47 | private PatientFacade patientFacade; |
48 | + @Autowired | |
49 | + private AntenatalExaminationFacade antenatalExaminationFacade; | |
37 | 50 | |
38 | 51 | /** |
39 | 52 | * 产妇管理查询接口 |
... | ... | @@ -110,6 +123,20 @@ |
110 | 123 | return patientFacade.queryHighRisk(patientsQueryRequest, null, 3); |
111 | 124 | } |
112 | 125 | |
126 | + @RequestMapping(value = "/apatients/enums", method = RequestMethod.GET) | |
127 | + @ResponseBody | |
128 | + public BaseResponse getEnums(){ | |
129 | + Map<String, Object> map = new HashMap<>(); | |
130 | + map.put("gwfz", basicConfigFacade.getBaseicConfigByParentId(SystemConfig.FXYS)); | |
131 | + List list = new ArrayList(); | |
132 | + list.add(5); | |
133 | + list.add(10); | |
134 | + list.add(15); | |
135 | + list.add(20); | |
136 | + map.put("score", list); | |
137 | + map.put("organizations", antenatalExaminationFacade.convert()); | |
138 | + return new BaseObjectResponse().setData(map).setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功"); | |
139 | + } | |
113 | 140 | /** |
114 | 141 | * 获取产妇基本信息 |
115 | 142 | * |