Commit 44c4e565d7c58caebb5c5f8f9d149ee203c12cfa
1 parent
6c8927c881
Exists in
luanping
#fix:新增威县孕产妇就诊记录及his病例ID
Showing 5 changed files with 98 additions and 2 deletions
- platform-dal/src/main/java/com/lyms/platform/pojo/Patients.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/PatientController.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/QuanChanResult.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/QuanPatientsResult.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/vo/PatientsDTO.java
platform-dal/src/main/java/com/lyms/platform/pojo/Patients.java
View file @
44c4e56
... | ... | @@ -499,6 +499,18 @@ |
499 | 499 | * 一个月内访问次数 |
500 | 500 | */ |
501 | 501 | private String visitsNum; |
502 | + /** | |
503 | + * 威县一个月内就诊记录状态 1为同步 0为不同步 | |
504 | + */ | |
505 | + private String wxStatus; | |
506 | + | |
507 | + public String getWxStatus() { | |
508 | + return wxStatus; | |
509 | + } | |
510 | + | |
511 | + public void setWxStatus(String wxStatus) { | |
512 | + this.wxStatus = wxStatus; | |
513 | + } | |
502 | 514 | |
503 | 515 | public String getPatientHId() { |
504 | 516 | return patientHId; |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/PatientController.java
View file @
44c4e56
... | ... | @@ -22,18 +22,25 @@ |
22 | 22 | private PatientsService patientsService; |
23 | 23 | //http://112.112.112.183:8085/viewhip-etyy/view/commView/layout.jsp?patientId=病人ID |
24 | 24 | |
25 | + /** | |
26 | + * 获取威县孕产妇数据 | |
27 | + * @return | |
28 | + */ | |
25 | 29 | @RequestMapping(method = RequestMethod.GET, value = "/getPatients") |
26 | 30 | @ResponseBody |
27 | 31 | public BaseResponse getPatients(){ |
28 | 32 | BaseResponse baseResponse=new BaseResponse(); |
29 | 33 | PatientsQuery patientsQuery =new PatientsQuery(); |
30 | 34 | patientsQuery.setYn(1); |
31 | - patientsQuery.setHospitalId("2100002419"); | |
35 | + patientsQuery.setHospitalId("2100002421"); | |
32 | 36 | List<Patients> patientsList= patientsService.queryPatient(patientsQuery); |
33 | 37 | baseResponse.setObject(patientsList); |
34 | 38 | return baseResponse.setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功"); |
35 | 39 | } |
36 | - | |
40 | + /** | |
41 | + * 更新威县孕产妇数据 | |
42 | + * @return | |
43 | + */ | |
37 | 44 | @RequestMapping(method = RequestMethod.POST, value = "/updatePatients") |
38 | 45 | @ResponseBody |
39 | 46 | public BaseResponse updatePatients(@RequestBody PatientsDTO patientsDTO){ |
... | ... | @@ -47,6 +54,7 @@ |
47 | 54 | Patients patient= patientsList.get(0); |
48 | 55 | patient.setPatientHId(patientsDTO.getPatientHId()); |
49 | 56 | patient.setVisitsNum(patientsDTO.getVisitsNum()); |
57 | + patient.setWxStatus(patientsDTO.getWxStatus()); | |
50 | 58 | patientsService.updatePatientOne(patient,patient.getId()); |
51 | 59 | baseResponse.setErrormsg("成功"); |
52 | 60 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/QuanChanResult.java
View file @
44c4e56
... | ... | @@ -130,6 +130,19 @@ |
130 | 130 | //领劵社区 |
131 | 131 | private String couponCommunity; |
132 | 132 | |
133 | + /** | |
134 | + * 威县一月内会诊数据 | |
135 | + * @return | |
136 | + */ | |
137 | + /** | |
138 | + * his病例ID | |
139 | + */ | |
140 | + private String patientHId; | |
141 | + /** | |
142 | + * 一个月内访问次数 | |
143 | + */ | |
144 | + private String visitsNum; | |
145 | + | |
133 | 146 | public String getLiveType() { |
134 | 147 | return liveType; |
135 | 148 | } |
... | ... | @@ -573,6 +586,22 @@ |
573 | 586 | this.phone = phone; |
574 | 587 | } |
575 | 588 | |
589 | + public String getPatientHId() { | |
590 | + return patientHId; | |
591 | + } | |
592 | + | |
593 | + public void setPatientHId(String patientHId) { | |
594 | + this.patientHId = patientHId; | |
595 | + } | |
596 | + | |
597 | + public String getVisitsNum() { | |
598 | + return visitsNum; | |
599 | + } | |
600 | + | |
601 | + public void setVisitsNum(String visitsNum) { | |
602 | + this.visitsNum = visitsNum; | |
603 | + } | |
604 | + | |
576 | 605 | @Override |
577 | 606 | public QuanChanResult convertToResult(Patients destModel) { |
578 | 607 | setId(destModel.getId()); |
... | ... | @@ -625,6 +654,9 @@ |
625 | 654 | } |
626 | 655 | setPid(destModel.getPid()); |
627 | 656 | setLastMenses(DateUtil.getyyyy_MM_dd(destModel.getLastMenses())); |
657 | + //威县定制字段 就诊次数 his病例ID | |
658 | + setVisitsNum(destModel.getVisitsNum()); | |
659 | + setPatientHId(destModel.getPatientHId()); | |
628 | 660 | return this; |
629 | 661 | } |
630 | 662 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/QuanPatientsResult.java
View file @
44c4e56
... | ... | @@ -122,6 +122,19 @@ |
122 | 122 | //最后检查时间 |
123 | 123 | private String lastCheckTime; |
124 | 124 | |
125 | + /** | |
126 | + * 威县一月内会诊数据 | |
127 | + * @return | |
128 | + */ | |
129 | + /** | |
130 | + * his病例ID | |
131 | + */ | |
132 | + private String patientHId; | |
133 | + /** | |
134 | + * 一个月内访问次数 | |
135 | + */ | |
136 | + private String visitsNum; | |
137 | + | |
125 | 138 | public String getLastCheckTime() { |
126 | 139 | return lastCheckTime; |
127 | 140 | } |
... | ... | @@ -507,6 +520,22 @@ |
507 | 520 | this.serviceType = serviceType; |
508 | 521 | } |
509 | 522 | |
523 | + public String getPatientHId() { | |
524 | + return patientHId; | |
525 | + } | |
526 | + | |
527 | + public void setPatientHId(String patientHId) { | |
528 | + this.patientHId = patientHId; | |
529 | + } | |
530 | + | |
531 | + public String getVisitsNum() { | |
532 | + return visitsNum; | |
533 | + } | |
534 | + | |
535 | + public void setVisitsNum(String visitsNum) { | |
536 | + this.visitsNum = visitsNum; | |
537 | + } | |
538 | + | |
510 | 539 | @Override |
511 | 540 | public QuanPatientsResult convertToResult(Patients destModel) { |
512 | 541 | setId(destModel.getId()); |
... | ... | @@ -562,6 +591,9 @@ |
562 | 591 | } |
563 | 592 | //秦皇岛定制字段:是否产筛 0:未产筛 1:已产筛 |
564 | 593 | setProductionSieveType(destModel.getProductionSieveType()); |
594 | + //威县定制字段 就诊次数 his病例ID | |
595 | + setVisitsNum(destModel.getVisitsNum()); | |
596 | + setPatientHId(destModel.getPatientHId()); | |
565 | 597 | return this; |
566 | 598 | } |
567 | 599 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/vo/PatientsDTO.java
View file @
44c4e56
... | ... | @@ -13,6 +13,10 @@ |
13 | 13 | * 一个月内访问次数 |
14 | 14 | */ |
15 | 15 | private String visitsNum; |
16 | + /** | |
17 | + * 状态 0为不同步 1为同步 | |
18 | + */ | |
19 | + private String wxStatus; | |
16 | 20 | |
17 | 21 | public String getId() { |
18 | 22 | return id; |
... | ... | @@ -36,6 +40,14 @@ |
36 | 40 | |
37 | 41 | public void setVisitsNum(String visitsNum) { |
38 | 42 | this.visitsNum = visitsNum; |
43 | + } | |
44 | + | |
45 | + public String getWxStatus() { | |
46 | + return wxStatus; | |
47 | + } | |
48 | + | |
49 | + public void setWxStatus(String wxStatus) { | |
50 | + this.wxStatus = wxStatus; | |
39 | 51 | } |
40 | 52 | } |