Commit ae3a707e72c545a8001f0c2ddb1458096ebe739c
1 parent
b1857dc4ed
Exists in
master
and in
6 other branches
隆化妇幼需求
Showing 1 changed file with 66 additions and 31 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/LhBabyEyeCheckFacade.java
View file @
ae3a707
... | ... | @@ -436,7 +436,7 @@ |
436 | 436 | } |
437 | 437 | Map map=dioptricAnomalyState(babyCheck); |
438 | 438 | if((Boolean) map.get("state")){ |
439 | - abnormalInfo+="屈光异常值:"+map.get("value"); | |
439 | + abnormalInfo+=""+map.get("value"); | |
440 | 440 | }else{ |
441 | 441 | abnormalInfo+="无"; |
442 | 442 | } |
443 | 443 | |
... | ... | @@ -454,37 +454,72 @@ |
454 | 454 | Map<String,Object> map=new HashMap<>(); |
455 | 455 | map.put("state",false); |
456 | 456 | map.put("value",""); |
457 | +// System.out.println(babyCheck.getQgscResult().get("yesOrNo")); | |
458 | +// System.out.println(babyCheck.getQgscResult().get("sg")); | |
459 | +// System.out.println(babyCheck.getQgscResult().get("js")); | |
460 | + StringBuilder str = new StringBuilder(); | |
461 | + if (babyCheck.getQgscResult()!=null){ | |
462 | + if (babyCheck.getQgscResult().get("yesOrNo").equals("yes") && babyCheck.getQgscResult().get("yesOrNo")!=null){ | |
463 | + str.append("异常"); | |
464 | + | |
465 | + }else if (babyCheck.getQgscResult().get("yesOrNo").equals("no") && babyCheck.getQgscResult().get("yesOrNo")!=null){ | |
466 | + str.append(""); | |
467 | + map.put("state",false); | |
468 | + map.put("value", str); | |
469 | + return map; | |
470 | + }if (babyCheck.getQgscResult().get("yesOrNo").equals("yes1") && babyCheck.getQgscResult().get("yesOrNo")!=null){ | |
471 | + str.append("可疑"); | |
472 | + | |
473 | + } | |
474 | + if(babyCheck.getQgscResult().get("sg").equals("true")){ | |
475 | +// str = str+"散光"; | |
476 | + str.append(" 散光"); | |
477 | + }else if(babyCheck.getQgscResult().get("js").equals("true")){ | |
478 | + str.append(" 近视"); | |
479 | + }else if(babyCheck.getQgscResult().get("rs").equals("true")){ | |
480 | +// str = str+"弱视"; | |
481 | + str.append(" 弱视 "); | |
482 | + }else if(babyCheck.getQgscResult().get("ys").equals("true")){ | |
483 | + str.append(" 远视"); | |
484 | + } | |
485 | + map.put("state",true); | |
486 | + map.put("value", str); | |
487 | + return map; | |
488 | + }else{ | |
489 | + return map; | |
490 | + } | |
491 | + | |
457 | 492 | //6月-1岁 |
458 | - if(babyCheck.getLhdsr()!="" && babyCheck.getLhdsl()!="" &&babyCheck.getLhdcr()!="" && babyCheck.getLhdcl()!="" && | |
459 | - babyCheck.getLhdsr()!=null && babyCheck.getLhdsl()!=null &&babyCheck.getLhdcr()!=null && babyCheck.getLhdcl()!=null) { | |
460 | - if (NumberUtils.isNumber(babyCheck.getLhdsr())) { | |
461 | - if (1.5d <= Double.valueOf(NumberUtils.strDel(babyCheck.getLhdcr())) || -1.5d >= Double.valueOf(NumberUtils.strDel(babyCheck.getLhdcr())) || | |
462 | - 1.5d <= Double.valueOf(NumberUtils.strDel(babyCheck.getLhdcr())) || | |
463 | - -1.5d >= Double.valueOf(NumberUtils.strDel(babyCheck.getLhdcr()))) { | |
464 | - map.put("state", true); | |
465 | - map.put("value", "散光异常"); | |
466 | - } | |
467 | - } | |
468 | - if (NumberUtils.isNumber(babyCheck.getLhdsl())) { | |
469 | - if (3.0d <= Double.valueOf(NumberUtils.strDel(babyCheck.getLhdsl())) || 3.0d <= Double.valueOf(NumberUtils.strDel(babyCheck.getLhdsr()))) { | |
470 | -// if(2.5d>Double.valueOf(NumberUtils.strDel(babyCheck.getLhdsl())) ){ | |
471 | - map.put("state", true); | |
472 | -// map.put("value",map.get("value")+"DS-L:"+babyCheck.getLhdsl()+";"); | |
473 | - map.put("value", map.get("value") + "远视异常"); | |
474 | - } | |
475 | - } | |
476 | - if (NumberUtils.isNumber(babyCheck.getLhdcl())) { | |
477 | - if (Double.valueOf(NumberUtils.strDel(babyCheck.getLhdcl())) < -0.5d || Double.valueOf(NumberUtils.strDel(babyCheck.getLhdcr())) < -0.5d) { | |
478 | - map.put("state", true); | |
479 | - map.put("value", map.get("value") + "近视异常"); | |
480 | - } | |
481 | - } | |
482 | - return map; | |
483 | - }else{ | |
484 | - map.put("state", false); | |
485 | - map.put("value", null); | |
486 | - return map; | |
487 | - } | |
493 | +// if(babyCheck.getLhdsr()!="" && babyCheck.getLhdsl()!="" &&babyCheck.getLhdcr()!="" && babyCheck.getLhdcl()!="" && | |
494 | +// babyCheck.getLhdsr()!=null && babyCheck.getLhdsl()!=null &&babyCheck.getLhdcr()!=null && babyCheck.getLhdcl()!=null) { | |
495 | +// if (NumberUtils.isNumber(babyCheck.getLhdsr())) { | |
496 | +// if (1.5d <= Double.valueOf(NumberUtils.strDel(babyCheck.getLhdcr())) || -1.5d >= Double.valueOf(NumberUtils.strDel(babyCheck.getLhdcr())) || | |
497 | +// 1.5d <= Double.valueOf(NumberUtils.strDel(babyCheck.getLhdcr())) || | |
498 | +// -1.5d >= Double.valueOf(NumberUtils.strDel(babyCheck.getLhdcr()))) { | |
499 | +// map.put("state", true); | |
500 | +// map.put("value", "散光异常"); | |
501 | +// } | |
502 | +// } | |
503 | +// if (NumberUtils.isNumber(babyCheck.getLhdsl())) { | |
504 | +// if (3.0d <= Double.valueOf(NumberUtils.strDel(babyCheck.getLhdsl())) || 3.0d <= Double.valueOf(NumberUtils.strDel(babyCheck.getLhdsr()))) { | |
505 | +//// if(2.5d>Double.valueOf(NumberUtils.strDel(babyCheck.getLhdsl())) ){ | |
506 | +// map.put("state", true); | |
507 | +//// map.put("value",map.get("value")+"DS-L:"+babyCheck.getLhdsl()+";"); | |
508 | +// map.put("value", map.get("value") + "远视异常"); | |
509 | +// } | |
510 | +// } | |
511 | +// if (NumberUtils.isNumber(babyCheck.getLhdcl())) { | |
512 | +// if (Double.valueOf(NumberUtils.strDel(babyCheck.getLhdcl())) < -0.5d || Double.valueOf(NumberUtils.strDel(babyCheck.getLhdcr())) < -0.5d) { | |
513 | +// map.put("state", true); | |
514 | +// map.put("value", map.get("value") + "近视异常"); | |
515 | +// } | |
516 | +// } | |
517 | +// return map; | |
518 | +// }else{ | |
519 | +// map.put("state", false); | |
520 | +// map.put("value", null); | |
521 | +// return map; | |
522 | +// } | |
488 | 523 | } |
489 | 524 | /** |
490 | 525 | * 是否屈光异常 |