Commit 1d3d058688c6285b0ee8b306cb35b3802c995a63

Authored by litao@lymsh.com
1 parent dbfde3bc5a

优惠券

Showing 1 changed file with 6 additions and 0 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java View file @ 1d3d058
... ... @@ -676,26 +676,31 @@
676 676 double low2 = 0D;
677 677 double high = 0D;
678 678 double high2 = 0D;
  679 + String color = "";
679 680 if(bmiD <= 18.5) {
680 681 low = 1.2;
681 682 low2 = 11.9;
682 683 high = 3.8;
683 684 high2 = 18.1;
  685 + color = "green";
684 686 } else if(bmiD > 18.5 && bmiD <= 24.9){
685 687 low = 1.4;
686 688 low2 = 11.9;
687 689 high = 3.2;
688 690 high2 = 15.9;
  691 + color = "blue";
689 692 } else if(bmiD > 24.9 && bmiD < 30){
690 693 low = 1.1 ;
691 694 low2 = 7.1;
692 695 high = 3.1;
693 696 high2 = 11.6;
  697 + color = "red";
694 698 } else if(bmiD >= 30){
695 699 low = 0.8 ;
696 700 low2 = 4.9;
697 701 high = 2.1;
698 702 high2 = 8.9;
  703 + color = "purple";
699 704 }
700 705  
701 706 Map<Integer, Double> highMap = new HashMap<>();
... ... @@ -734,6 +739,7 @@
734 739 series.put("dayWeights", restList);
735 740  
736 741 reportModel.put("series", series);
  742 + reportModel.put("color", color);
737 743  
738 744 for (int i = 0; i <= 40; i++) {
739 745 xAxis.add(i);