Commit 9d6d67c61ed4360c3e4235b5d308f33598c991bd
1 parent
bbf9a66237
Exists in
master
and in
6 other branches
威海住院号查询分娩建档
Showing 6 changed files with 156 additions and 0 deletions
- platform-dal/src/main/java/com/lyms/platform/pojo/MaternalDeliverModel.java
- platform-operate-api/src/main/java/com/lyms/hospitalapi/pojo/WhfyHisModel.java
- platform-operate-api/src/main/java/com/lyms/hospitalapi/whfy/ConnTools.java
- platform-operate-api/src/main/java/com/lyms/hospitalapi/whfy/WhfyHisService.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/MatDeliverAddRequest.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/MaternalDeliverResult.java
platform-dal/src/main/java/com/lyms/platform/pojo/MaternalDeliverModel.java
View file @
9d6d67c
... | ... | @@ -527,9 +527,18 @@ |
527 | 527 | private String umXqFy;//脐带血清反应 |
528 | 528 | private Integer skinContact;//皮肤接触及早吮吸>=30分钟 |
529 | 529 | private String zhixi;//窒息(0:青紫;1:苍白) |
530 | + private String impression;//印象 | |
530 | 531 | |
531 | 532 | public Baby(){ |
532 | 533 | |
534 | + } | |
535 | + | |
536 | + public String getImpression() { | |
537 | + return impression; | |
538 | + } | |
539 | + | |
540 | + public void setImpression(String impression) { | |
541 | + this.impression = impression; | |
533 | 542 | } |
534 | 543 | |
535 | 544 | public Integer getSkinContact() { |
platform-operate-api/src/main/java/com/lyms/hospitalapi/pojo/WhfyHisModel.java
View file @
9d6d67c
1 | +package com.lyms.hospitalapi.pojo; | |
2 | + | |
3 | +/** | |
4 | + * Created by Administrator on 2018/12/18. | |
5 | + */ | |
6 | +public class WhfyHisModel { | |
7 | + private String bhnum;//住院号 | |
8 | + private String name;//姓名 | |
9 | + private String xes;//性别 | |
10 | + private String birth;//出生日期 | |
11 | + private String idno;//身份证号 | |
12 | + private String phone;//电话号码 | |
13 | + | |
14 | + public String getXes() { | |
15 | + return xes; | |
16 | + } | |
17 | + | |
18 | + public void setXes(String xes) { | |
19 | + this.xes = xes; | |
20 | + } | |
21 | + | |
22 | + public String getBhnum() { | |
23 | + return bhnum; | |
24 | + } | |
25 | + | |
26 | + public void setBhnum(String bhnum) { | |
27 | + this.bhnum = bhnum; | |
28 | + } | |
29 | + | |
30 | + public String getName() { | |
31 | + return name; | |
32 | + } | |
33 | + | |
34 | + public void setName(String name) { | |
35 | + this.name = name; | |
36 | + } | |
37 | + | |
38 | + public String getBirth() { | |
39 | + return birth; | |
40 | + } | |
41 | + | |
42 | + public void setBirth(String birth) { | |
43 | + this.birth = birth; | |
44 | + } | |
45 | + | |
46 | + public String getIdno() { | |
47 | + return idno; | |
48 | + } | |
49 | + | |
50 | + public void setIdno(String idno) { | |
51 | + this.idno = idno; | |
52 | + } | |
53 | + | |
54 | + public String getPhone() { | |
55 | + return phone; | |
56 | + } | |
57 | + | |
58 | + public void setPhone(String phone) { | |
59 | + this.phone = phone; | |
60 | + } | |
61 | +} |
platform-operate-api/src/main/java/com/lyms/hospitalapi/whfy/ConnTools.java
View file @
9d6d67c
... | ... | @@ -17,6 +17,12 @@ |
17 | 17 | private static String user = "sa"; |
18 | 18 | private static String password = "123qwe!@#"; |
19 | 19 | |
20 | + //his | |
21 | + private static String dirverHisClassName = "oracle.jdbc.driver.OracleDriver"; | |
22 | + private static String hisurl = "jdbc:oracle:thin:@200.200.200.1:1521:oracle"; | |
23 | + private static String hisuser = "lyms"; | |
24 | + private static String hispassword = "lyms"; | |
25 | + | |
20 | 26 | public static Connection makeHisConnection() { |
21 | 27 | Connection conn = null; |
22 | 28 | try { |
... | ... | @@ -31,6 +37,23 @@ |
31 | 37 | } |
32 | 38 | return conn; |
33 | 39 | } |
40 | + | |
41 | + | |
42 | + public static Connection makeHiConnection() { | |
43 | + Connection conn = null; | |
44 | + try { | |
45 | + Class.forName(dirverHisClassName); | |
46 | + } catch (ClassNotFoundException e) { | |
47 | + e.printStackTrace(); | |
48 | + } | |
49 | + try { | |
50 | + conn = DriverManager.getConnection(hisurl, hisuser, hispassword); | |
51 | + } catch (SQLException e) { | |
52 | + e.printStackTrace(); | |
53 | + } | |
54 | + return conn; | |
55 | + } | |
56 | + | |
34 | 57 | |
35 | 58 | public static void close(Connection conn ,CallableStatement cs) |
36 | 59 | { |
platform-operate-api/src/main/java/com/lyms/hospitalapi/whfy/WhfyHisService.java
View file @
9d6d67c
1 | +package com.lyms.hospitalapi.whfy; | |
2 | + | |
3 | +import com.lyms.hospitalapi.pojo.DzReplace; | |
4 | +import com.lyms.hospitalapi.pojo.WhfyHisModel; | |
5 | +import com.lyms.platform.operate.web.utils.CollectionUtils; | |
6 | +import org.apache.commons.dbutils.DbUtils; | |
7 | +import org.apache.commons.dbutils.QueryRunner; | |
8 | +import org.apache.commons.dbutils.handlers.BeanListHandler; | |
9 | +import org.apache.commons.lang.StringUtils; | |
10 | +import org.springframework.stereotype.Service; | |
11 | + | |
12 | +import java.sql.Connection; | |
13 | +import java.util.ArrayList; | |
14 | +import java.util.List; | |
15 | + | |
16 | +/** | |
17 | + * Created by Administrator on 2018/12/18. | |
18 | + */ | |
19 | +@Service("whfyHisService") | |
20 | +public class WhfyHisService { | |
21 | + | |
22 | + public WhfyHisModel getIdNo(String bhnum){ | |
23 | + Connection conn = com.lyms.hospitalapi.whfy.ConnTools.makeHiConnection(); | |
24 | + WhfyHisModel whfyHisModel = new WhfyHisModel(); | |
25 | + if(StringUtils.isNotEmpty(bhnum)){ | |
26 | + String sql = "select patient_id as bhnum,name,sex,to_char(date_of_birth,'yyyy-mm-dd') as birth," + | |
27 | + "id_no as idno,next_of_kin_phone as phone from lyms.v_patient_idno"; | |
28 | + try{ | |
29 | + QueryRunner queryRunner = new QueryRunner(true); | |
30 | + List<WhfyHisModel> whList = queryRunner.query(conn,sql,new BeanListHandler<WhfyHisModel>(WhfyHisModel.class)); | |
31 | + if(CollectionUtils.isNotEmpty(whList)){ | |
32 | + whfyHisModel = whList.get(0); | |
33 | + } | |
34 | + }catch (Exception e){ | |
35 | + e.printStackTrace(); | |
36 | + }finally { | |
37 | + DbUtils.closeQuietly(conn); | |
38 | + } | |
39 | + } | |
40 | + return whfyHisModel; | |
41 | + } | |
42 | + | |
43 | +} |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/MatDeliverAddRequest.java
View file @
9d6d67c
... | ... | @@ -1125,6 +1125,7 @@ |
1125 | 1125 | private String umXqFy;//脐带血清反应 |
1126 | 1126 | private Integer skinContact;//皮肤接触及早吮吸>=30分钟 |
1127 | 1127 | private String zhixi;//窒息(0:青紫;1:苍白) |
1128 | + private String impression;//印象 | |
1128 | 1129 | |
1129 | 1130 | @Override |
1130 | 1131 | public MaternalDeliverModel.Baby convertToDataModel() { |
1131 | 1132 | |
... | ... | @@ -1236,8 +1237,17 @@ |
1236 | 1237 | baby.setUmXqFy(umXqFy); |
1237 | 1238 | baby.setSkinContact(skinContact); |
1238 | 1239 | baby.setZhixi(zhixi); |
1240 | + baby.setImpression(impression); | |
1239 | 1241 | |
1240 | 1242 | return baby; |
1243 | + } | |
1244 | + | |
1245 | + public String getImpression() { | |
1246 | + return impression; | |
1247 | + } | |
1248 | + | |
1249 | + public void setImpression(String impression) { | |
1250 | + this.impression = impression; | |
1241 | 1251 | } |
1242 | 1252 | |
1243 | 1253 | public Integer getSkinContact() { |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/MaternalDeliverResult.java
View file @
9d6d67c
... | ... | @@ -683,6 +683,7 @@ |
683 | 683 | private String umXqFy;//脐带血清反应 |
684 | 684 | private Integer skinContact;//皮肤接触及早吮吸>=30分钟 |
685 | 685 | private String zhixi;//窒息(0:青紫;1:苍白) |
686 | + private String impression;//印象 | |
686 | 687 | |
687 | 688 | public Baby(){}//增加无参构造方法 |
688 | 689 | public Baby(MaternalDeliverModel.Baby babyModel){ |
689 | 690 | |
... | ... | @@ -788,7 +789,16 @@ |
788 | 789 | setUmXqFy(babyModel.getUmXqFy()); |
789 | 790 | setSkinContact(babyModel.getSkinContact()); |
790 | 791 | setZhixi(babyModel.getZhixi()); |
792 | + setImpression(babyModel.getImpression()); | |
791 | 793 | |
794 | + } | |
795 | + | |
796 | + public String getImpression() { | |
797 | + return impression; | |
798 | + } | |
799 | + | |
800 | + public void setImpression(String impression) { | |
801 | + this.impression = impression; | |
792 | 802 | } |
793 | 803 | |
794 | 804 | public Integer getSkinContact() { |