Commit 0d350d1013e841387ba94611625581a7fb208311
1 parent
3d0a0d0bb4
Exists in
master
and in
6 other branches
德州分娩接口
Showing 1 changed file with 6 additions and 6 deletions
platform-operate-api/src/main/java/com/lyms/hospitalapi/dzfy/DzfyFmService.java
View file @
0d350d1
... | ... | @@ -65,7 +65,7 @@ |
65 | 65 | |
66 | 66 | private static Map<String, List> babyMap = new HashMap<>(); |
67 | 67 | |
68 | - private static final String HOSPITALID = "216"; | |
68 | + private static final String HOSPITALID = "1000000114"; | |
69 | 69 | static { |
70 | 70 | ONE_ENUMS.put(0, "长"); |
71 | 71 | ONE_ENUMS.put(1, "次"); |
72 | 72 | |
... | ... | @@ -156,14 +156,14 @@ |
156 | 156 | " DELIVER_DOCTOR as DELIVER_DOCTOR"; |
157 | 157 | |
158 | 158 | |
159 | - //Connection conn = com.lyms.hospitalapi.dzfy.ConnTools.makeHisConnection(); | |
160 | - Connection conn = com.lyms.hospitalapi.dzfy.ConnTools.makeLocalConnection(); | |
159 | + Connection conn = com.lyms.hospitalapi.dzfy.ConnTools.makeHisConnection(); | |
160 | + //Connection conn = com.lyms.hospitalapi.dzfy.ConnTools.makeLocalConnection(); | |
161 | 161 | QueryRunner queryRunner = new QueryRunner(); |
162 | 162 | SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
163 | 163 | try { |
164 | 164 | |
165 | 165 | String sql ="select "+cloumns+" from zlhis.v_deliveryinfo where " + |
166 | - " BABY_DELIVERY_TIME > to_date('"+start+"', 'yyyy-mm-dd hh24:mi:ss') and BABY_DELIVERY_TIME <= to_date('"+end+"', 'yyyy-mm-dd hh24:mi:ss')" ; | |
166 | + " CREATED > to_date('"+start+"', 'yyyy-mm-dd hh24:mi:ss') and CREATED <= to_date('"+end+"', 'yyyy-mm-dd hh24:mi:ss')" ; | |
167 | 167 | if (phone != null) |
168 | 168 | { |
169 | 169 | sql+=" and phone = '"+phone+"'"; |
... | ... | @@ -181,7 +181,7 @@ |
181 | 181 | String id = fm.getID();//获取所有的孕妇ID,方便孕妇产下双胞胎而用 |
182 | 182 | |
183 | 183 | //用来查询这个孕妇分娩的最近日期的sql |
184 | - String dateSql = "select max(to_char(BABY_DELIVERY_TIME,'yyyy-mm-dd hh24:mi:ss')) as babyDate from zlhis.v_deliveryinfo where " + | |
184 | + String dateSql = "select max(to_char(CREATED,'yyyy-mm-dd hh24:mi:ss')) as babyDate from zlhis.v_deliveryinfo where " + | |
185 | 185 | " ID='"+id+"'" ; |
186 | 186 | |
187 | 187 | //获取到这个孕妇的最近的分娩日期 |
... | ... | @@ -195,7 +195,7 @@ |
195 | 195 | |
196 | 196 | //查询这个孕妇最近日期所有分娩记录的sql |
197 | 197 | String allSql = "select "+cloumns+" from zlhis.v_deliveryinfo where " + |
198 | - " BABY_DELIVERY_TIME > to_date('"+startDate+"', 'yyyy-mm-dd hh24:mi:ss') and BABY_DELIVERY_TIME <= to_date('"+endDate+"', 'yyyy-mm-dd hh24:mi:ss')" + | |
198 | + " CREATED > to_date('"+startDate+"', 'yyyy-mm-dd hh24:mi:ss') and CREATED <= to_date('"+endDate+"', 'yyyy-mm-dd hh24:mi:ss')" + | |
199 | 199 | " and ID='"+id+"'" ; |
200 | 200 | |
201 | 201 | //查出这个ID对应孕妇在这个时间段的分娩记录 |