Commit 707c5a4f44baa64e9fc01fdbbc734327bc554e41
Exists in
master
and in
7 other branches
Merge remote-tracking branch 'origin/master'
Showing 7 changed files
- platform-common/src/main/java/com/lyms/platform/common/enums/RenShenJieJuEnums.java
- platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/ConnTools.java
- platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/FmItem.java
- platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/FmPatInfo.java
- platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdfyFmService.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ApplyOrderFacade.java
- platform-operate-api/src/main/resources/spring/applicationContext-quartz.xml
platform-common/src/main/java/com/lyms/platform/common/enums/RenShenJieJuEnums.java
View file @
707c5a4
platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/ConnTools.java
View file @
707c5a4
| ... | ... | @@ -29,6 +29,12 @@ |
| 29 | 29 | private static String lisUser = "sa"; |
| 30 | 30 | private static String lisPassword = "ccnms05*"; |
| 31 | 31 | |
| 32 | + | |
| 33 | + private static String fmDirverClassName = "com.microsoft.sqlserver.jdbc.SQLServerDriver"; | |
| 34 | + private static String fmUrl = "jdbc:sqlserver://168.254.0.99\\hissvr; DatabaseName=JHMK2HIS"; | |
| 35 | + private static String fmUser = "LYMS"; | |
| 36 | + private static String fmPassword = "LYMS"; | |
| 37 | + | |
| 32 | 38 | public static Connection makeHisConnection() { |
| 33 | 39 | Connection conn = null; |
| 34 | 40 | try { |
| ... | ... | @@ -68,6 +74,21 @@ |
| 68 | 74 | } |
| 69 | 75 | try { |
| 70 | 76 | conn = DriverManager.getConnection(lisUrl, lisUser, lisPassword); |
| 77 | + } catch (SQLException e) { | |
| 78 | + e.printStackTrace(); | |
| 79 | + } | |
| 80 | + return conn; | |
| 81 | + } | |
| 82 | + | |
| 83 | + public static Connection makeFmConnection() { | |
| 84 | + Connection conn = null; | |
| 85 | + try { | |
| 86 | + Class.forName(fmDirverClassName); | |
| 87 | + } catch (ClassNotFoundException e) { | |
| 88 | + e.printStackTrace(); | |
| 89 | + } | |
| 90 | + try { | |
| 91 | + conn = DriverManager.getConnection(fmUrl, fmUser, fmPassword); | |
| 71 | 92 | } catch (SQLException e) { |
| 72 | 93 | e.printStackTrace(); |
| 73 | 94 | } |
platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/FmItem.java
View file @
707c5a4
| 1 | +package com.lyms.hospitalapi.qhdfy; | |
| 2 | + | |
| 3 | +/** | |
| 4 | + * 医院填写的分娩记录 | |
| 5 | + * Created by lqy on 2017-01-11. | |
| 6 | + */ | |
| 7 | +public class FmItem { | |
| 8 | + | |
| 9 | + private String syxh; // 病人唯一标识 | |
| 10 | + private String yexh; // //0 传入‘0’ | |
| 11 | + private String jlrq; // 格式如下:2016071122:15:57 | |
| 12 | + private String ssrq;////出生日期 char(16) 格式如下:2016071122:15:57 | |
| 13 | + private String ssj;////婴儿序号 前台填写的婴儿序号 | |
| 14 | + private String yexb;////婴儿性别 传入‘男’或‘女’汉字 | |
| 15 | + private String rc;//妊娠 妊娠几周 | |
| 16 | + private String jts;//加多少天, | |
| 17 | + private String djt;//第几胎 | |
| 18 | + private String cjc;//-产几次, | |
| 19 | + private String zx;//-窒息, | |
| 20 | + private String tz;//-体重 | |
| 21 | + private String sc;//身长 | |
| 22 | + private String sh;//伤害 | |
| 23 | + private String jx;//畸形 | |
| 24 | + private String yfz;//评分,1分钟 | |
| 25 | + private String wfz;//评分,5分钟 | |
| 26 | + private String sfz;//评分,10分钟 | |
| 27 | + private String pfz;//评分者 | |
| 28 | + private String ccqk;//产出情况 | |
| 29 | + private String fmfs;//分娩方式 | |
| 30 | + private String tpmcfs;//-胎盘娩出方式 | |
| 31 | + private String yeqk;//婴儿情况 | |
| 32 | + private String sw;//--死亡 | |
| 33 | + private String sffq;//-是否放弃 | |
| 34 | + private String fqyy;//-放弃原因 | |
| 35 | + private String hyqk;//会阴情况 | |
| 36 | + private String hyqk1;//会阴切开 | |
| 37 | + private String yc;//引产 | |
| 38 | + private String sfgw;//是否高危 | |
| 39 | + private String mctpslxl;//娩出时胎盘失血量 | |
| 40 | + private String chexxsxl;//产后二小时失血量 | |
| 41 | + private String qjqk;//抢救情况 | |
| 42 | + private String srks;//输入科室 | |
| 43 | + private String jsz;//接生者 | |
| 44 | + | |
| 45 | + public String getSyxh() { | |
| 46 | + return syxh; | |
| 47 | + } | |
| 48 | + | |
| 49 | + public void setSyxh(String syxh) { | |
| 50 | + this.syxh = syxh; | |
| 51 | + } | |
| 52 | + | |
| 53 | + public String getYexh() { | |
| 54 | + return yexh; | |
| 55 | + } | |
| 56 | + | |
| 57 | + public void setYexh(String yexh) { | |
| 58 | + this.yexh = yexh; | |
| 59 | + } | |
| 60 | + | |
| 61 | + public String getJlrq() { | |
| 62 | + return jlrq; | |
| 63 | + } | |
| 64 | + | |
| 65 | + public void setJlrq(String jlrq) { | |
| 66 | + this.jlrq = jlrq; | |
| 67 | + } | |
| 68 | + | |
| 69 | + public String getSsrq() { | |
| 70 | + return ssrq; | |
| 71 | + } | |
| 72 | + | |
| 73 | + public void setSsrq(String ssrq) { | |
| 74 | + this.ssrq = ssrq; | |
| 75 | + } | |
| 76 | + | |
| 77 | + public String getSsj() { | |
| 78 | + return ssj; | |
| 79 | + } | |
| 80 | + | |
| 81 | + public void setSsj(String ssj) { | |
| 82 | + this.ssj = ssj; | |
| 83 | + } | |
| 84 | + | |
| 85 | + public String getYexb() { | |
| 86 | + return yexb; | |
| 87 | + } | |
| 88 | + | |
| 89 | + public void setYexb(String yexb) { | |
| 90 | + this.yexb = yexb; | |
| 91 | + } | |
| 92 | + | |
| 93 | + public String getRc() { | |
| 94 | + return rc; | |
| 95 | + } | |
| 96 | + | |
| 97 | + public void setRc(String rc) { | |
| 98 | + this.rc = rc; | |
| 99 | + } | |
| 100 | + | |
| 101 | + public String getJts() { | |
| 102 | + return jts; | |
| 103 | + } | |
| 104 | + | |
| 105 | + public void setJts(String jts) { | |
| 106 | + this.jts = jts; | |
| 107 | + } | |
| 108 | + | |
| 109 | + public String getDjt() { | |
| 110 | + return djt; | |
| 111 | + } | |
| 112 | + | |
| 113 | + public void setDjt(String djt) { | |
| 114 | + this.djt = djt; | |
| 115 | + } | |
| 116 | + | |
| 117 | + public String getCjc() { | |
| 118 | + return cjc; | |
| 119 | + } | |
| 120 | + | |
| 121 | + public void setCjc(String cjc) { | |
| 122 | + this.cjc = cjc; | |
| 123 | + } | |
| 124 | + | |
| 125 | + public String getZx() { | |
| 126 | + return zx; | |
| 127 | + } | |
| 128 | + | |
| 129 | + public void setZx(String zx) { | |
| 130 | + this.zx = zx; | |
| 131 | + } | |
| 132 | + | |
| 133 | + public String getTz() { | |
| 134 | + return tz; | |
| 135 | + } | |
| 136 | + | |
| 137 | + public void setTz(String tz) { | |
| 138 | + this.tz = tz; | |
| 139 | + } | |
| 140 | + | |
| 141 | + public String getSc() { | |
| 142 | + return sc; | |
| 143 | + } | |
| 144 | + | |
| 145 | + public void setSc(String sc) { | |
| 146 | + this.sc = sc; | |
| 147 | + } | |
| 148 | + | |
| 149 | + public String getSh() { | |
| 150 | + return sh; | |
| 151 | + } | |
| 152 | + | |
| 153 | + public void setSh(String sh) { | |
| 154 | + this.sh = sh; | |
| 155 | + } | |
| 156 | + | |
| 157 | + public String getJx() { | |
| 158 | + return jx; | |
| 159 | + } | |
| 160 | + | |
| 161 | + public void setJx(String jx) { | |
| 162 | + this.jx = jx; | |
| 163 | + } | |
| 164 | + | |
| 165 | + public String getYfz() { | |
| 166 | + return yfz; | |
| 167 | + } | |
| 168 | + | |
| 169 | + public void setYfz(String yfz) { | |
| 170 | + this.yfz = yfz; | |
| 171 | + } | |
| 172 | + | |
| 173 | + public String getWfz() { | |
| 174 | + return wfz; | |
| 175 | + } | |
| 176 | + | |
| 177 | + public void setWfz(String wfz) { | |
| 178 | + this.wfz = wfz; | |
| 179 | + } | |
| 180 | + | |
| 181 | + public String getSfz() { | |
| 182 | + return sfz; | |
| 183 | + } | |
| 184 | + | |
| 185 | + public void setSfz(String sfz) { | |
| 186 | + this.sfz = sfz; | |
| 187 | + } | |
| 188 | + | |
| 189 | + public String getPfz() { | |
| 190 | + return pfz; | |
| 191 | + } | |
| 192 | + | |
| 193 | + public void setPfz(String pfz) { | |
| 194 | + this.pfz = pfz; | |
| 195 | + } | |
| 196 | + | |
| 197 | + public String getCcqk() { | |
| 198 | + return ccqk; | |
| 199 | + } | |
| 200 | + | |
| 201 | + public void setCcqk(String ccqk) { | |
| 202 | + this.ccqk = ccqk; | |
| 203 | + } | |
| 204 | + | |
| 205 | + public String getFmfs() { | |
| 206 | + return fmfs; | |
| 207 | + } | |
| 208 | + | |
| 209 | + public void setFmfs(String fmfs) { | |
| 210 | + this.fmfs = fmfs; | |
| 211 | + } | |
| 212 | + | |
| 213 | + public String getTpmcfs() { | |
| 214 | + return tpmcfs; | |
| 215 | + } | |
| 216 | + | |
| 217 | + public void setTpmcfs(String tpmcfs) { | |
| 218 | + this.tpmcfs = tpmcfs; | |
| 219 | + } | |
| 220 | + | |
| 221 | + public String getYeqk() { | |
| 222 | + return yeqk; | |
| 223 | + } | |
| 224 | + | |
| 225 | + public void setYeqk(String yeqk) { | |
| 226 | + this.yeqk = yeqk; | |
| 227 | + } | |
| 228 | + | |
| 229 | + public String getSw() { | |
| 230 | + return sw; | |
| 231 | + } | |
| 232 | + | |
| 233 | + public void setSw(String sw) { | |
| 234 | + this.sw = sw; | |
| 235 | + } | |
| 236 | + | |
| 237 | + public String getSffq() { | |
| 238 | + return sffq; | |
| 239 | + } | |
| 240 | + | |
| 241 | + public void setSffq(String sffq) { | |
| 242 | + this.sffq = sffq; | |
| 243 | + } | |
| 244 | + | |
| 245 | + public String getFqyy() { | |
| 246 | + return fqyy; | |
| 247 | + } | |
| 248 | + | |
| 249 | + public void setFqyy(String fqyy) { | |
| 250 | + this.fqyy = fqyy; | |
| 251 | + } | |
| 252 | + | |
| 253 | + public String getHyqk() { | |
| 254 | + return hyqk; | |
| 255 | + } | |
| 256 | + | |
| 257 | + public void setHyqk(String hyqk) { | |
| 258 | + this.hyqk = hyqk; | |
| 259 | + } | |
| 260 | + | |
| 261 | + public String getHyqk1() { | |
| 262 | + return hyqk1; | |
| 263 | + } | |
| 264 | + | |
| 265 | + public void setHyqk1(String hyqk1) { | |
| 266 | + this.hyqk1 = hyqk1; | |
| 267 | + } | |
| 268 | + | |
| 269 | + public String getYc() { | |
| 270 | + return yc; | |
| 271 | + } | |
| 272 | + | |
| 273 | + public void setYc(String yc) { | |
| 274 | + this.yc = yc; | |
| 275 | + } | |
| 276 | + | |
| 277 | + public String getSfgw() { | |
| 278 | + return sfgw; | |
| 279 | + } | |
| 280 | + | |
| 281 | + public void setSfgw(String sfgw) { | |
| 282 | + this.sfgw = sfgw; | |
| 283 | + } | |
| 284 | + | |
| 285 | + public String getMctpslxl() { | |
| 286 | + return mctpslxl; | |
| 287 | + } | |
| 288 | + | |
| 289 | + public void setMctpslxl(String mctpslxl) { | |
| 290 | + this.mctpslxl = mctpslxl; | |
| 291 | + } | |
| 292 | + | |
| 293 | + public String getChexxsxl() { | |
| 294 | + return chexxsxl; | |
| 295 | + } | |
| 296 | + | |
| 297 | + public void setChexxsxl(String chexxsxl) { | |
| 298 | + this.chexxsxl = chexxsxl; | |
| 299 | + } | |
| 300 | + | |
| 301 | + public String getQjqk() { | |
| 302 | + return qjqk; | |
| 303 | + } | |
| 304 | + | |
| 305 | + public void setQjqk(String qjqk) { | |
| 306 | + this.qjqk = qjqk; | |
| 307 | + } | |
| 308 | + | |
| 309 | + public String getSrks() { | |
| 310 | + return srks; | |
| 311 | + } | |
| 312 | + | |
| 313 | + public void setSrks(String srks) { | |
| 314 | + this.srks = srks; | |
| 315 | + } | |
| 316 | + | |
| 317 | + public String getJsz() { | |
| 318 | + return jsz; | |
| 319 | + } | |
| 320 | + | |
| 321 | + public void setJsz(String jsz) { | |
| 322 | + this.jsz = jsz; | |
| 323 | + } | |
| 324 | +} |
platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/FmPatInfo.java
View file @
707c5a4
| 1 | +package com.lyms.hospitalapi.qhdfy; | |
| 2 | + | |
| 3 | +/** | |
| 4 | + * 分娩孕妇的基本信息 | |
| 5 | + * Created by lqy on 2017-01-11. | |
| 6 | + */ | |
| 7 | +public class FmPatInfo { | |
| 8 | + | |
| 9 | + private String SYXH; | |
| 10 | + private String YYDM; | |
| 11 | + private String BAHM; | |
| 12 | + private String ZYHM; | |
| 13 | + private String BRXM; | |
| 14 | + private String BRXB; | |
| 15 | + private String CSNY; | |
| 16 | + private String DWDZ; | |
| 17 | + private String DWDH; | |
| 18 | + private String DWYB; | |
| 19 | + private String HKDZ; | |
| 20 | + private String HKDH; | |
| 21 | + private String LXRM; | |
| 22 | + private String LXDZ; | |
| 23 | + private String LXDH; | |
| 24 | + private String RYKS; | |
| 25 | + private String RYBQ; | |
| 26 | + private String RYCH; | |
| 27 | + private String RYRQ; | |
| 28 | + private String CYKS; | |
| 29 | + private String CYBQ; | |
| 30 | + private String CYCH; | |
| 31 | + private String CYRQ; | |
| 32 | + private String ZYTS; | |
| 33 | + private String ZYYS; | |
| 34 | + private String ZZYS; | |
| 35 | + private String ZRYS; | |
| 36 | + private String KZR; | |
| 37 | + | |
| 38 | + private String HIS_SYXH; | |
| 39 | + private String QJCS; | |
| 40 | + private String CGCS; | |
| 41 | + private String LYFSDM; | |
| 42 | + private String LYFSMC; | |
| 43 | + private String JSYLJG; | |
| 44 | + private String MZZDBM; | |
| 45 | + private String MZZD; | |
| 46 | + private String ZYZDBM; | |
| 47 | + private String RYZD; | |
| 48 | + private String ZYZD; | |
| 49 | + | |
| 50 | + public String getSYXH() { | |
| 51 | + return SYXH; | |
| 52 | + } | |
| 53 | + | |
| 54 | + public void setSYXH(String SYXH) { | |
| 55 | + this.SYXH = SYXH; | |
| 56 | + } | |
| 57 | + | |
| 58 | + public String getYYDM() { | |
| 59 | + return YYDM; | |
| 60 | + } | |
| 61 | + | |
| 62 | + public void setYYDM(String YYDM) { | |
| 63 | + this.YYDM = YYDM; | |
| 64 | + } | |
| 65 | + | |
| 66 | + public String getBAHM() { | |
| 67 | + return BAHM; | |
| 68 | + } | |
| 69 | + | |
| 70 | + public void setBAHM(String BAHM) { | |
| 71 | + this.BAHM = BAHM; | |
| 72 | + } | |
| 73 | + | |
| 74 | + public String getZYHM() { | |
| 75 | + return ZYHM; | |
| 76 | + } | |
| 77 | + | |
| 78 | + public void setZYHM(String ZYHM) { | |
| 79 | + this.ZYHM = ZYHM; | |
| 80 | + } | |
| 81 | + | |
| 82 | + public String getBRXM() { | |
| 83 | + return BRXM; | |
| 84 | + } | |
| 85 | + | |
| 86 | + public void setBRXM(String BRXM) { | |
| 87 | + this.BRXM = BRXM; | |
| 88 | + } | |
| 89 | + | |
| 90 | + public String getBRXB() { | |
| 91 | + return BRXB; | |
| 92 | + } | |
| 93 | + | |
| 94 | + public void setBRXB(String BRXB) { | |
| 95 | + this.BRXB = BRXB; | |
| 96 | + } | |
| 97 | + | |
| 98 | + public String getCSNY() { | |
| 99 | + return CSNY; | |
| 100 | + } | |
| 101 | + | |
| 102 | + public void setCSNY(String CSNY) { | |
| 103 | + this.CSNY = CSNY; | |
| 104 | + } | |
| 105 | + | |
| 106 | + public String getDWDZ() { | |
| 107 | + return DWDZ; | |
| 108 | + } | |
| 109 | + | |
| 110 | + public void setDWDZ(String DWDZ) { | |
| 111 | + this.DWDZ = DWDZ; | |
| 112 | + } | |
| 113 | + | |
| 114 | + public String getDWDH() { | |
| 115 | + return DWDH; | |
| 116 | + } | |
| 117 | + | |
| 118 | + public void setDWDH(String DWDH) { | |
| 119 | + this.DWDH = DWDH; | |
| 120 | + } | |
| 121 | + | |
| 122 | + public String getDWYB() { | |
| 123 | + return DWYB; | |
| 124 | + } | |
| 125 | + | |
| 126 | + public void setDWYB(String DWYB) { | |
| 127 | + this.DWYB = DWYB; | |
| 128 | + } | |
| 129 | + | |
| 130 | + public String getHKDZ() { | |
| 131 | + return HKDZ; | |
| 132 | + } | |
| 133 | + | |
| 134 | + public void setHKDZ(String HKDZ) { | |
| 135 | + this.HKDZ = HKDZ; | |
| 136 | + } | |
| 137 | + | |
| 138 | + public String getHKDH() { | |
| 139 | + return HKDH; | |
| 140 | + } | |
| 141 | + | |
| 142 | + public void setHKDH(String HKDH) { | |
| 143 | + this.HKDH = HKDH; | |
| 144 | + } | |
| 145 | + | |
| 146 | + public String getLXRM() { | |
| 147 | + return LXRM; | |
| 148 | + } | |
| 149 | + | |
| 150 | + public void setLXRM(String LXRM) { | |
| 151 | + this.LXRM = LXRM; | |
| 152 | + } | |
| 153 | + | |
| 154 | + public String getLXDZ() { | |
| 155 | + return LXDZ; | |
| 156 | + } | |
| 157 | + | |
| 158 | + public void setLXDZ(String LXDZ) { | |
| 159 | + this.LXDZ = LXDZ; | |
| 160 | + } | |
| 161 | + | |
| 162 | + public String getLXDH() { | |
| 163 | + return LXDH; | |
| 164 | + } | |
| 165 | + | |
| 166 | + public void setLXDH(String LXDH) { | |
| 167 | + this.LXDH = LXDH; | |
| 168 | + } | |
| 169 | + | |
| 170 | + public String getRYKS() { | |
| 171 | + return RYKS; | |
| 172 | + } | |
| 173 | + | |
| 174 | + public void setRYKS(String RYKS) { | |
| 175 | + this.RYKS = RYKS; | |
| 176 | + } | |
| 177 | + | |
| 178 | + public String getRYBQ() { | |
| 179 | + return RYBQ; | |
| 180 | + } | |
| 181 | + | |
| 182 | + public void setRYBQ(String RYBQ) { | |
| 183 | + this.RYBQ = RYBQ; | |
| 184 | + } | |
| 185 | + | |
| 186 | + public String getRYCH() { | |
| 187 | + return RYCH; | |
| 188 | + } | |
| 189 | + | |
| 190 | + public void setRYCH(String RYCH) { | |
| 191 | + this.RYCH = RYCH; | |
| 192 | + } | |
| 193 | + | |
| 194 | + public String getRYRQ() { | |
| 195 | + return RYRQ; | |
| 196 | + } | |
| 197 | + | |
| 198 | + public void setRYRQ(String RYRQ) { | |
| 199 | + this.RYRQ = RYRQ; | |
| 200 | + } | |
| 201 | + | |
| 202 | + public String getCYKS() { | |
| 203 | + return CYKS; | |
| 204 | + } | |
| 205 | + | |
| 206 | + public void setCYKS(String CYKS) { | |
| 207 | + this.CYKS = CYKS; | |
| 208 | + } | |
| 209 | + | |
| 210 | + public String getCYBQ() { | |
| 211 | + return CYBQ; | |
| 212 | + } | |
| 213 | + | |
| 214 | + public void setCYBQ(String CYBQ) { | |
| 215 | + this.CYBQ = CYBQ; | |
| 216 | + } | |
| 217 | + | |
| 218 | + public String getCYCH() { | |
| 219 | + return CYCH; | |
| 220 | + } | |
| 221 | + | |
| 222 | + public void setCYCH(String CYCH) { | |
| 223 | + this.CYCH = CYCH; | |
| 224 | + } | |
| 225 | + | |
| 226 | + public String getCYRQ() { | |
| 227 | + return CYRQ; | |
| 228 | + } | |
| 229 | + | |
| 230 | + public void setCYRQ(String CYRQ) { | |
| 231 | + this.CYRQ = CYRQ; | |
| 232 | + } | |
| 233 | + | |
| 234 | + public String getZYTS() { | |
| 235 | + return ZYTS; | |
| 236 | + } | |
| 237 | + | |
| 238 | + public void setZYTS(String ZYTS) { | |
| 239 | + this.ZYTS = ZYTS; | |
| 240 | + } | |
| 241 | + | |
| 242 | + public String getZYYS() { | |
| 243 | + return ZYYS; | |
| 244 | + } | |
| 245 | + | |
| 246 | + public void setZYYS(String ZYYS) { | |
| 247 | + this.ZYYS = ZYYS; | |
| 248 | + } | |
| 249 | + | |
| 250 | + public String getZZYS() { | |
| 251 | + return ZZYS; | |
| 252 | + } | |
| 253 | + | |
| 254 | + public void setZZYS(String ZZYS) { | |
| 255 | + this.ZZYS = ZZYS; | |
| 256 | + } | |
| 257 | + | |
| 258 | + public String getZRYS() { | |
| 259 | + return ZRYS; | |
| 260 | + } | |
| 261 | + | |
| 262 | + public void setZRYS(String ZRYS) { | |
| 263 | + this.ZRYS = ZRYS; | |
| 264 | + } | |
| 265 | + | |
| 266 | + public String getKZR() { | |
| 267 | + return KZR; | |
| 268 | + } | |
| 269 | + | |
| 270 | + public void setKZR(String KZR) { | |
| 271 | + this.KZR = KZR; | |
| 272 | + } | |
| 273 | + | |
| 274 | + public String getHIS_SYXH() { | |
| 275 | + return HIS_SYXH; | |
| 276 | + } | |
| 277 | + | |
| 278 | + public void setHIS_SYXH(String HIS_SYXH) { | |
| 279 | + this.HIS_SYXH = HIS_SYXH; | |
| 280 | + } | |
| 281 | + | |
| 282 | + public String getQJCS() { | |
| 283 | + return QJCS; | |
| 284 | + } | |
| 285 | + | |
| 286 | + public void setQJCS(String QJCS) { | |
| 287 | + this.QJCS = QJCS; | |
| 288 | + } | |
| 289 | + | |
| 290 | + public String getCGCS() { | |
| 291 | + return CGCS; | |
| 292 | + } | |
| 293 | + | |
| 294 | + public void setCGCS(String CGCS) { | |
| 295 | + this.CGCS = CGCS; | |
| 296 | + } | |
| 297 | + | |
| 298 | + public String getLYFSDM() { | |
| 299 | + return LYFSDM; | |
| 300 | + } | |
| 301 | + | |
| 302 | + public void setLYFSDM(String LYFSDM) { | |
| 303 | + this.LYFSDM = LYFSDM; | |
| 304 | + } | |
| 305 | + | |
| 306 | + public String getLYFSMC() { | |
| 307 | + return LYFSMC; | |
| 308 | + } | |
| 309 | + | |
| 310 | + public void setLYFSMC(String LYFSMC) { | |
| 311 | + this.LYFSMC = LYFSMC; | |
| 312 | + } | |
| 313 | + | |
| 314 | + public String getJSYLJG() { | |
| 315 | + return JSYLJG; | |
| 316 | + } | |
| 317 | + | |
| 318 | + public void setJSYLJG(String JSYLJG) { | |
| 319 | + this.JSYLJG = JSYLJG; | |
| 320 | + } | |
| 321 | + | |
| 322 | + public String getMZZDBM() { | |
| 323 | + return MZZDBM; | |
| 324 | + } | |
| 325 | + | |
| 326 | + public void setMZZDBM(String MZZDBM) { | |
| 327 | + this.MZZDBM = MZZDBM; | |
| 328 | + } | |
| 329 | + | |
| 330 | + public String getMZZD() { | |
| 331 | + return MZZD; | |
| 332 | + } | |
| 333 | + | |
| 334 | + public void setMZZD(String MZZD) { | |
| 335 | + this.MZZD = MZZD; | |
| 336 | + } | |
| 337 | + | |
| 338 | + public String getZYZDBM() { | |
| 339 | + return ZYZDBM; | |
| 340 | + } | |
| 341 | + | |
| 342 | + public void setZYZDBM(String ZYZDBM) { | |
| 343 | + this.ZYZDBM = ZYZDBM; | |
| 344 | + } | |
| 345 | + | |
| 346 | + public String getRYZD() { | |
| 347 | + return RYZD; | |
| 348 | + } | |
| 349 | + | |
| 350 | + public void setRYZD(String RYZD) { | |
| 351 | + this.RYZD = RYZD; | |
| 352 | + } | |
| 353 | + | |
| 354 | + public String getZYZD() { | |
| 355 | + return ZYZD; | |
| 356 | + } | |
| 357 | + | |
| 358 | + public void setZYZD(String ZYZD) { | |
| 359 | + this.ZYZD = ZYZD; | |
| 360 | + } | |
| 361 | +} |
platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdfyFmService.java
View file @
707c5a4
| 1 | +package com.lyms.hospitalapi.qhdfy; | |
| 2 | + | |
| 3 | +import com.lyms.platform.biz.service.PatientsService; | |
| 4 | +import com.lyms.platform.common.enums.FmTypeEnums; | |
| 5 | +import com.lyms.platform.common.enums.RenShenJieJuEnums; | |
| 6 | +import com.lyms.platform.common.enums.TpmcTypeEnums; | |
| 7 | +import com.lyms.platform.common.enums.YnEnums; | |
| 8 | +import com.lyms.platform.common.utils.DateUtil; | |
| 9 | +import com.lyms.platform.common.utils.ExceptionUtils; | |
| 10 | +import com.lyms.platform.common.utils.JsonUtil; | |
| 11 | +import com.lyms.platform.common.utils.StringUtils; | |
| 12 | +import com.lyms.platform.operate.web.facade.MatDeliverFacade; | |
| 13 | +import com.lyms.platform.operate.web.request.MatDeliverAddRequest; | |
| 14 | +import com.lyms.platform.permission.model.Users; | |
| 15 | +import com.lyms.platform.permission.model.UsersQuery; | |
| 16 | +import com.lyms.platform.permission.service.UsersService; | |
| 17 | +import com.lyms.platform.pojo.*; | |
| 18 | +import com.lyms.platform.query.PatientsQuery; | |
| 19 | +import org.apache.commons.collections.CollectionUtils; | |
| 20 | +import org.apache.commons.dbutils.DbUtils; | |
| 21 | +import org.apache.commons.dbutils.QueryRunner; | |
| 22 | +import org.apache.commons.dbutils.handlers.BeanListHandler; | |
| 23 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 24 | +import org.springframework.stereotype.Service; | |
| 25 | + | |
| 26 | +import java.sql.Connection; | |
| 27 | +import java.sql.SQLException; | |
| 28 | +import java.text.ParseException; | |
| 29 | +import java.text.SimpleDateFormat; | |
| 30 | +import java.util.*; | |
| 31 | + | |
| 32 | +/** | |
| 33 | + * Created by 秦皇岛分娩接口对接医院 on 2017/1/11 | |
| 34 | + */ | |
| 35 | +@Service("qhdfyFmService") | |
| 36 | +public class QhdfyFmService { | |
| 37 | + | |
| 38 | + @Autowired | |
| 39 | + private PatientsService patientsService; | |
| 40 | + | |
| 41 | + @Autowired | |
| 42 | + private MatDeliverFacade matDeliverFacade; | |
| 43 | + | |
| 44 | + @Autowired | |
| 45 | + private UsersService usersService; | |
| 46 | + | |
| 47 | + public void fmTimerWork() | |
| 48 | + { | |
| 49 | + SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd HH:mm"); | |
| 50 | + Date end = new Date(); | |
| 51 | + Date start = new Date(end.getTime()-1000*60*60); | |
| 52 | + String startStr = fmt.format(start); | |
| 53 | + String endStr = fmt.format(end); | |
| 54 | + System.out.println("start="+startStr+"end="+endStr); | |
| 55 | + ExceptionUtils.catchException("start="+startStr+"end="+endStr); | |
| 56 | +// queryFmPatient(startStr, endStr); | |
| 57 | + } | |
| 58 | + | |
| 59 | + | |
| 60 | + public void queryFmPatient(String start,String end) { | |
| 61 | + Connection conn = ConnTools.makeFmConnection(); | |
| 62 | + QueryRunner queryRunner = new QueryRunner(); | |
| 63 | + SimpleDateFormat fmt = new SimpleDateFormat("yyyyMMddHH:mm:ss"); | |
| 64 | + try {//select count(*) from JHMK_FMJL where CONVERT(varchar(16),SSRQ, 20) > CONVERT(varchar(16),'20170110', 20) | |
| 65 | + List<FmItem> list = queryRunner.query(conn, "select * from JHMK_FMJL where " + | |
| 66 | + " CONVERT(varchar(50),SSRQ, 20) > CONVERT(varchar(50),'"+start+"', 20) and CONVERT(varchar(50),SSRQ, 20) <= CONVERT(varchar(50),'"+end+"', 20)" + | |
| 67 | + "and SYXH not in (select SYXH from JHMK_FMJL where JSZ is not null and SC is not null and TZ is not null and YFZ is not null and SH is not null and (SFFZRSTDT = ' 是 ' or SFSTDT = ' 是 '))", new BeanListHandler<FmItem>(FmItem.class)); | |
| 68 | + if (CollectionUtils.isNotEmpty(list)) { | |
| 69 | + for(FmItem item : list) | |
| 70 | + { | |
| 71 | + String dueDateStr = item.getSsrq(); | |
| 72 | + if (!StringUtils.isNotEmpty(dueDateStr)) | |
| 73 | + { | |
| 74 | + continue; | |
| 75 | + } | |
| 76 | + Date dueDate = fmt.parse(dueDateStr); | |
| 77 | + FmPatInfo patInfo = getFmPatInfoById(item.getSyxh()); | |
| 78 | + if (patInfo != null && com.lyms.platform.common.utils.StringUtils.isNotEmpty(patInfo.getLXDH())) | |
| 79 | + { | |
| 80 | + PatientsQuery query = new PatientsQuery(); | |
| 81 | + query.setYn(YnEnums.YES.getId()); | |
| 82 | + query.setType(1); //孕妇 | |
| 83 | + query.setDueStatus(0); //未终止妊娠 | |
| 84 | + query.setPhone(patInfo.getLXDH()); | |
| 85 | + List<Patients> patientses = patientsService.queryPatient(query); | |
| 86 | + if (CollectionUtils.isNotEmpty(patientses)) | |
| 87 | + { | |
| 88 | + Patients patient = patientses.get(0); | |
| 89 | + | |
| 90 | + UsersQuery usersQuery = new UsersQuery(); | |
| 91 | + usersQuery.setName(item.getJsz()); | |
| 92 | + usersQuery.setYn(YnEnums.YES.getId()); | |
| 93 | + List<Users> users = usersService.queryUsers(usersQuery); | |
| 94 | + if (!CollectionUtils.isNotEmpty(users)) | |
| 95 | + { | |
| 96 | + usersQuery.setName("产房"); | |
| 97 | + users = usersService.queryUsers(usersQuery); | |
| 98 | + } | |
| 99 | + | |
| 100 | + if (CollectionUtils.isNotEmpty(users) && users.get(0).getId() != null) | |
| 101 | + { | |
| 102 | + MatDeliverAddRequest deliverAddRequest = new MatDeliverAddRequest(); | |
| 103 | + | |
| 104 | + if (!com.lyms.platform.common.utils.StringUtils.isNotEmpty(item.getSsrq())) | |
| 105 | + { | |
| 106 | + continue; | |
| 107 | + } | |
| 108 | + | |
| 109 | + deliverAddRequest.setDueDate(DateUtil.getyyyy_MM_dd(dueDate)); | |
| 110 | + deliverAddRequest.setParentId(patient.getId()); | |
| 111 | + deliverAddRequest.setPid(patient.getPid()); | |
| 112 | + if (StringUtils.isNotEmpty(item.getRc())) | |
| 113 | + { | |
| 114 | + String week = ""; | |
| 115 | + if (item.getRc().split("\\u002B").length > 1) | |
| 116 | + { | |
| 117 | + week = item.getRc().split("\\u002B")[0]+"周"; | |
| 118 | + week+= item.getRc().split("\\u002B")[1]+"天"; | |
| 119 | + } | |
| 120 | + else | |
| 121 | + { | |
| 122 | + week = item.getRc()+"周"; | |
| 123 | + week+=item.getJts()+"天"; | |
| 124 | + } | |
| 125 | + deliverAddRequest.setDueWeek(week); | |
| 126 | + } | |
| 127 | + | |
| 128 | + deliverAddRequest.setTireNumber(1);//TODO 胎数 | |
| 129 | + deliverAddRequest.setPlacenta("1");//TODO 胎盘 | |
| 130 | + | |
| 131 | + if ("完好".equals(item.getHyqk())) | |
| 132 | + { | |
| 133 | + deliverAddRequest.setPerinealCondition("full"); | |
| 134 | + } | |
| 135 | + else if ("会阴切开".equals(item.getHyqk())) | |
| 136 | + { | |
| 137 | + deliverAddRequest.setPerinealCondition("split"); | |
| 138 | + } | |
| 139 | + | |
| 140 | + if ("一度裂伤".equals(item.getHyqk())) | |
| 141 | + { | |
| 142 | + deliverAddRequest.setSiLielevel(1); | |
| 143 | + } | |
| 144 | + else if ("二度裂伤".equals(item.getHyqk())) | |
| 145 | + { | |
| 146 | + deliverAddRequest.setSiLielevel(2); | |
| 147 | + } | |
| 148 | + else if ("三度裂伤".equals(item.getHyqk())) | |
| 149 | + { | |
| 150 | + deliverAddRequest.setSiLielevel(3); | |
| 151 | + } | |
| 152 | + | |
| 153 | + if (StringUtils.isNotEmpty(item.getChexxsxl())) | |
| 154 | + { | |
| 155 | + deliverAddRequest.settHloseBloodL(Double.parseDouble(item.getChexxsxl())); | |
| 156 | + } | |
| 157 | + | |
| 158 | + //胎盘信息 | |
| 159 | + List<MaternalDeliverModel.ExtPlacenta> extPlacentas = new ArrayList<>(); | |
| 160 | + MaternalDeliverModel.ExtPlacenta extPlacenta = new MaternalDeliverModel.ExtPlacenta(); | |
| 161 | + extPlacenta.setMcType(FmTypeEnums.getIdByName(item.getFmfs())); //分娩方式 | |
| 162 | + String tpmcType = ""; | |
| 163 | + if ("手术产".equals(item.getTpmcfs())) | |
| 164 | + { | |
| 165 | + tpmcType = TpmcTypeEnums.O2.getId(); | |
| 166 | + } | |
| 167 | + else if ("自然产出".equals(item.getTpmcfs())) | |
| 168 | + { | |
| 169 | + tpmcType = TpmcTypeEnums.O.getId(); | |
| 170 | + } | |
| 171 | + extPlacenta.setTpmcType(tpmcType); | |
| 172 | + extPlacentas.add(extPlacenta); | |
| 173 | + | |
| 174 | + //儿童 | |
| 175 | + List<MaternalDeliverModel.Baby> babies = new ArrayList<>(); | |
| 176 | + MaternalDeliverModel.Baby baby = new MaternalDeliverModel.Baby(); | |
| 177 | + Map<String,String> as = new HashMap<>(); | |
| 178 | + as.put("pf1",item.getYfz()); | |
| 179 | + as.put("pf5",item.getWfz()); | |
| 180 | + as.put("pf10", item.getSfz()); | |
| 181 | + baby.setApgarScore(JsonUtil.obj2JsonString(as)); | |
| 182 | + baby.setBabyGender("男".equals(item.getYexb()) ? "1" : "0"); | |
| 183 | + baby.setBabyHeight(item.getSc());//新生儿生长 | |
| 184 | + baby.setBabyWeight(item.getTz());//新生儿重量 | |
| 185 | + baby.setDeformity("无".equals(item.getJx()) ? 0 : 1); //畸形 0非畸形 1畸形 | |
| 186 | + baby.setAsphyxiaM(item.getZx()); //窒息分钟 | |
| 187 | + baby.setPregnancyOut(RenShenJieJuEnums.getIdByName(item.getCcqk())); // 妊娠结局 | |
| 188 | + baby.setBabyHealthy(item.getYeqk()); //新生儿疾病 | |
| 189 | + baby.setDueTime(item.getSsrq());//分娩时间 | |
| 190 | + babies.add(baby); | |
| 191 | + matDeliverFacade.addOrUpdateMatDeliver(deliverAddRequest, users.get(0).getId()); | |
| 192 | + } | |
| 193 | + | |
| 194 | + } | |
| 195 | + } | |
| 196 | + } | |
| 197 | + } | |
| 198 | + | |
| 199 | + List<FmItem> duoTaiList = queryRunner.query(conn, "select * from JHMK_FMJL where JSZ is not null and SC is not null and TZ is not null and YFZ is not null " + | |
| 200 | + " and SH is not null and (SFFZRSTDT = ' 是 ' or SFSTDT = ' 是 ') and " + | |
| 201 | + " CONVERT(varchar(50),SSRQ, 20) > CONVERT(varchar(50),'"+start+"', 20) and CONVERT(varchar(50),SSRQ, 20) <= CONVERT(varchar(50),'"+end+"', 20)", new BeanListHandler<FmItem>(FmItem.class)); | |
| 202 | + if (CollectionUtils.isNotEmpty(duoTaiList)) { | |
| 203 | + Map<String,List<FmItem>> maps = new HashMap<>(); | |
| 204 | + for(FmItem item : duoTaiList) | |
| 205 | + { | |
| 206 | + if (maps.containsKey(item.getSyxh())) | |
| 207 | + { | |
| 208 | + maps.get(item.getSyxh()).add(item); | |
| 209 | + } | |
| 210 | + else | |
| 211 | + { | |
| 212 | + List items = new ArrayList<FmItem>(); | |
| 213 | + items.add(item); | |
| 214 | + maps.put(item.getSyxh(),items); | |
| 215 | + } | |
| 216 | + | |
| 217 | + } | |
| 218 | + if (maps.size() > 0) | |
| 219 | + { | |
| 220 | + for(String key : maps.keySet()) | |
| 221 | + { | |
| 222 | + List<FmItem> items = maps.get(key); | |
| 223 | + FmItem item = items.get(0); | |
| 224 | + | |
| 225 | + String dueDateStr = item.getSsrq(); | |
| 226 | + if (!StringUtils.isNotEmpty(dueDateStr)) | |
| 227 | + { | |
| 228 | + continue; | |
| 229 | + } | |
| 230 | + Date dueDate = fmt.parse(dueDateStr); | |
| 231 | + FmPatInfo patInfo = getFmPatInfoById(item.getSyxh()); | |
| 232 | + if (patInfo != null && com.lyms.platform.common.utils.StringUtils.isNotEmpty(patInfo.getLXDH())) | |
| 233 | + { | |
| 234 | + PatientsQuery query = new PatientsQuery(); | |
| 235 | + query.setYn(YnEnums.YES.getId()); | |
| 236 | + query.setType(1); //孕妇 | |
| 237 | + query.setDueStatus(0); //未终止妊娠 | |
| 238 | + query.setPhone(patInfo.getLXDH()); | |
| 239 | + List<Patients> patientses = patientsService.queryPatient(query); | |
| 240 | + if (CollectionUtils.isNotEmpty(patientses)) | |
| 241 | + { | |
| 242 | + Patients patient = patientses.get(0); | |
| 243 | + | |
| 244 | + UsersQuery usersQuery = new UsersQuery(); | |
| 245 | + usersQuery.setName(item.getJsz()); | |
| 246 | + usersQuery.setYn(YnEnums.YES.getId()); | |
| 247 | + List<Users> users = usersService.queryUsers(usersQuery); | |
| 248 | + if (!CollectionUtils.isNotEmpty(users)) | |
| 249 | + { | |
| 250 | + usersQuery.setName("产房"); | |
| 251 | + users = usersService.queryUsers(usersQuery); | |
| 252 | + } | |
| 253 | + | |
| 254 | + if (CollectionUtils.isNotEmpty(users) && users.get(0).getId() != null) | |
| 255 | + { | |
| 256 | + MatDeliverAddRequest deliverAddRequest = new MatDeliverAddRequest(); | |
| 257 | + | |
| 258 | + if (!com.lyms.platform.common.utils.StringUtils.isNotEmpty(item.getSsrq())) | |
| 259 | + { | |
| 260 | + continue; | |
| 261 | + } | |
| 262 | + | |
| 263 | + deliverAddRequest.setDueDate(DateUtil.getyyyy_MM_dd(dueDate)); | |
| 264 | + deliverAddRequest.setParentId(patient.getId()); | |
| 265 | + deliverAddRequest.setPid(patient.getPid()); | |
| 266 | + if (StringUtils.isNotEmpty(item.getRc())) | |
| 267 | + { | |
| 268 | + String week = ""; | |
| 269 | + if (item.getRc().split("\\u002B").length > 1) | |
| 270 | + { | |
| 271 | + week = item.getRc().split("\\u002B")[0]+"周"; | |
| 272 | + week+= item.getRc().split("\\u002B")[1]+"天"; | |
| 273 | + } | |
| 274 | + else | |
| 275 | + { | |
| 276 | + week = item.getRc()+"周"; | |
| 277 | + week+=item.getJts()+"天"; | |
| 278 | + } | |
| 279 | + deliverAddRequest.setDueWeek(week); | |
| 280 | + } | |
| 281 | + | |
| 282 | + deliverAddRequest.setTireNumber(items.size());//TODO 胎数 | |
| 283 | + deliverAddRequest.setPlacenta(items.size()+"");//TODO 胎盘 | |
| 284 | + | |
| 285 | + if ("完好".equals(item.getHyqk())) | |
| 286 | + { | |
| 287 | + deliverAddRequest.setPerinealCondition("full"); | |
| 288 | + } | |
| 289 | + else if ("会阴切开".equals(item.getHyqk())) | |
| 290 | + { | |
| 291 | + deliverAddRequest.setPerinealCondition("split"); | |
| 292 | + } | |
| 293 | + | |
| 294 | + if ("一度裂伤".equals(item.getHyqk())) | |
| 295 | + { | |
| 296 | + deliverAddRequest.setSiLielevel(1); | |
| 297 | + } | |
| 298 | + else if ("二度裂伤".equals(item.getHyqk())) | |
| 299 | + { | |
| 300 | + deliverAddRequest.setSiLielevel(2); | |
| 301 | + } | |
| 302 | + else if ("三度裂伤".equals(item.getHyqk())) | |
| 303 | + { | |
| 304 | + deliverAddRequest.setSiLielevel(3); | |
| 305 | + } | |
| 306 | + | |
| 307 | + if (StringUtils.isNotEmpty(item.getChexxsxl())) | |
| 308 | + { | |
| 309 | + deliverAddRequest.settHloseBloodL(Double.parseDouble(item.getChexxsxl())); | |
| 310 | + } | |
| 311 | + | |
| 312 | + //胎盘信息 | |
| 313 | + List<MaternalDeliverModel.ExtPlacenta> extPlacentas = new ArrayList<>(); | |
| 314 | + //儿童 | |
| 315 | + List<MaternalDeliverModel.Baby> babies = new ArrayList<>(); | |
| 316 | + | |
| 317 | + for (FmItem item1 : items) | |
| 318 | + { | |
| 319 | + MaternalDeliverModel.ExtPlacenta extPlacenta = new MaternalDeliverModel.ExtPlacenta(); | |
| 320 | + extPlacenta.setMcType(FmTypeEnums.getIdByName(item.getFmfs())); //分娩方式 | |
| 321 | + String tpmcType = ""; | |
| 322 | + if ("手术产".equals(item.getTpmcfs())) | |
| 323 | + { | |
| 324 | + tpmcType = TpmcTypeEnums.O2.getId(); | |
| 325 | + } | |
| 326 | + else if ("自然产出".equals(item.getTpmcfs())) | |
| 327 | + { | |
| 328 | + tpmcType = TpmcTypeEnums.O.getId(); | |
| 329 | + } | |
| 330 | + extPlacenta.setTpmcType(tpmcType); | |
| 331 | + extPlacentas.add(extPlacenta); | |
| 332 | + | |
| 333 | + MaternalDeliverModel.Baby baby = new MaternalDeliverModel.Baby(); | |
| 334 | + Map<String,String> as = new HashMap<>(); | |
| 335 | + as.put("pf1",item.getYfz()); | |
| 336 | + as.put("pf5",item.getWfz()); | |
| 337 | + as.put("pf10", item.getSfz()); | |
| 338 | + baby.setApgarScore(JsonUtil.obj2JsonString(as)); | |
| 339 | + baby.setBabyGender("男".equals(item.getYexb()) ? "1" : "0"); | |
| 340 | + baby.setBabyHeight(item.getSc());//新生儿生长 | |
| 341 | + baby.setBabyWeight(item.getTz());//新生儿重量 | |
| 342 | + baby.setDeformity("无".equals(item.getJx()) ? 0 : 1); //畸形 0非畸形 1畸形 | |
| 343 | + baby.setAsphyxiaM(item.getZx()); //窒息分钟 | |
| 344 | + baby.setPregnancyOut(RenShenJieJuEnums.getIdByName(item.getCcqk())); // 妊娠结局 | |
| 345 | + baby.setBabyHealthy(item.getYeqk()); //新生儿疾病 | |
| 346 | + baby.setDueTime(item.getSsrq());//分娩时间 | |
| 347 | + babies.add(baby); | |
| 348 | + | |
| 349 | + } | |
| 350 | + matDeliverFacade.addOrUpdateMatDeliver(deliverAddRequest, users.get(0).getId()); | |
| 351 | + } | |
| 352 | + | |
| 353 | + } | |
| 354 | + } | |
| 355 | + } | |
| 356 | + } | |
| 357 | + } | |
| 358 | + DbUtils.closeQuietly(conn); | |
| 359 | + } catch (SQLException e) { | |
| 360 | + ExceptionUtils.catchException(e, "sql执行异常"); | |
| 361 | + e.printStackTrace(); | |
| 362 | + } catch (ParseException e) { | |
| 363 | + ExceptionUtils.catchException(e,"分娩日期解析错误"); | |
| 364 | + e.printStackTrace(); | |
| 365 | + } | |
| 366 | + finally { | |
| 367 | + DbUtils.closeQuietly(conn); | |
| 368 | + } | |
| 369 | + } | |
| 370 | + | |
| 371 | + | |
| 372 | + /** | |
| 373 | + *查询通过分娩的syxh来查询对应孕妇的基本信息 | |
| 374 | + * @param syxh | |
| 375 | + * @return | |
| 376 | + */ | |
| 377 | + public FmPatInfo getFmPatInfoById(String syxh) | |
| 378 | + { | |
| 379 | + Connection conn = ConnTools.makeFmConnection(); | |
| 380 | + QueryRunner queryRunner = new QueryRunner(); | |
| 381 | + try { | |
| 382 | + List<FmPatInfo> list = queryRunner.query(conn, "SELECT * FROM JHMK_BASY WHERE SYXH = '"+syxh+"'", new BeanListHandler<FmPatInfo>(FmPatInfo.class)); | |
| 383 | + if (CollectionUtils.isNotEmpty(list)) { | |
| 384 | + return list.get(0); | |
| 385 | + } | |
| 386 | + DbUtils.closeQuietly(conn); | |
| 387 | + } catch (SQLException e) { | |
| 388 | + DbUtils.closeQuietly(conn); | |
| 389 | + e.printStackTrace(); | |
| 390 | + } | |
| 391 | + return null; | |
| 392 | + } | |
| 393 | + | |
| 394 | +} |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ApplyOrderFacade.java
View file @
707c5a4
| ... | ... | @@ -846,7 +846,7 @@ |
| 846 | 846 | data.put("transferredDisease", orderModel.getTransferredDisease()); |
| 847 | 847 | data.put("created", orderModel.getCreated()); |
| 848 | 848 | data.put("received", orderModel.getReceived()); |
| 849 | - data.put("phone", orderModel.getRealPhone()); | |
| 849 | + data.put("phone", orderModel.getPhone()); | |
| 850 | 850 | data.put("status", orderModel.getStatus()); |
| 851 | 851 | //1转入 |
| 852 | 852 | if ("1".equals(applyOrderQueryRequest.getAction())) { |
| ... | ... | @@ -887,7 +887,7 @@ |
| 887 | 887 | |
| 888 | 888 | cnames.put("name", "姓名"); |
| 889 | 889 | cnames.put("age", "年龄"); |
| 890 | - cnames.put("dueWeek", "转入孕周"); | |
| 890 | + cnames.put("dueWeek", "转出孕周"); | |
| 891 | 891 | cnames.put("cDueWeek", "当前孕周"); |
| 892 | 892 | cnames.put("dueDate", "预产期"); |
| 893 | 893 | cnames.put("rLevel", "高危等级"); |
platform-operate-api/src/main/resources/spring/applicationContext-quartz.xml
View file @
707c5a4
| ... | ... | @@ -37,6 +37,17 @@ |
| 37 | 37 | <property name="concurrent" value="false"></property> |
| 38 | 38 | </bean> |
| 39 | 39 | |
| 40 | + | |
| 41 | + <!-- 秦皇岛医院分娩接口--> | |
| 42 | + <bean id="qhdFmTimerWork" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"> | |
| 43 | + <!-- 要调用的bean --> | |
| 44 | + <property name="targetObject" ref="qhdfyFmService"></property> | |
| 45 | + <!-- 要调用的Method --> | |
| 46 | + <property name="targetMethod" value="fmTimerWork"></property> | |
| 47 | + <!-- 是否并发,false表示 如果发生错误也不影响下一次的调用 --> | |
| 48 | + <property name="concurrent" value="false"></property> | |
| 49 | + </bean> | |
| 50 | + | |
| 40 | 51 | <!-- 配置一个触发器 --> |
| 41 | 52 | <bean id="addSieveJobTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean"> |
| 42 | 53 | <property name="jobDetail" ref="addSieveJob"></property> |
| 43 | 54 | |
| ... | ... | @@ -70,7 +81,13 @@ |
| 70 | 81 | <property name="cronExpression" value="0 31 4 * * ?"></property> |
| 71 | 82 | </bean> |
| 72 | 83 | |
| 84 | + <!-- 配置一个触发器 --> | |
| 85 | + <bean id="qhdFmTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean"> | |
| 86 | + <property name="jobDetail" ref="qhdFmTimerWork"></property> | |
| 87 | + <property name="cronExpression" value="0 0 */1 * * ?"></property> | |
| 88 | + </bean> | |
| 73 | 89 | |
| 90 | + | |
| 74 | 91 | <!-- 总调度,用于启动定时器 --> |
| 75 | 92 | <bean id="schedulerFactory" class="org.springframework.scheduling.quartz.SchedulerFactoryBean"> |
| 76 | 93 | <property name="triggers" > |
| ... | ... | @@ -79,6 +96,7 @@ |
| 79 | 96 | <ref bean="delSieveTrigger"/> |
| 80 | 97 | <ref bean="addSieveJobTrigger"/> |
| 81 | 98 | <ref bean="correctSieveOrderTrigger"/> |
| 99 | + <ref bean="qhdFmTrigger"/> | |
| 82 | 100 | </list> |
| 83 | 101 | </property> |
| 84 | 102 | </bean> |