Commit e159851012ea8e2287d3b3751bd914eef436b5f7

Authored by liquanyu
1 parent 48de76b581

code update

Showing 2 changed files with 9 additions and 9 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/StopPregnancyController.java View file @ e159851
... ... @@ -45,13 +45,13 @@
45 45  
46 46 /**
47 47 *查询终止妊娠记录
48   - * @param patientId 孕妇建档Id
  48 + * @param id 孕妇建档Id
49 49 * @return
50 50 */
51   - @RequestMapping(method = RequestMethod.GET, value = "/queryStopPreg/{patientId}")
  51 + @RequestMapping(method = RequestMethod.GET, value = "/queryStopPreg/{id}")
52 52 @ResponseBody
53   - public BaseResponse queryStopPreg(@PathVariable("patientId")String patientId) {
54   - return stopPregnancyFacade.queryStopPreg(patientId);
  53 + public BaseResponse queryStopPreg(@PathVariable("id")String id) {
  54 + return stopPregnancyFacade.queryStopPreg(id);
55 55 }
56 56  
57 57  
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/StopPregnancyFacade.java View file @ e159851
... ... @@ -196,15 +196,15 @@
196 196  
197 197 /**
198 198 * 查询终止妊娠
199   - * @param patientId
  199 + * @param id
200 200 * @return
201 201 */
202   - public BaseResponse queryStopPreg(String patientId) {
  202 + public BaseResponse queryStopPreg(String id) {
203 203  
204 204 Map map = new HashMap();
205 205 StopPregQuery query = new StopPregQuery();
206 206 query.setYn(YnEnums.YES.getId());
207   - query.setPatientId(patientId);
  207 + query.setId(id);
208 208 StopPregResult result = null;
209 209 List<StopPregModel> stopPregs = stopPregnancyService.queryStopPreg(query);
210 210 if (CollectionUtils.isNotEmpty(stopPregs))
211 211  
... ... @@ -237,12 +237,12 @@
237 237  
238 238 //查询孕妇的基本信息
239 239 AntexListResult antexListResult = null;
240   - if(!StringUtils.isEmpty(patientId))
  240 + if(!StringUtils.isEmpty(result.getPatientId()))
241 241 {
242 242 Patients patients = null;
243 243  
244 244 PatientsQuery patientsQuery = new PatientsQuery();
245   - patientsQuery.setId(patientId);
  245 + patientsQuery.setId(result.getPatientId());
246 246 patientsQuery.setYn(YnEnums.YES.getId());
247 247  
248 248 List<Patients> listPatiens = patientsService.queryPatient(patientsQuery);