Commit 0c67c05c8fcdb393fe0c6bf1b9a7379bce48a69e
1 parent
611163cf7c
Exists in
master
and in
6 other branches
聊城分娩接口
Showing 1 changed file with 36 additions and 4 deletions
platform-operate-api/src/main/java/com/lyms/hospitalapi/lcdcf/LcdcfFmService.java
View file @
0c67c05
... | ... | @@ -61,14 +61,46 @@ |
61 | 61 | " DELIVER_HOSPITAL as DELIVER_HOSPITAL,\n" + |
62 | 62 | " DELIVER_DOCTOR as DELIVER_DOCTOR"; |
63 | 63 | |
64 | - Connection conn = com.lyms.hospitalapi.lcdcf.ConnTools.makeHisConnection(); | |
65 | - QueryRunner queryRunner = new QueryRunner(); | |
64 | + | |
65 | + Fm fm1 =new Fm(); | |
66 | + fm1.setID("DA00416015"); | |
67 | + fm1.setBHNUM("0077596"); | |
68 | + fm1.setVCCARDNO("32125111"); | |
69 | + fm1.setPHONE("13412222211"); | |
70 | + fm1.setNAME("adfafa"); | |
71 | + fm1.setIDCARD("130429197806077126"); | |
72 | + fm1.setBABY_DELIVERY_TIME("2017-12-4 10:40:20"); | |
73 | + fm1.setBABY_SEX("男"); | |
74 | + fm1.setDUE_WEEK("29周"); | |
75 | + fm1.setFETUS_NUM(1); | |
76 | + fm1.setBABY_WEIGHT(3500); | |
77 | + fm1.setBABY_HEIGHT(50); | |
78 | + fm1.setBABY_APGAR_SCORE_ONE(11); | |
79 | + fm1.setBABY_APGAR_SCORE_FIVE(15); | |
80 | + fm1.setBABY_APGAR_SCORE_TEN(20); | |
81 | + fm1.setBABY_PREGNANCY_OUT("活产"); | |
82 | + fm1.setTMCSIDE("自然邓氏法"); | |
83 | + fm1.setMATERNAL_INFO("良好"); | |
84 | + fm1.setPERINEAL_CONDITION("无"); | |
85 | + fm1.setSxl("100ml"); | |
86 | + fm1.setCcOne("1时20分"); | |
87 | + fm1.setCcTwo("1时30分"); | |
88 | + fm1.setCcThree("1时40分"); | |
89 | + fm1.setTotal("4时30分"); | |
90 | + fm1.setDELIVER_DOCTOR("李四"); | |
91 | + fm1.setPLACENTA_NUM(1); | |
92 | + | |
93 | + | |
94 | + | |
95 | + //Connection conn = com.lyms.hospitalapi.lcdcf.ConnTools.makeHisConnection(); | |
96 | + //QueryRunner queryRunner = new QueryRunner(); | |
66 | 97 | SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
67 | 98 | MaternalDeliverResult maternalDeliverResult = new MaternalDeliverResult(); |
68 | 99 | try { |
69 | 100 | String sql = "select "+cloumns+" from v_deliveryinfo where BHNUM="+bhnum+" and BABY_PREGNANCY_OUT='活胎'"; |
70 | - List<Fm> list = queryRunner.query(conn, sql, new BeanListHandler<Fm>(Fm.class)); | |
71 | - | |
101 | + // List<Fm> list = queryRunner.query(conn, sql, new BeanListHandler<Fm>(Fm.class)); | |
102 | + List<Fm> list = new ArrayList<Fm>(); | |
103 | + list.add(fm1); | |
72 | 104 | if(list!=null && list.size()>0){ |
73 | 105 | |
74 | 106 | List<MaternalDeliverResult.Baby> babys = new ArrayList<MaternalDeliverResult.Baby>(); |