Commit 285967fb8f74651967ff9684c735160bbb0d82d3
Exists in
master
and in
1 other branch
Merge remote-tracking branch 'origin/master'
Showing 15 changed files
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/AntExChuModelTemp.java
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/BasicConfigServiceTest.java
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/MongoSyncService.java
- platform-common/src/main/java/com/lyms/platform/common/utils/CompressEncodeingUtil.java
- platform-common/src/main/java/com/lyms/platform/common/utils/DateUtil.java
- platform-common/src/main/java/com/lyms/platform/common/utils/SerializUtils.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/InitDataController.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/LisCrisisItemController.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/UsersController.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/FolicAcidFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PremaritalCheckupFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/FolicAcidQueryRequest.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/PremaritalCheckupQueryRequest.java
- platform-operate-api/src/main/resources/config.properties
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/AntExChuModelTemp.java
View file @
285967f
| 1 | +package com.lyms.platform.biz; | |
| 2 | + | |
| 3 | +import org.springframework.data.mongodb.core.mapping.Document; | |
| 4 | + | |
| 5 | +import java.io.Serializable; | |
| 6 | +import java.util.List; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * Created by riecard on 2016/12/1. | |
| 10 | + */ | |
| 11 | +@Document(collection = "lyms_antexc") | |
| 12 | +public class AntExChuModelTemp implements Serializable { | |
| 13 | + | |
| 14 | + private String id; | |
| 15 | + private String parentId; | |
| 16 | + private String pid; | |
| 17 | + //预产期 | |
| 18 | + private Object dueDate; | |
| 19 | + //末次月经 | |
| 20 | + private Object lastMenses; | |
| 21 | + private String cDueWeek; | |
| 22 | + private String bg; | |
| 23 | + // 既往史 | |
| 24 | + private String pastHistory ; | |
| 25 | + // 家族史 | |
| 26 | + private String familyHistory ; | |
| 27 | + //个人史 | |
| 28 | + private String personalHistory; | |
| 29 | + //疫苗接种史 | |
| 30 | + private String ymjzHistory ; | |
| 31 | + //药物过敏史 | |
| 32 | + private String ywgmHistory ; | |
| 33 | + //妇科手术史 | |
| 34 | + private String fksxHistory ; | |
| 35 | + // 叶酸服用 | |
| 36 | + private String ysfyHistory ; | |
| 37 | + //孕次 | |
| 38 | + private Integer pregnancyTimes; | |
| 39 | + // 产次 | |
| 40 | + private Integer prodTime; | |
| 41 | + // 顺产 | |
| 42 | + private Integer delivery; | |
| 43 | + //刨宫产 | |
| 44 | + private Integer planedProd; | |
| 45 | + //流产 | |
| 46 | + private Integer abortion; | |
| 47 | + //死胎 | |
| 48 | + private Integer stillbirth; | |
| 49 | + //死产 | |
| 50 | + private Integer stillChan ; | |
| 51 | + //新生儿死亡 | |
| 52 | + private Integer neoDeath; | |
| 53 | + //出生缺陷 | |
| 54 | + private Integer birthDefect; | |
| 55 | + // 身高 | |
| 56 | + private String height; | |
| 57 | + //体重 | |
| 58 | + private String weight ; | |
| 59 | + //孕前体重 | |
| 60 | + private String yqWeight ; | |
| 61 | + //体重指数 | |
| 62 | + private String baricIndex; | |
| 63 | + //本次妊娠情况 | |
| 64 | + private String cestationInfo; | |
| 65 | + // 宫高 | |
| 66 | + private String gonggao; | |
| 67 | + //腹围 | |
| 68 | + private String fuwei; | |
| 69 | + //胎数 | |
| 70 | + private String tireNumber1; | |
| 71 | + private String syjg; | |
| 72 | + private List placentas; | |
| 73 | + //心脏 | |
| 74 | + private String heart; | |
| 75 | + //肺部 | |
| 76 | + private String lungs; | |
| 77 | + //外阴 | |
| 78 | + private String vulva; | |
| 79 | + //阴道 | |
| 80 | + private String vagina; | |
| 81 | + // 宫颈 | |
| 82 | + private String cervical; | |
| 83 | + //子宫 | |
| 84 | + private String uterus; | |
| 85 | + //附件 | |
| 86 | + private String fujian; | |
| 87 | + private Object created; | |
| 88 | + private String hospitalId; | |
| 89 | + private String bp; | |
| 90 | + //丈夫健康情况 | |
| 91 | + private String hHealthInfo; | |
| 92 | + | |
| 93 | + public String getPid() { | |
| 94 | + return pid; | |
| 95 | + } | |
| 96 | + | |
| 97 | + public void setPid(String pid) { | |
| 98 | + this.pid = pid; | |
| 99 | + } | |
| 100 | + | |
| 101 | + public String getBp() { | |
| 102 | + return bp; | |
| 103 | + } | |
| 104 | + | |
| 105 | + public void setBp(String bp) { | |
| 106 | + this.bp = bp; | |
| 107 | + } | |
| 108 | + | |
| 109 | + public String getcDueWeek() { | |
| 110 | + return cDueWeek; | |
| 111 | + } | |
| 112 | + | |
| 113 | + public void setcDueWeek(String cDueWeek) { | |
| 114 | + this.cDueWeek = cDueWeek; | |
| 115 | + } | |
| 116 | + | |
| 117 | + public String getHospitalId() { | |
| 118 | + return hospitalId; | |
| 119 | + } | |
| 120 | + | |
| 121 | + public void setHospitalId(String hospitalId) { | |
| 122 | + this.hospitalId = hospitalId; | |
| 123 | + } | |
| 124 | + | |
| 125 | + public String getCervical() { | |
| 126 | + return cervical; | |
| 127 | + } | |
| 128 | + | |
| 129 | + public String getBg() { | |
| 130 | + return bg; | |
| 131 | + } | |
| 132 | + | |
| 133 | + public void setBg(String bg) { | |
| 134 | + this.bg = bg; | |
| 135 | + } | |
| 136 | + | |
| 137 | + public void setCervical(String cervical) { | |
| 138 | + this.cervical = cervical; | |
| 139 | + } | |
| 140 | + | |
| 141 | + public String getFujian() { | |
| 142 | + return fujian; | |
| 143 | + } | |
| 144 | + | |
| 145 | + public void setFujian(String fujian) { | |
| 146 | + this.fujian = fujian; | |
| 147 | + } | |
| 148 | + | |
| 149 | + public String getHeart() { | |
| 150 | + return heart; | |
| 151 | + } | |
| 152 | + | |
| 153 | + public void setHeart(String heart) { | |
| 154 | + this.heart = heart; | |
| 155 | + } | |
| 156 | + | |
| 157 | + public String getLungs() { | |
| 158 | + return lungs; | |
| 159 | + } | |
| 160 | + | |
| 161 | + public void setLungs(String lungs) { | |
| 162 | + this.lungs = lungs; | |
| 163 | + } | |
| 164 | + | |
| 165 | + public String getUterus() { | |
| 166 | + return uterus; | |
| 167 | + } | |
| 168 | + | |
| 169 | + public void setUterus(String uterus) { | |
| 170 | + this.uterus = uterus; | |
| 171 | + } | |
| 172 | + | |
| 173 | + public String getVagina() { | |
| 174 | + return vagina; | |
| 175 | + } | |
| 176 | + | |
| 177 | + public void setVagina(String vagina) { | |
| 178 | + this.vagina = vagina; | |
| 179 | + } | |
| 180 | + | |
| 181 | + public String getVulva() { | |
| 182 | + return vulva; | |
| 183 | + } | |
| 184 | + | |
| 185 | + public void setVulva(String vulva) { | |
| 186 | + this.vulva = vulva; | |
| 187 | + } | |
| 188 | + | |
| 189 | + public Object getCreated() { | |
| 190 | + return created; | |
| 191 | + } | |
| 192 | + | |
| 193 | + public void setCreated(Object created) { | |
| 194 | + this.created = created; | |
| 195 | + } | |
| 196 | + | |
| 197 | + public String getSyjg() { | |
| 198 | + return syjg; | |
| 199 | + } | |
| 200 | + | |
| 201 | + public void setSyjg(String syjg) { | |
| 202 | + this.syjg = syjg; | |
| 203 | + } | |
| 204 | + | |
| 205 | + public String gethHealthInfo() { | |
| 206 | + return hHealthInfo; | |
| 207 | + } | |
| 208 | + | |
| 209 | + public void sethHealthInfo(String hHealthInfo) { | |
| 210 | + this.hHealthInfo = hHealthInfo; | |
| 211 | + } | |
| 212 | + | |
| 213 | + /*//心率 | |
| 214 | + private double heartRate; | |
| 215 | + //胎方位 | |
| 216 | + private String fetalPosition; | |
| 217 | + //胎先露 | |
| 218 | + private String fetalPresentation; | |
| 219 | + // 衔接 | |
| 220 | + private String join;*/ | |
| 221 | + //高危因素 | |
| 222 | + private String highrisk ; | |
| 223 | + //高危评分 | |
| 224 | + private String highriskSocre; | |
| 225 | + // 其他高危 | |
| 226 | + private String otherHighRisk; | |
| 227 | + // 诊断 | |
| 228 | + private String diagnosis; | |
| 229 | + //处理意见 | |
| 230 | + private String treatOpinion; | |
| 231 | + //指导意见 | |
| 232 | + private String dirOpinion; | |
| 233 | + //产检 医生 | |
| 234 | + private String prodDoctor; | |
| 235 | + //产检日期 | |
| 236 | + private Object checkTime; | |
| 237 | + //下次产检时间 | |
| 238 | + private Object nextCheckTime; | |
| 239 | + private Integer yn; | |
| 240 | + //血红蛋白值 | |
| 241 | + private String xhdb ; | |
| 242 | + //白细胞计数值 | |
| 243 | + private String bxbjs ; | |
| 244 | + //血小板 | |
| 245 | + private String platelet; | |
| 246 | + // 血常规其他 | |
| 247 | + private String chgOther ; | |
| 248 | + // 尿蛋白 | |
| 249 | + private String ndb; | |
| 250 | + //尿糖 | |
| 251 | + private String nt; | |
| 252 | + //尿同体 | |
| 253 | + private String urineKetone ; | |
| 254 | + // 尿潜血 | |
| 255 | + private String bld ; | |
| 256 | + //尿常规其他 | |
| 257 | + private String ncgOther; | |
| 258 | + //ABO | |
| 259 | + private String abo ; | |
| 260 | + // rh | |
| 261 | + private String rh ; | |
| 262 | + // 血糖 | |
| 263 | + private String bloodSugar; | |
| 264 | + //B超 | |
| 265 | + private String bChao ; | |
| 266 | + //胎数 | |
| 267 | + private String tireNumber ; | |
| 268 | + //血清谷丙转氨酶 | |
| 269 | + private String xqgbzam ; | |
| 270 | + //血清谷草转氨酶 | |
| 271 | + private String xqgczam ; | |
| 272 | + //白蛋白 | |
| 273 | + private String albumin ; | |
| 274 | + //总胆红素 | |
| 275 | + private String totalBilirubin; | |
| 276 | + // 结合胆红素 | |
| 277 | + private String jhBilirubin ; | |
| 278 | + | |
| 279 | + public Object getModified() { | |
| 280 | + return modified; | |
| 281 | + } | |
| 282 | + | |
| 283 | + public void setModified(Object modified) { | |
| 284 | + this.modified = modified; | |
| 285 | + } | |
| 286 | + | |
| 287 | + //乙肝表面抗原 | |
| 288 | + private String ygbmky; | |
| 289 | + //乙肝表面抗体 | |
| 290 | + private String ygbmkt; | |
| 291 | + //乙肝e抗原 | |
| 292 | + private String ygeky; | |
| 293 | + //乙肝e抗体 | |
| 294 | + private String ygekt; | |
| 295 | + // 乙肝核心抗体 | |
| 296 | + private String yghxkt; | |
| 297 | + // 血清肌 | |
| 298 | + private String xqjq; | |
| 299 | + // 血尿素氮 | |
| 300 | + private String xnsd; | |
| 301 | + // 梅毒血清实验 | |
| 302 | +// private String mdxqsy; | |
| 303 | + // hit抗体检测 | |
| 304 | + private String hivkt; | |
| 305 | + // 阴道分泌物 | |
| 306 | + private String ydfmw; | |
| 307 | + // 阴道清洁度 | |
| 308 | + private String ydqjd; | |
| 309 | + | |
| 310 | + private Object modified; | |
| 311 | + //操作人 | |
| 312 | + private Integer operator; | |
| 313 | + | |
| 314 | + public Integer getOperator() { | |
| 315 | + return operator; | |
| 316 | + } | |
| 317 | + | |
| 318 | + public void setOperator(Integer operator) { | |
| 319 | + this.operator = operator; | |
| 320 | + } | |
| 321 | + | |
| 322 | + public String getCestationInfo() { | |
| 323 | + return cestationInfo; | |
| 324 | + } | |
| 325 | + | |
| 326 | + public void setCestationInfo(String cestationInfo) { | |
| 327 | + this.cestationInfo = cestationInfo; | |
| 328 | + } | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + public String getDiagnosis() { | |
| 334 | + return diagnosis; | |
| 335 | + } | |
| 336 | + | |
| 337 | + public void setDiagnosis(String diagnosis) { | |
| 338 | + this.diagnosis = diagnosis; | |
| 339 | + } | |
| 340 | + | |
| 341 | + public String getDirOpinion() { | |
| 342 | + return dirOpinion; | |
| 343 | + } | |
| 344 | + | |
| 345 | + public void setDirOpinion(String dirOpinion) { | |
| 346 | + this.dirOpinion = dirOpinion; | |
| 347 | + } | |
| 348 | + | |
| 349 | + public String getFamilyHistory() { | |
| 350 | + return familyHistory; | |
| 351 | + } | |
| 352 | + | |
| 353 | + public void setFamilyHistory(String familyHistory) { | |
| 354 | + this.familyHistory = familyHistory; | |
| 355 | + } | |
| 356 | + | |
| 357 | + public String getFksxHistory() { | |
| 358 | + return fksxHistory; | |
| 359 | + } | |
| 360 | + | |
| 361 | + public void setFksxHistory(String fksxHistory) { | |
| 362 | + this.fksxHistory = fksxHistory; | |
| 363 | + } | |
| 364 | + | |
| 365 | + public String getFuwei() { | |
| 366 | + return fuwei; | |
| 367 | + } | |
| 368 | + | |
| 369 | + public void setFuwei(String fuwei) { | |
| 370 | + this.fuwei = fuwei; | |
| 371 | + } | |
| 372 | + | |
| 373 | + public String getGonggao() { | |
| 374 | + return gonggao; | |
| 375 | + } | |
| 376 | + | |
| 377 | + public void setGonggao(String gonggao) { | |
| 378 | + this.gonggao = gonggao; | |
| 379 | + } | |
| 380 | + | |
| 381 | + public String getHeight() { | |
| 382 | + return height; | |
| 383 | + } | |
| 384 | + | |
| 385 | + public void setHeight(String height) { | |
| 386 | + this.height = height; | |
| 387 | + } | |
| 388 | + | |
| 389 | + public String getHighrisk() { | |
| 390 | + return highrisk; | |
| 391 | + } | |
| 392 | + | |
| 393 | + public void setHighrisk(String highrisk) { | |
| 394 | + this.highrisk = highrisk; | |
| 395 | + } | |
| 396 | + | |
| 397 | + public String getHighriskSocre() { | |
| 398 | + return highriskSocre; | |
| 399 | + } | |
| 400 | + | |
| 401 | + public void setHighriskSocre(String highriskSocre) { | |
| 402 | + this.highriskSocre = highriskSocre; | |
| 403 | + } | |
| 404 | + | |
| 405 | + public String getId() { | |
| 406 | + return id; | |
| 407 | + } | |
| 408 | + | |
| 409 | + public void setId(String id) { | |
| 410 | + this.id = id; | |
| 411 | + } | |
| 412 | + | |
| 413 | + | |
| 414 | + public Object getCheckTime() { | |
| 415 | + return checkTime; | |
| 416 | + } | |
| 417 | + | |
| 418 | + public void setCheckTime(Object checkTime) { | |
| 419 | + this.checkTime = checkTime; | |
| 420 | + } | |
| 421 | + | |
| 422 | + public Object getNextCheckTime() { | |
| 423 | + return nextCheckTime; | |
| 424 | + } | |
| 425 | + | |
| 426 | + public void setNextCheckTime(Object nextCheckTime) { | |
| 427 | + this.nextCheckTime = nextCheckTime; | |
| 428 | + } | |
| 429 | + | |
| 430 | + public String getOtherHighRisk() { | |
| 431 | + return otherHighRisk; | |
| 432 | + } | |
| 433 | + | |
| 434 | + public void setOtherHighRisk(String otherHighRisk) { | |
| 435 | + this.otherHighRisk = otherHighRisk; | |
| 436 | + } | |
| 437 | + | |
| 438 | + public String getParentId() { | |
| 439 | + return parentId; | |
| 440 | + } | |
| 441 | + | |
| 442 | + public void setParentId(String parentId) { | |
| 443 | + this.parentId = parentId; | |
| 444 | + } | |
| 445 | + | |
| 446 | + public String getPastHistory() { | |
| 447 | + return pastHistory; | |
| 448 | + } | |
| 449 | + | |
| 450 | + public void setPastHistory(String pastHistory) { | |
| 451 | + this.pastHistory = pastHistory; | |
| 452 | + } | |
| 453 | + | |
| 454 | + public String getPersonalHistory() { | |
| 455 | + return personalHistory; | |
| 456 | + } | |
| 457 | + | |
| 458 | + public void setPersonalHistory(String personalHistory) { | |
| 459 | + this.personalHistory = personalHistory; | |
| 460 | + } | |
| 461 | + | |
| 462 | + public List getPlacentas() { | |
| 463 | + return placentas; | |
| 464 | + } | |
| 465 | + | |
| 466 | + public void setPlacentas(List placentas) { | |
| 467 | + this.placentas = placentas; | |
| 468 | + } | |
| 469 | + | |
| 470 | + | |
| 471 | + public String getTireNumber1() { | |
| 472 | + return tireNumber1; | |
| 473 | + } | |
| 474 | + | |
| 475 | + public void setTireNumber1(String tireNumber1) { | |
| 476 | + this.tireNumber1 = tireNumber1; | |
| 477 | + } | |
| 478 | + | |
| 479 | + public String getTreatOpinion() { | |
| 480 | + return treatOpinion; | |
| 481 | + } | |
| 482 | + | |
| 483 | + public void setTreatOpinion(String treatOpinion) { | |
| 484 | + this.treatOpinion = treatOpinion; | |
| 485 | + } | |
| 486 | + | |
| 487 | + public String getWeight() { | |
| 488 | + return weight; | |
| 489 | + } | |
| 490 | + | |
| 491 | + public void setWeight(String weight) { | |
| 492 | + this.weight = weight; | |
| 493 | + } | |
| 494 | + | |
| 495 | + public String getYmjzHistory() { | |
| 496 | + return ymjzHistory; | |
| 497 | + } | |
| 498 | + | |
| 499 | + public void setYmjzHistory(String ymjzHistory) { | |
| 500 | + this.ymjzHistory = ymjzHistory; | |
| 501 | + } | |
| 502 | + | |
| 503 | + public Integer getYn() { | |
| 504 | + return yn; | |
| 505 | + } | |
| 506 | + | |
| 507 | + public void setYn(Integer yn) { | |
| 508 | + this.yn = yn; | |
| 509 | + } | |
| 510 | + | |
| 511 | + public String getYqWeight() { | |
| 512 | + return yqWeight; | |
| 513 | + } | |
| 514 | + | |
| 515 | + public void setYqWeight(String yqWeight) { | |
| 516 | + this.yqWeight = yqWeight; | |
| 517 | + } | |
| 518 | + | |
| 519 | + public String getYsfyHistory() { | |
| 520 | + return ysfyHistory; | |
| 521 | + } | |
| 522 | + | |
| 523 | + public void setYsfyHistory(String ysfyHistory) { | |
| 524 | + this.ysfyHistory = ysfyHistory; | |
| 525 | + } | |
| 526 | + | |
| 527 | + public String getYwgmHistory() { | |
| 528 | + return ywgmHistory; | |
| 529 | + } | |
| 530 | + | |
| 531 | + public void setYwgmHistory(String ywgmHistory) { | |
| 532 | + this.ywgmHistory = ywgmHistory; | |
| 533 | + } | |
| 534 | + | |
| 535 | + public String getAbo() { | |
| 536 | + return abo; | |
| 537 | + } | |
| 538 | + | |
| 539 | + public void setAbo(String abo) { | |
| 540 | + this.abo = abo; | |
| 541 | + } | |
| 542 | + | |
| 543 | + public String getAlbumin() { | |
| 544 | + return albumin; | |
| 545 | + } | |
| 546 | + | |
| 547 | + public void setAlbumin(String albumin) { | |
| 548 | + this.albumin = albumin; | |
| 549 | + } | |
| 550 | + | |
| 551 | + public String getbChao() { | |
| 552 | + return bChao; | |
| 553 | + } | |
| 554 | + | |
| 555 | + public void setbChao(String bChao) { | |
| 556 | + this.bChao = bChao; | |
| 557 | + } | |
| 558 | + | |
| 559 | + public String getBld() { | |
| 560 | + return bld; | |
| 561 | + } | |
| 562 | + | |
| 563 | + public void setBld(String bld) { | |
| 564 | + this.bld = bld; | |
| 565 | + } | |
| 566 | + | |
| 567 | + public String getBloodSugar() { | |
| 568 | + return bloodSugar; | |
| 569 | + } | |
| 570 | + | |
| 571 | + public void setBloodSugar(String bloodSugar) { | |
| 572 | + this.bloodSugar = bloodSugar; | |
| 573 | + } | |
| 574 | + | |
| 575 | + public String getBxbjs() { | |
| 576 | + return bxbjs; | |
| 577 | + } | |
| 578 | + | |
| 579 | + public void setBxbjs(String bxbjs) { | |
| 580 | + this.bxbjs = bxbjs; | |
| 581 | + } | |
| 582 | + | |
| 583 | + public String getChgOther() { | |
| 584 | + return chgOther; | |
| 585 | + } | |
| 586 | + | |
| 587 | + public void setChgOther(String chgOther) { | |
| 588 | + this.chgOther = chgOther; | |
| 589 | + } | |
| 590 | + | |
| 591 | + public String getHivkt() { | |
| 592 | + return hivkt; | |
| 593 | + } | |
| 594 | + | |
| 595 | + public void setHivkt(String hivkt) { | |
| 596 | + this.hivkt = hivkt; | |
| 597 | + } | |
| 598 | + | |
| 599 | + public String getJhBilirubin() { | |
| 600 | + return jhBilirubin; | |
| 601 | + } | |
| 602 | + | |
| 603 | + public void setJhBilirubin(String jhBilirubin) { | |
| 604 | + this.jhBilirubin = jhBilirubin; | |
| 605 | + } | |
| 606 | + | |
| 607 | +/* public String getMdxqsy() { | |
| 608 | + return mdxqsy; | |
| 609 | + } | |
| 610 | + | |
| 611 | + public void setMdxqsy(String mdxqsy) { | |
| 612 | + this.mdxqsy = mdxqsy; | |
| 613 | + }*/ | |
| 614 | + | |
| 615 | + public Integer getAbortion() { | |
| 616 | + return abortion; | |
| 617 | + } | |
| 618 | + | |
| 619 | + public void setAbortion(Integer abortion) { | |
| 620 | + this.abortion = abortion; | |
| 621 | + } | |
| 622 | + | |
| 623 | + public String getBaricIndex() { | |
| 624 | + return baricIndex; | |
| 625 | + } | |
| 626 | + | |
| 627 | + public void setBaricIndex(String baricIndex) { | |
| 628 | + this.baricIndex = baricIndex; | |
| 629 | + } | |
| 630 | + | |
| 631 | + public Integer getBirthDefect() { | |
| 632 | + return birthDefect; | |
| 633 | + } | |
| 634 | + | |
| 635 | + public void setBirthDefect(Integer birthDefect) { | |
| 636 | + this.birthDefect = birthDefect; | |
| 637 | + } | |
| 638 | + | |
| 639 | + public Integer getDelivery() { | |
| 640 | + return delivery; | |
| 641 | + } | |
| 642 | + | |
| 643 | + public void setDelivery(Integer delivery) { | |
| 644 | + this.delivery = delivery; | |
| 645 | + } | |
| 646 | + | |
| 647 | + public Integer getNeoDeath() { | |
| 648 | + return neoDeath; | |
| 649 | + } | |
| 650 | + | |
| 651 | + public void setNeoDeath(Integer neoDeath) { | |
| 652 | + this.neoDeath = neoDeath; | |
| 653 | + } | |
| 654 | + | |
| 655 | + public Integer getPlanedProd() { | |
| 656 | + return planedProd; | |
| 657 | + } | |
| 658 | + | |
| 659 | + public void setPlanedProd(Integer planedProd) { | |
| 660 | + this.planedProd = planedProd; | |
| 661 | + } | |
| 662 | + | |
| 663 | + public Integer getPregnancyTimes() { | |
| 664 | + return pregnancyTimes; | |
| 665 | + } | |
| 666 | + | |
| 667 | + public void setPregnancyTimes(Integer pregnancyTimes) { | |
| 668 | + this.pregnancyTimes = pregnancyTimes; | |
| 669 | + } | |
| 670 | + | |
| 671 | + public String getProdDoctor() { | |
| 672 | + return prodDoctor; | |
| 673 | + } | |
| 674 | + | |
| 675 | + public void setProdDoctor(String prodDoctor) { | |
| 676 | + this.prodDoctor = prodDoctor; | |
| 677 | + } | |
| 678 | + | |
| 679 | + public Integer getProdTime() { | |
| 680 | + return prodTime; | |
| 681 | + } | |
| 682 | + | |
| 683 | + public void setProdTime(Integer prodTime) { | |
| 684 | + this.prodTime = prodTime; | |
| 685 | + } | |
| 686 | + | |
| 687 | + public Integer getStillbirth() { | |
| 688 | + return stillbirth; | |
| 689 | + } | |
| 690 | + | |
| 691 | + public void setStillbirth(Integer stillbirth) { | |
| 692 | + this.stillbirth = stillbirth; | |
| 693 | + } | |
| 694 | + | |
| 695 | + public Integer getStillChan() { | |
| 696 | + return stillChan; | |
| 697 | + } | |
| 698 | + | |
| 699 | + public void setStillChan(Integer stillChan) { | |
| 700 | + this.stillChan = stillChan; | |
| 701 | + } | |
| 702 | + | |
| 703 | + public String getNcgOther() { | |
| 704 | + return ncgOther; | |
| 705 | + } | |
| 706 | + | |
| 707 | + public void setNcgOther(String ncgOther) { | |
| 708 | + this.ncgOther = ncgOther; | |
| 709 | + } | |
| 710 | + | |
| 711 | + public String getNdb() { | |
| 712 | + return ndb; | |
| 713 | + } | |
| 714 | + | |
| 715 | + public void setNdb(String ndb) { | |
| 716 | + this.ndb = ndb; | |
| 717 | + } | |
| 718 | + | |
| 719 | + public String getNt() { | |
| 720 | + return nt; | |
| 721 | + } | |
| 722 | + | |
| 723 | + public void setNt(String nt) { | |
| 724 | + this.nt = nt; | |
| 725 | + } | |
| 726 | + | |
| 727 | + public String getPlatelet() { | |
| 728 | + return platelet; | |
| 729 | + } | |
| 730 | + | |
| 731 | + public void setPlatelet(String platelet) { | |
| 732 | + this.platelet = platelet; | |
| 733 | + } | |
| 734 | + | |
| 735 | + public String getRh() { | |
| 736 | + return rh; | |
| 737 | + } | |
| 738 | + | |
| 739 | + public void setRh(String rh) { | |
| 740 | + this.rh = rh; | |
| 741 | + } | |
| 742 | + | |
| 743 | + public String getTireNumber() { | |
| 744 | + return tireNumber; | |
| 745 | + } | |
| 746 | + | |
| 747 | + public void setTireNumber(String tireNumber) { | |
| 748 | + this.tireNumber = tireNumber; | |
| 749 | + } | |
| 750 | + | |
| 751 | + public String getTotalBilirubin() { | |
| 752 | + return totalBilirubin; | |
| 753 | + } | |
| 754 | + | |
| 755 | + public void setTotalBilirubin(String totalBilirubin) { | |
| 756 | + this.totalBilirubin = totalBilirubin; | |
| 757 | + } | |
| 758 | + | |
| 759 | + public String getUrineKetone() { | |
| 760 | + return urineKetone; | |
| 761 | + } | |
| 762 | + | |
| 763 | + public void setUrineKetone(String urineKetone) { | |
| 764 | + this.urineKetone = urineKetone; | |
| 765 | + } | |
| 766 | + | |
| 767 | + public String getXhdb() { | |
| 768 | + return xhdb; | |
| 769 | + } | |
| 770 | + | |
| 771 | + public void setXhdb(String xhdb) { | |
| 772 | + this.xhdb = xhdb; | |
| 773 | + } | |
| 774 | + | |
| 775 | + public String getXnsd() { | |
| 776 | + return xnsd; | |
| 777 | + } | |
| 778 | + | |
| 779 | + public void setXnsd(String xnsd) { | |
| 780 | + this.xnsd = xnsd; | |
| 781 | + } | |
| 782 | + | |
| 783 | + public String getXqgbzam() { | |
| 784 | + return xqgbzam; | |
| 785 | + } | |
| 786 | + | |
| 787 | + public void setXqgbzam(String xqgbzam) { | |
| 788 | + this.xqgbzam = xqgbzam; | |
| 789 | + } | |
| 790 | + | |
| 791 | + public String getXqgczam() { | |
| 792 | + return xqgczam; | |
| 793 | + } | |
| 794 | + | |
| 795 | + public void setXqgczam(String xqgczam) { | |
| 796 | + this.xqgczam = xqgczam; | |
| 797 | + } | |
| 798 | + | |
| 799 | + public String getXqjq() { | |
| 800 | + return xqjq; | |
| 801 | + } | |
| 802 | + | |
| 803 | + public void setXqjq(String xqjq) { | |
| 804 | + this.xqjq = xqjq; | |
| 805 | + } | |
| 806 | + | |
| 807 | + public String getYdfmw() { | |
| 808 | + return ydfmw; | |
| 809 | + } | |
| 810 | + | |
| 811 | + public void setYdfmw(String ydfmw) { | |
| 812 | + this.ydfmw = ydfmw; | |
| 813 | + } | |
| 814 | + | |
| 815 | + public String getYdqjd() { | |
| 816 | + return ydqjd; | |
| 817 | + } | |
| 818 | + | |
| 819 | + public void setYdqjd(String ydqjd) { | |
| 820 | + this.ydqjd = ydqjd; | |
| 821 | + } | |
| 822 | + | |
| 823 | + public String getYgbmkt() { | |
| 824 | + return ygbmkt; | |
| 825 | + } | |
| 826 | + | |
| 827 | + public void setYgbmkt(String ygbmkt) { | |
| 828 | + this.ygbmkt = ygbmkt; | |
| 829 | + } | |
| 830 | + | |
| 831 | + public String getYgbmky() { | |
| 832 | + return ygbmky; | |
| 833 | + } | |
| 834 | + | |
| 835 | + public void setYgbmky(String ygbmky) { | |
| 836 | + this.ygbmky = ygbmky; | |
| 837 | + } | |
| 838 | + | |
| 839 | + public String getYgekt() { | |
| 840 | + return ygekt; | |
| 841 | + } | |
| 842 | + | |
| 843 | + public void setYgekt(String ygekt) { | |
| 844 | + this.ygekt = ygekt; | |
| 845 | + } | |
| 846 | + | |
| 847 | + public String getYgeky() { | |
| 848 | + return ygeky; | |
| 849 | + } | |
| 850 | + | |
| 851 | + public void setYgeky(String ygeky) { | |
| 852 | + this.ygeky = ygeky; | |
| 853 | + } | |
| 854 | + | |
| 855 | + public String getYghxkt() { | |
| 856 | + return yghxkt; | |
| 857 | + } | |
| 858 | + | |
| 859 | + public void setYghxkt(String yghxkt) { | |
| 860 | + this.yghxkt = yghxkt; | |
| 861 | + } | |
| 862 | + | |
| 863 | + public Object getDueDate() { | |
| 864 | + return dueDate; | |
| 865 | + } | |
| 866 | + | |
| 867 | + public void setDueDate(Object dueDate) { | |
| 868 | + this.dueDate = dueDate; | |
| 869 | + } | |
| 870 | + | |
| 871 | + public Object getLastMenses() { | |
| 872 | + return lastMenses; | |
| 873 | + } | |
| 874 | + | |
| 875 | + public void setLastMenses(Object lastMenses) { | |
| 876 | + this.lastMenses = lastMenses; | |
| 877 | + } | |
| 878 | + | |
| 879 | +} |
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/BasicConfigServiceTest.java
View file @
285967f
| ... | ... | @@ -4,6 +4,7 @@ |
| 4 | 4 | import java.io.IOException; |
| 5 | 5 | import java.text.SimpleDateFormat; |
| 6 | 6 | import java.util.*; |
| 7 | +import java.util.Date; | |
| 7 | 8 | |
| 8 | 9 | import com.lyms.platform.biz.dal.impl.YunBookbuildingDaoImpl; |
| 9 | 10 | import com.lyms.platform.biz.param.AssayConfigQuery; |
| 10 | 11 | |
| 11 | 12 | |
| ... | ... | @@ -31,13 +32,87 @@ |
| 31 | 32 | |
| 32 | 33 | import org.springframework.data.mongodb.core.MongoTemplate; |
| 33 | 34 | import org.springframework.data.mongodb.core.query.Query; |
| 35 | +import org.springframework.data.mongodb.core.query.Update; | |
| 34 | 36 | |
| 35 | 37 | public class BasicConfigServiceTest { |
| 38 | + | |
| 39 | + public static SimpleDateFormat y_m_d= new SimpleDateFormat("yyyy-MM-dd"); | |
| 40 | + public static SimpleDateFormat h_m_s = new SimpleDateFormat("HH:mm:ss"); | |
| 41 | + | |
| 36 | 42 | public static void main(String[] args) throws Exception { |
| 37 | 43 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
| 38 | 44 | ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:/spring/applicationContext_biz_patient1.xml"); |
| 39 | 45 | // queryRisk(applicationContext); |
| 40 | - dataptest(applicationContext); | |
| 46 | + changeLong2Time(applicationContext); | |
| 47 | + } | |
| 48 | + | |
| 49 | + public static void changeLong2Time(ApplicationContext applicationContext) { | |
| 50 | + MongoTemplate mongoTemplate | |
| 51 | + =(MongoTemplate)applicationContext.getBean("mongoTemplate"); | |
| 52 | + mongoTemplate.getDb().slaveOk(); | |
| 53 | + mongoTemplate.getDb().authenticate("platform", "platform123".toCharArray()); | |
| 54 | + y_m_d.setTimeZone(TimeZone.getTimeZone("GMT+0")); | |
| 55 | + h_m_s.setTimeZone(TimeZone.getTimeZone("GMT+0")); | |
| 56 | + try { | |
| 57 | + MongoCondition coniticon = new MongoCondition(); | |
| 58 | + MongoQuery mongoQuery = new MongoQuery(coniticon); | |
| 59 | + List<AntExChuModelTemp> list = mongoTemplate.find(mongoQuery.convertToMongoQuery(),AntExChuModelTemp.class); | |
| 60 | + for (AntExChuModelTemp model:list) { | |
| 61 | + boolean boo = false; | |
| 62 | + AntExChuModel db = new AntExChuModel(); | |
| 63 | + db.setId(model.getId()); | |
| 64 | + if (model.getCreated() != null && model.getCreated() instanceof Long) { | |
| 65 | + boo = true; | |
| 66 | + db.setCreated(new Date(((Long) model.getCreated()).longValue())); | |
| 67 | + System.out.println("db.getCollection('lyms_antexc').update( { \"_id\" : ObjectId(\""+model.getId()+"\")},{ $set : { \"created\" : ISODate('"+y_m_d.format(model.getCreated())+"T"+h_m_s.format(model.getCreated())+".000Z')} } );"); | |
| 68 | + } | |
| 69 | + if (model.getModified() != null && model.getModified() instanceof Long) { | |
| 70 | + boo = true; | |
| 71 | + db.setModified(new Date(((Long) model.getModified()).longValue())); | |
| 72 | + System.out.println("db.getCollection('lyms_antexc').update( { \"_id\" : ObjectId(\""+model.getId()+"\")},{ $set : { \"modified\" : ISODate('"+y_m_d.format(model.getModified())+"T"+h_m_s.format(model.getModified())+".000Z')} } );"); | |
| 73 | + | |
| 74 | + } | |
| 75 | + | |
| 76 | + if (model.getNextCheckTime() != null && model.getNextCheckTime() instanceof Long) { | |
| 77 | + boo = true; | |
| 78 | + db.setNextCheckTime(new Date(((Long) model.getNextCheckTime()).longValue())); | |
| 79 | + System.out.println("db.getCollection('lyms_antexc').update( { \"_id\" : ObjectId(\""+model.getId()+"\")},{ $set : { \"nextCheckTime\" : ISODate('"+y_m_d.format(model.getNextCheckTime())+"T"+h_m_s.format(model.getNextCheckTime())+".000Z')} } );"); | |
| 80 | + | |
| 81 | + } | |
| 82 | + if (model.getCheckTime() != null && model.getCheckTime() instanceof Long) { | |
| 83 | + boo = true; | |
| 84 | + db.setCheckTime(new Date(((Long) model.getCheckTime()).longValue())); | |
| 85 | + System.out.println("db.getCollection('lyms_antexc').update( { \"_id\" : ObjectId(\""+model.getId()+"\")},{ $set : { \"checkTime\" : ISODate('"+y_m_d.format(model.getCheckTime())+"T"+h_m_s.format(model.getCheckTime())+".000Z')} } );"); | |
| 86 | + | |
| 87 | + } | |
| 88 | + if (model.getDueDate() != null && model.getDueDate() instanceof Long) { | |
| 89 | + boo = true; | |
| 90 | + db.setDueDate(new Date(((Long) model.getDueDate()).longValue())); | |
| 91 | + System.out.println("db.getCollection('lyms_antexc').update( { \"_id\" : ObjectId(\""+model.getId()+"\")},{ $set : { \"dueDate\" : ISODate('"+y_m_d.format(model.getDueDate())+"T"+h_m_s.format(model.getDueDate())+".000Z')} } );"); | |
| 92 | + | |
| 93 | + } | |
| 94 | + if (model.getLastMenses() != null && model.getLastMenses() instanceof Long) { | |
| 95 | + boo = true; | |
| 96 | + db.setLastMenses(new Date(((Long) model.getLastMenses()).longValue())); | |
| 97 | + System.out.println("db.getCollection('lyms_antexc').update( { \"_id\" : ObjectId(\""+model.getId()+"\")},{ $set : { \"lastMenses\" : ISODate('"+y_m_d.format(model.getLastMenses())+"T"+h_m_s.format(model.getLastMenses())+".000Z')} } );"); | |
| 98 | + | |
| 99 | + } | |
| 100 | + | |
| 101 | + | |
| 102 | + if (boo) { | |
| 103 | + | |
| 104 | +// System.out.println(JsonUtil.obj2Str(db)); | |
| 105 | +// MongoCondition coniticon1 = new MongoCondition(); | |
| 106 | +// coniticon1.and("_id", db.getId(), MongoOper.IS); | |
| 107 | +// MongoQuery mongoQuery1 = new MongoQuery(coniticon1); | |
| 108 | +// Update update = MongoConvertHelper | |
| 109 | +// .convertToNativeUpdate(ReflectionUtils.getUpdateField(db)); | |
| 110 | +// mongoTemplate.updateMulti(mongoQuery1.convertToMongoQuery(), update, AntExChuModel.class); | |
| 111 | + } | |
| 112 | + } | |
| 113 | + } catch (Exception e) { | |
| 114 | + e.printStackTrace(); | |
| 115 | + } | |
| 41 | 116 | } |
| 42 | 117 | |
| 43 | 118 | public static void dataptest(ApplicationContext applicationContext) { |
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/MongoSyncService.java
View file @
285967f
| ... | ... | @@ -44,7 +44,10 @@ |
| 44 | 44 | public static String mongo_crypto_key = Config.getItem("mongo_crypto_key", "0"); |
| 45 | 45 | |
| 46 | 46 | public static void main(String[] a) { |
| 47 | - | |
| 47 | + | |
| 48 | + String s = "rO0ABXNyACJjb20ubHltcy5wbGF0Zm9ybS5wb2pvLkFyY2hpdmVEYXRhYLiAY6y7JRwCAAdMAAdjYXJkTnVtdAASTGphdmEvbGFuZy9TdHJpbmc7TAAKaG9zcGl0YWxJZHEAfgABTAACaWRxAH4AAUwABmlkQ2FyZHEAfgABTAAIanNvbkRhdGFxAH4AAUwABG5hbWVxAH4AAUwABXBob25lcQB+AAF4cHQAHG9jQ1Fkc3psN3FCZGotXzNHZlhRX3FxNWVXWjR0AAMyMTZ0ABYyMTY6MTMwMzAyMTk4NzA4MjUzNTI3dAASMTMwMzAyMTk4NzA4MjUzNTI3dAPAeyJwaG9uZSI6IjE1NjAzMzY0MjQ2IiwiZXJyb3Jtc2ciOiLmiJDlip8iLCJodXNFZHVjYXRpb25MZXZlbCI6IiIsImh1c1dvcmtQbGFjZSI6IiIsInJlc2lkZVR5cGUiOiLmnKzlnLAiLCJ3b3JrUGxhY2UiOiIiLCJpZCI6NjkzLCJodXNQaG9uZSI6IjEzNzMxNzkwMDQxIiwiZWR1Y2F0aW9uTGV2ZWwiOiLlpKflrabmnKznp5EiLCJuYW1lIjoi546L5LmQIiwiaHVzSm9iIjoiIiwiaGVhbHRoUmVzb3J0IjpbeyJkaXN0cmljdE5hbWUiOm51bGwsImFkZHJlc3MiOiIiLCJjaXR5TmFtZSI6bnVsbCwicHJvdmluY2VOYW1lIjpudWxsfV0sImh1c0JpcnRoRGF5IjowLCJwZXJtYW5lbnRBZGRyZXNzIjpbeyJkaXN0cmljdE5hbWUiOm51bGwsImFkZHJlc3MiOiIiLCJjaXR5TmFtZSI6bnVsbCwicHJvdmluY2VOYW1lIjpudWxsfV0sImNhcmROdW0iOiJvY0NRZHN6bDdxQmRqLV8zR2ZYUV9xcTVlV1o0IiwiaHVzTmF0aW9uIjoi5rGJ5pePIiwiaHVzTmF0aW9uYWxpdHkiOiLkuK3lm70iLCJpZENhcmQiOiIxMzAzMDIxOTg3MDgyNTM1MjciLCJqb2IiOiLlhbbku5YiLCJiaXJ0aERheSI6NTU2ODE1NjAwLCJodXNQZXJtYW5lbnRBZGRyZXNzIjpbeyJkaXN0cmljdE5hbWUiOm51bGwsImFkZHJlc3MiOiIiLCJjaXR5TmFtZSI6bnVsbCwicHJvdmluY2VOYW1lIjpudWxsfV0sIm5hdGlvbiI6IuaxieaXjyIsIm5hdGlvbmFsaXR5Ijoi5Lit5Zu9IiwiY3VycmVudEFkZHJlc3MiOlt7ImRpc3RyaWN0TmFtZSI6Iua1t+a4r+WMuiIsImFkZHJlc3MiOiLnm5vnp6bnpo/lnLA5LTEtMTIwMiIsImNpdHlOYW1lIjoi56em55qH5bKb5biCIiwicHJvdmluY2VOYW1lIjoi5rKz5YyX55yBIn1dLCJodXNOYW1lIjoi5pyx5bOwIiwiaG9zcGl0YWxOYW1lIjoi56em55qH5bKb5biC5aaH5bm85L+d5YGl6ZmiIiwiYWNjb3VudFR5cGUiOiLpnZ7lhpzkuJrmiLflj6MiLCJlcnJvcmNvZGUiOjAsImh1c0lkQ2FyZCI6IiJ9dAAG546L5LmQdAALMTU2MDMzNjQyNDY="; | |
| 49 | + Object obj = SerializUtils.byteToObj(Base64.decodeBase64(s)); | |
| 50 | + System.out.println(obj); | |
| 48 | 51 | } |
| 49 | 52 | |
| 50 | 53 | public boolean syncData(String action, String id, String className, String json) { |
platform-common/src/main/java/com/lyms/platform/common/utils/CompressEncodeingUtil.java
View file @
285967f
| 1 | +package com.lyms.platform.common.utils; | |
| 2 | + | |
| 3 | +/** | |
| 4 | + * Created by riecard on 2016/12/8. | |
| 5 | + */ | |
| 6 | +public class CompressEncodeingUtil { | |
| 7 | + | |
| 8 | + final static char[] digits = { | |
| 9 | + '0' , '1' , '2' , '3' , '4' , '5' , | |
| 10 | + '6' , '7' , '8' , '9' , 'a' , 'b' , | |
| 11 | + 'c' , 'd' , 'e' , 'f' , 'g' , 'h' , | |
| 12 | + 'i' , 'j' , 'k' , 'l' , 'm' , 'n' , | |
| 13 | + 'o' , 'p' , 'q' , 'r' , 's' , 't' , | |
| 14 | + 'u' , 'v' , 'w' , 'x' , 'y' , 'z' , | |
| 15 | + 'A' , 'B' , 'C' , 'D' , 'E' , 'F' , | |
| 16 | + 'G' , 'H' , 'I' , 'J' , 'K' , 'L' , | |
| 17 | + 'M' , 'N' , 'O' , 'P' , 'Q' , 'R' , | |
| 18 | + 'S' , 'T' , 'U' , 'V' , 'W' , 'X' , | |
| 19 | + 'Y' , 'Z' , '$' , '!' , | |
| 20 | + }; | |
| 21 | + | |
| 22 | + /** | |
| 23 | + * 把10进制的数字转换成64进制 | |
| 24 | + * @param number | |
| 25 | + * @return | |
| 26 | + */ | |
| 27 | + public static String compressNumber(String number) { | |
| 28 | + return compressNumber(Long.valueOf(number)); | |
| 29 | + } | |
| 30 | + | |
| 31 | + /** | |
| 32 | + * 把10进制的数字转换成64进制 | |
| 33 | + * @param number | |
| 34 | + * @return | |
| 35 | + */ | |
| 36 | + public static String compressNumber(long number) { | |
| 37 | + System.out.println(number); | |
| 38 | + char[] buf = new char[64]; | |
| 39 | + int charPos = 64; | |
| 40 | + int radix = 1 << 6; | |
| 41 | + long mask = radix - 1; | |
| 42 | + do { | |
| 43 | + buf[--charPos] = digits[(int)(number & mask)]; | |
| 44 | + number >>>= 6; | |
| 45 | + } while (number != 0); | |
| 46 | + return new String(buf, charPos, (64 - charPos)); | |
| 47 | + } | |
| 48 | + /** | |
| 49 | + * 把64进制的字符串转换成10进制 | |
| 50 | + * @param decompStr | |
| 51 | + * @return | |
| 52 | + */ | |
| 53 | + public static long unCompressNumber(String decompStr) | |
| 54 | + { | |
| 55 | + long result=0; | |
| 56 | + for (int i = decompStr.length()-1; i >=0; i--) { | |
| 57 | + if(i==decompStr.length()) | |
| 58 | + { | |
| 59 | + result+=getCharIndexNum(decompStr.charAt(i)); | |
| 60 | + continue; | |
| 61 | + } | |
| 62 | + for (int j = 0; j < digits.length; j++) { | |
| 63 | + if(decompStr.charAt(i)==digits[j]) | |
| 64 | + { | |
| 65 | + result+=((long)j)<<6*(decompStr.length()-1-i); | |
| 66 | + } | |
| 67 | + } | |
| 68 | + } | |
| 69 | + return result; | |
| 70 | + } | |
| 71 | + /** | |
| 72 | + * | |
| 73 | + * @param ch | |
| 74 | + * @return | |
| 75 | + */ | |
| 76 | + private static long getCharIndexNum(char ch) | |
| 77 | + { | |
| 78 | + int num=((int)ch); | |
| 79 | + if(num>=48&&num<=57) | |
| 80 | + { | |
| 81 | + return num-48; | |
| 82 | + } | |
| 83 | + else if(num>=97&&num<=122) | |
| 84 | + { | |
| 85 | + return num-87; | |
| 86 | + }else if(num>=65&&num<=90) | |
| 87 | + { | |
| 88 | + return num-29; | |
| 89 | + }else if(num==43) | |
| 90 | + { | |
| 91 | + return 62; | |
| 92 | + } | |
| 93 | + else if (num == 47) | |
| 94 | + { | |
| 95 | + return 63; | |
| 96 | + } | |
| 97 | + return 0; | |
| 98 | + } | |
| 99 | + | |
| 100 | +} |
platform-common/src/main/java/com/lyms/platform/common/utils/DateUtil.java
View file @
285967f
platform-common/src/main/java/com/lyms/platform/common/utils/SerializUtils.java
View file @
285967f
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/InitDataController.java
View file @
285967f
| ... | ... | @@ -13,6 +13,7 @@ |
| 13 | 13 | import org.apache.commons.httpclient.HttpClient; |
| 14 | 14 | import org.apache.commons.httpclient.NameValuePair; |
| 15 | 15 | import org.apache.commons.httpclient.methods.PostMethod; |
| 16 | +import org.apache.commons.io.FileUtils; | |
| 16 | 17 | import org.springframework.beans.factory.annotation.Autowired; |
| 17 | 18 | import org.springframework.data.mongodb.core.MongoTemplate; |
| 18 | 19 | import org.springframework.data.mongodb.core.query.Query; |
| ... | ... | @@ -34,6 +35,8 @@ |
| 34 | 35 | @RequestMapping("/initdata") |
| 35 | 36 | public class InitDataController extends BaseController { |
| 36 | 37 | |
| 38 | + public static final String postser_url = PropertiesUtils.getPropertyValue("postser_url"); | |
| 39 | + | |
| 37 | 40 | @Autowired |
| 38 | 41 | protected MongoTemplate mongoTemplate; |
| 39 | 42 | |
| ... | ... | @@ -104,7 +107,7 @@ |
| 104 | 107 | HttpClient client = new HttpClient(); |
| 105 | 108 | client.getHttpConnectionManager().getParams().setConnectionTimeout(30000); |
| 106 | 109 | client.getHttpConnectionManager().getParams().setSoTimeout(30000); |
| 107 | - PostMethod post = new MessageUtil.UTF8PostMethod("http://api.meishengbb.com/initdata/reser"); | |
| 110 | + PostMethod post = new MessageUtil.UTF8PostMethod(postser_url); | |
| 108 | 111 | NameValuePair[] pairs = { |
| 109 | 112 | new NameValuePair("className", claName), |
| 110 | 113 | new NameValuePair("json", JsonUtil.array2JsonString(synclist)), |
| 111 | 114 | |
| ... | ... | @@ -136,19 +139,22 @@ |
| 136 | 139 | Class cla = Class.forName(className); |
| 137 | 140 | List<String> synclist = JsonUtil.toList(json, String.class); |
| 138 | 141 | for (String s:synclist) { |
| 139 | - System.out.println(className); | |
| 140 | - System.out.println(s); | |
| 141 | - Object obj = SerializUtils.byteToObj(Base64.decodeBase64(s)); | |
| 142 | - String id = cla.getMethod("getId").invoke(obj).toString(); | |
| 143 | - if (StringUtils.isNotEmpty(id)) { | |
| 144 | - if (mongoTemplate.findById(id, cla) == null) { | |
| 145 | - mongoTemplate.insert(obj); | |
| 146 | - } else { | |
| 147 | - Query query = new MongoQuery(new MongoCondition("id", id, MongoOper.IS)).convertToMongoQuery(); | |
| 148 | - Update update = MongoConvertHelper | |
| 149 | - .convertToNativeUpdate(ReflectionUtils.getUpdateField(obj)); | |
| 150 | - mongoTemplate.updateMulti(query, update, cla); | |
| 142 | + try { | |
| 143 | + Object obj = SerializUtils.byteToObj(Base64.decodeBase64(s)); | |
| 144 | + String id = cla.getMethod("getId").invoke(obj).toString(); | |
| 145 | + if (StringUtils.isNotEmpty(id)) { | |
| 146 | + if (mongoTemplate.findById(id, cla) == null) { | |
| 147 | + mongoTemplate.insert(obj); | |
| 148 | + } else { | |
| 149 | + Query query = new MongoQuery(new MongoCondition("id", id, MongoOper.IS)).convertToMongoQuery(); | |
| 150 | + Update update = MongoConvertHelper | |
| 151 | + .convertToNativeUpdate(ReflectionUtils.getUpdateField(obj)); | |
| 152 | + mongoTemplate.updateMulti(query, update, cla); | |
| 153 | + } | |
| 151 | 154 | } |
| 155 | + } catch (Exception e) { | |
| 156 | + System.out.println(className); | |
| 157 | + System.out.println(s); | |
| 152 | 158 | } |
| 153 | 159 | } |
| 154 | 160 | return "success"; |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/LisCrisisItemController.java
View file @
285967f
| ... | ... | @@ -26,9 +26,8 @@ |
| 26 | 26 | import java.util.*; |
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | - * | |
| 30 | - * 危急管理列表 | |
| 31 | - * | |
| 29 | + * 危急管理列表 | |
| 30 | + * <p/> | |
| 32 | 31 | * Created by Administrator on 2016/10/19 0019. |
| 33 | 32 | */ |
| 34 | 33 | @Controller |
| ... | ... | @@ -46,17 +45,17 @@ |
| 46 | 45 | public void getEmergenceTreatments(HttpServletResponse response, |
| 47 | 46 | @RequestParam("page") int page, |
| 48 | 47 | @RequestParam("limit") int limit, |
| 49 | - @RequestParam(value = "id",required = false) String id, | |
| 50 | - @RequestParam(value = "cardNo",required = false) String cardNo, | |
| 51 | - @RequestParam(value = "phone",required = false) String phone, | |
| 52 | - @RequestParam(value = "age",required = false) Integer age, | |
| 53 | - @RequestParam(value = "startWeek",required = false) Integer startWeek, | |
| 54 | - @RequestParam(value = "endWeek",required = false) Integer endWeek, | |
| 55 | - @RequestParam(value = "name",required = false) String name, | |
| 56 | - @RequestParam(value = "status",required = false) Integer status, | |
| 57 | - @RequestParam(value = "refer",required = false) String refer, | |
| 58 | - @RequestParam(value = "doctor",required = false) String doctor | |
| 59 | - ){ | |
| 48 | + @RequestParam(value = "id", required = false) String id, | |
| 49 | + @RequestParam(value = "cardNo", required = false) String cardNo, | |
| 50 | + @RequestParam(value = "phone", required = false) String phone, | |
| 51 | + @RequestParam(value = "age", required = false) Integer age, | |
| 52 | + @RequestParam(value = "startWeek", required = false) Integer startWeek, | |
| 53 | + @RequestParam(value = "endWeek", required = false) Integer endWeek, | |
| 54 | + @RequestParam(value = "name", required = false) String name, | |
| 55 | + @RequestParam(value = "status", required = false) Integer status, | |
| 56 | + @RequestParam(value = "refer", required = false) String refer, | |
| 57 | + @RequestParam(value = "doctor", required = false) String doctor | |
| 58 | + ) { | |
| 60 | 59 | LisCrisisItemQuery query = new LisCrisisItemQuery(); |
| 61 | 60 | query.setPage(page); |
| 62 | 61 | query.setLimit(limit); |
| 63 | 62 | |
| ... | ... | @@ -75,34 +74,39 @@ |
| 75 | 74 | |
| 76 | 75 | List<Map> list = new ArrayList<>(); |
| 77 | 76 | |
| 78 | - if (CollectionUtils.isNotEmpty(lisCrisisItemList)){ | |
| 79 | - for (LisCrisisItem data : lisCrisisItemList){ | |
| 80 | - Map<String,Object> map = new HashMap<>(); | |
| 81 | - map.put("id",data.getId()); | |
| 82 | - map.put("hospitalId",data.getHospitalId()); | |
| 83 | - map.put("name",data.getName()); | |
| 84 | - map.put("age",data.getAge()); | |
| 85 | - map.put("itemCode",data.getItemCode()); | |
| 86 | - map.put("itemName",data.getItemName()); | |
| 87 | - map.put("classify",data.getClassify()); | |
| 88 | - map.put("classifyName",data.getClassifyName()); | |
| 89 | - map.put("flag",data.getFlag()); | |
| 90 | - map.put("ref",data.getRef()); | |
| 91 | - map.put("result",data.getResult()); | |
| 92 | - map.put("unit",data.getUnit()); | |
| 93 | - map.put("applyDoctorCode",data.getApplyDoctorCode()); | |
| 94 | - map.put("applyDoctorName",data.getApplyDoctorName()); | |
| 95 | - map.put("publishTime", data.getPublishTime().getTime()); | |
| 96 | - map.put("status",data.getStatus()); | |
| 97 | - map.put("statusName",data.getStatusName()); | |
| 77 | + if (CollectionUtils.isNotEmpty(lisCrisisItemList)) { | |
| 78 | + for (LisCrisisItem data : lisCrisisItemList) { | |
| 79 | + Map<String, Object> map = new HashMap<>(); | |
| 80 | + map.put("id", data.getId()); | |
| 81 | + map.put("hospitalId", data.getHospitalId()); | |
| 82 | + map.put("name", data.getName()); | |
| 83 | + map.put("age", data.getAge()); | |
| 84 | + map.put("itemCode", data.getItemCode()); | |
| 85 | + map.put("itemName", data.getItemName()); | |
| 86 | + map.put("classify", data.getClassify()); | |
| 87 | + map.put("classifyName", data.getClassifyName()); | |
| 88 | + map.put("flag", data.getFlag()); | |
| 89 | + map.put("ref", data.getRef()); | |
| 90 | + map.put("result", data.getResult()); | |
| 91 | + map.put("unit", data.getUnit()); | |
| 92 | + map.put("applyDoctorCode", data.getApplyDoctorCode()); | |
| 93 | + map.put("applyDoctorName", data.getApplyDoctorName()); | |
| 94 | + map.put("publishTime", DateUtil.getyyyy_MM_dd(data.getPublishTime())); | |
| 95 | + map.put("status", data.getStatus()); | |
| 96 | + map.put("statusName", data.getStatusName()); | |
| 98 | 97 | |
| 99 | - map.put("patientName",data.getPatientName()); | |
| 100 | - map.put("cardNo",data.getCardNo()); | |
| 101 | - map.put("phone",data.getPhone()); | |
| 102 | - map.put("serviceType",data.getServiceType()); | |
| 103 | - map.put("serviceStatus",data.getServiceStatus()); | |
| 104 | - map.put("lastMenses",data.getLastMenses().getTime()); | |
| 105 | - map.put("week",data.getWeek()); | |
| 98 | + map.put("patientName", data.getPatientName()); | |
| 99 | + map.put("cardNo", data.getCardNo()); | |
| 100 | + map.put("phone", data.getPhone()); | |
| 101 | + map.put("serviceType", data.getServiceType()); | |
| 102 | + map.put("serviceStatus", data.getServiceStatus()); | |
| 103 | + map.put("lastMenses", data.getLastMenses().getTime()); | |
| 104 | + | |
| 105 | + if (data.getWeek() >= 42) { | |
| 106 | + map.put("week", "已分娩"); | |
| 107 | + } else { | |
| 108 | + map.put("week", data.getWeek() + "周"); | |
| 109 | + } | |
| 106 | 110 | map.put("pId", data.getPid()); |
| 107 | 111 | map.put("patientId", data.getPatientId()); |
| 108 | 112 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/UsersController.java
View file @
285967f
| ... | ... | @@ -498,6 +498,7 @@ |
| 498 | 498 | |
| 499 | 499 | Map<String, Object> map = new HashMap<>(); |
| 500 | 500 | map.put("user", users); |
| 501 | + map.put("watermark", CompressEncodeingUtil.compressNumber(users.getId().toString()+DateUtil.getymd6())); | |
| 501 | 502 | map.put("roles", roles); |
| 502 | 503 | map.put("permissions", permissions); |
| 503 | 504 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java
View file @
285967f
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/FolicAcidFacade.java
View file @
285967f
| ... | ... | @@ -10,6 +10,7 @@ |
| 10 | 10 | import com.lyms.platform.common.result.BaseResponse; |
| 11 | 11 | import com.lyms.platform.common.utils.DateUtil; |
| 12 | 12 | import com.lyms.platform.common.utils.ExcelUtil; |
| 13 | +import com.lyms.platform.common.utils.SystemConfig; | |
| 13 | 14 | import com.lyms.platform.operate.web.request.FolicAcidAddRequest; |
| 14 | 15 | import com.lyms.platform.operate.web.request.FolicAcidQueryRequest; |
| 15 | 16 | import com.lyms.platform.operate.web.utils.CommonsHelper; |
| 16 | 17 | |
| ... | ... | @@ -18,12 +19,14 @@ |
| 18 | 19 | import com.lyms.platform.permission.model.Users; |
| 19 | 20 | import com.lyms.platform.permission.service.OrganizationService; |
| 20 | 21 | import com.lyms.platform.permission.service.UsersService; |
| 22 | +import com.lyms.platform.pojo.BasicConfig; | |
| 21 | 23 | import com.lyms.platform.pojo.FolicAcid; |
| 22 | 24 | import com.lyms.platform.pojo.ResidentsArchiveModel; |
| 23 | 25 | import com.lyms.platform.query.FolicAcidQuery; |
| 24 | 26 | import com.lyms.platform.query.ResidentsArchiveQuery; |
| 25 | 27 | import org.apache.commons.collections.CollectionUtils; |
| 26 | 28 | import org.apache.commons.lang.StringUtils; |
| 29 | +import org.apache.struts.config.BaseConfig; | |
| 27 | 30 | import org.springframework.beans.factory.annotation.Autowired; |
| 28 | 31 | import org.springframework.stereotype.Component; |
| 29 | 32 | |
| 30 | 33 | |
| ... | ... | @@ -170,12 +173,21 @@ |
| 170 | 173 | //妇女信息 |
| 171 | 174 | archiveMap = new HashMap<>(); |
| 172 | 175 | archiveMap.put("certificateNum", archiveModel.getCertificateNum()); |
| 173 | - archiveMap.put("certificateTypeId", CommonsHelper.getName1(archiveModel.getCertificateTypeId(),basicConfigService)); | |
| 176 | + archiveMap.put("certificateTypeId", archiveModel.getCertificateTypeId()); | |
| 174 | 177 | archiveMap.put("username", archiveModel.getUsername()); |
| 175 | 178 | archiveMap.put("birthday",archiveModel.getBirthday()); |
| 176 | 179 | archiveMap.put("age", archiveModel.getAge()); |
| 177 | 180 | archiveMap.put("phone", archiveModel.getPhone()); |
| 178 | 181 | archiveMap.put("id", archiveModel.getId()); |
| 182 | + if (archiveModel.getSex()== SystemConfig.WOMAN_ID){ | |
| 183 | + archiveMap.put("sex", "女"); | |
| 184 | + }else { | |
| 185 | + archiveMap.put("sex", "男"); | |
| 186 | + } | |
| 187 | + archiveMap.put("residenceRegister",CommonsHelper.getResidence(archiveModel.getProvinceRegisterId(), archiveModel.getCityRegisterId(), | |
| 188 | + archiveModel.getAreaRegisterId(), archiveModel.getStreetRegisterId(), | |
| 189 | + archiveModel.getAddressRegister(), basicConfigService)); | |
| 190 | + archiveMap.put("workUnit",archiveModel.getWorkUnit()); | |
| 179 | 191 | |
| 180 | 192 | } |
| 181 | 193 | resultMap.put("folicAcidResult",folicAcid); |
| ... | ... | @@ -200,8 +212,20 @@ |
| 200 | 212 | folicAcidQuery.setNeed("y"); |
| 201 | 213 | |
| 202 | 214 | folicAcidQuery.setHospitalId(queryRequest.getHospitalId()); |
| 203 | - folicAcidQuery.setDrawTimeStart(queryRequest.getDrawTimeStart()); | |
| 204 | - folicAcidQuery.setDrawTimeEnd(queryRequest.getDrawTimeEnd()); | |
| 215 | + | |
| 216 | + if(StringUtils.isNotEmpty(queryRequest.getDrawTime())){ | |
| 217 | + String[] dates = queryRequest.getDrawTime().split(" - "); | |
| 218 | + folicAcidQuery.setDrawTimeStart(DateUtil.parseYMD(dates[0])); | |
| 219 | + if(dates.length>=2){ | |
| 220 | + Date date= DateUtil.parseYMD(dates[1]); | |
| 221 | + if(null!=date){ | |
| 222 | + long d = date.getTime() + 86398000; | |
| 223 | + date = new Date(d); | |
| 224 | + } | |
| 225 | + folicAcidQuery.setDrawTimeEnd(date); | |
| 226 | + } | |
| 227 | + } | |
| 228 | + | |
| 205 | 229 | folicAcidQuery.setHighRisk(queryRequest.getHighRisk()); |
| 206 | 230 | |
| 207 | 231 | //省市区筛选机构 |
| ... | ... | @@ -275,8 +299,19 @@ |
| 275 | 299 | query.setYn(YnEnums.YES.getId()); |
| 276 | 300 | String hospitalId = autoMatchFacade.getHospitalId(userId); |
| 277 | 301 | query.setHospitalId(hospitalId); |
| 278 | - query.setDrawTimeStart(queryRequest.getDrawTimeStart()); | |
| 279 | - query.setDrawTimeEnd(queryRequest.getDrawTimeEnd()); | |
| 302 | + | |
| 303 | + if(StringUtils.isNotEmpty(queryRequest.getDrawTime())){ | |
| 304 | + String[] dates = queryRequest.getDrawTime().split(" - "); | |
| 305 | + query.setDrawTimeStart(DateUtil.parseYMD(dates[0])); | |
| 306 | + if(dates.length>=2){ | |
| 307 | + Date date= DateUtil.parseYMD(dates[1]); | |
| 308 | + if(null!=date){ | |
| 309 | + long d = date.getTime() + 86398000; | |
| 310 | + date = new Date(d); | |
| 311 | + } | |
| 312 | + query.setDrawTimeEnd(date); | |
| 313 | + } | |
| 314 | + } | |
| 280 | 315 | query.setHighRisk(queryRequest.getHighRisk()); |
| 281 | 316 | |
| 282 | 317 | //省市区筛选机构 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PremaritalCheckupFacade.java
View file @
285967f
| ... | ... | @@ -10,6 +10,7 @@ |
| 10 | 10 | import com.lyms.platform.common.enums.YnEnums; |
| 11 | 11 | import com.lyms.platform.common.result.BaseListResponse; |
| 12 | 12 | import com.lyms.platform.common.result.BaseObjectResponse; |
| 13 | +import com.lyms.platform.common.result.BaseResponse; | |
| 13 | 14 | import com.lyms.platform.common.utils.DateUtil; |
| 14 | 15 | import com.lyms.platform.common.utils.SystemConfig; |
| 15 | 16 | import com.lyms.platform.operate.web.request.PremaritalCheckupAddRequest; |
| ... | ... | @@ -187,8 +188,19 @@ |
| 187 | 188 | query.setYn(YnEnums.YES.getId()); |
| 188 | 189 | query.setCertificateNum(request.getCardNo()); |
| 189 | 190 | query.setYiXueYiJian(request.getYiXueYiJian()); |
| 190 | - query.setPremaritalUpTimeStart(request.getPremaritalUpTimeStart()); | |
| 191 | - query.setPremaritalUpTimeEnd(request.getPremaritalUpTimeEnd()); | |
| 191 | + | |
| 192 | + if(StringUtils.isNotEmpty(request.getPremaritalUpTime())){ | |
| 193 | + String[] dates = request.getPremaritalUpTime().split(" - "); | |
| 194 | + query.setPremaritalUpTimeStart(DateUtil.parseYMD(dates[0])); | |
| 195 | + if(dates.length>=2){ | |
| 196 | + Date date= DateUtil.parseYMD(dates[1]); | |
| 197 | + if(null!=date){ | |
| 198 | + long d = date.getTime() + 86398000; | |
| 199 | + date = new Date(d); | |
| 200 | + } | |
| 201 | + query.setPremaritalUpTimeEnd(date); | |
| 202 | + } | |
| 203 | + } | |
| 192 | 204 | query.setSexType(request.getSexType()); |
| 193 | 205 | |
| 194 | 206 | if (CollectionUtils.isNotEmpty(parentIds)){ |
| ... | ... | @@ -210,7 +222,7 @@ |
| 210 | 222 | ResidentsArchiveModel model = residentsArchiveService.getResident(checkup.getParentId()); |
| 211 | 223 | map.put("premaritalUpTime", checkup.getPremaritalUpTime()); |
| 212 | 224 | map.put("username", model.getUsername()); |
| 213 | - map.put("certificateNum",checkup.getCertificateNum()); | |
| 225 | + map.put("certificateNum",model.getCertificateNum()); | |
| 214 | 226 | map.put("phone", model.getPhone()); |
| 215 | 227 | if (checkup.getJianChaJieGuo() != null && checkup.getJianChaJieGuo()== PhysiologyStatusEnum.NORMAL.getId()){ |
| 216 | 228 | map.put("jianChaJieGuo", PhysiologyStatusEnum.NORMAL.getTitle()); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/FolicAcidQueryRequest.java
View file @
285967f
| ... | ... | @@ -26,10 +26,8 @@ |
| 26 | 26 | private String cityId; |
| 27 | 27 | //区县 |
| 28 | 28 | private String areaId; |
| 29 | - //发放开始时间 | |
| 30 | - private Date drawTimeStart; | |
| 31 | - //结束时间 | |
| 32 | - private Date drawTimeEnd; | |
| 29 | + //领取时间 | |
| 30 | + private String drawTime; | |
| 33 | 31 | //高危因素 |
| 34 | 32 | private String highRisk; |
| 35 | 33 | |
| 36 | 34 | |
| ... | ... | @@ -97,20 +95,12 @@ |
| 97 | 95 | this.areaId = areaId; |
| 98 | 96 | } |
| 99 | 97 | |
| 100 | - public Date getDrawTimeStart() { | |
| 101 | - return drawTimeStart; | |
| 98 | + public String getDrawTime() { | |
| 99 | + return drawTime; | |
| 102 | 100 | } |
| 103 | 101 | |
| 104 | - public void setDrawTimeStart(Date drawTimeStart) { | |
| 105 | - this.drawTimeStart = drawTimeStart; | |
| 106 | - } | |
| 107 | - | |
| 108 | - public Date getDrawTimeEnd() { | |
| 109 | - return drawTimeEnd; | |
| 110 | - } | |
| 111 | - | |
| 112 | - public void setDrawTimeEnd(Date drawTimeEnd) { | |
| 113 | - this.drawTimeEnd = drawTimeEnd; | |
| 102 | + public void setDrawTime(String drawTime) { | |
| 103 | + this.drawTime = drawTime; | |
| 114 | 104 | } |
| 115 | 105 | |
| 116 | 106 | public String getHighRisk() { |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/PremaritalCheckupQueryRequest.java
View file @
285967f
| 1 | 1 | package com.lyms.platform.operate.web.request; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.common.core.annotation.form.Form; | |
| 4 | + | |
| 3 | 5 | import java.util.Date; |
| 4 | 6 | |
| 5 | 7 | /** |
| ... | ... | @@ -7,6 +9,7 @@ |
| 7 | 9 | * |
| 8 | 10 | * Created by Administrator on 2016/11/24 0024. |
| 9 | 11 | */ |
| 12 | +@Form | |
| 10 | 13 | public class PremaritalCheckupQueryRequest extends BasePageQueryRequest{ |
| 11 | 14 | |
| 12 | 15 | private String id; |
| ... | ... | @@ -18,10 +21,8 @@ |
| 18 | 21 | private String username; |
| 19 | 22 | //联系方式 |
| 20 | 23 | private String phone; |
| 21 | - //开始时间 | |
| 22 | - private Date premaritalUpTimeStart; | |
| 23 | - //结束时间 | |
| 24 | - private Date premaritalUpTimeEnd; | |
| 24 | + //检查时间 | |
| 25 | + private String premaritalUpTime; | |
| 25 | 26 | //医学意见 |
| 26 | 27 | private Integer yiXueYiJian; |
| 27 | 28 | //医院ID |
| 28 | 29 | |
| ... | ... | @@ -85,20 +86,12 @@ |
| 85 | 86 | this.phone = phone; |
| 86 | 87 | } |
| 87 | 88 | |
| 88 | - public Date getPremaritalUpTimeStart() { | |
| 89 | - return premaritalUpTimeStart; | |
| 89 | + public String getPremaritalUpTime() { | |
| 90 | + return premaritalUpTime; | |
| 90 | 91 | } |
| 91 | 92 | |
| 92 | - public void setPremaritalUpTimeStart(Date premaritalUpTimeStart) { | |
| 93 | - this.premaritalUpTimeStart = premaritalUpTimeStart; | |
| 94 | - } | |
| 95 | - | |
| 96 | - public Date getPremaritalUpTimeEnd() { | |
| 97 | - return premaritalUpTimeEnd; | |
| 98 | - } | |
| 99 | - | |
| 100 | - public void setPremaritalUpTimeEnd(Date premaritalUpTimeEnd) { | |
| 101 | - this.premaritalUpTimeEnd = premaritalUpTimeEnd; | |
| 93 | + public void setPremaritalUpTime(String premaritalUpTime) { | |
| 94 | + this.premaritalUpTime = premaritalUpTime; | |
| 102 | 95 | } |
| 103 | 96 | |
| 104 | 97 | public Integer getYiXueYiJian() { |