Commit 29e5c06a0b0f1fe2b776126da272a9ee6624aaed
1 parent
d412e87a72
Exists in
master
and in
6 other branches
改逻辑
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 @
29e5c06
... | ... | @@ -820,6 +820,7 @@ |
820 | 820 | bmiD = Double.parseDouble(bmi); |
821 | 821 | } |
822 | 822 | String title = ""; |
823 | + String color = ""; | |
823 | 824 | double low = 0D; |
824 | 825 | double low2 = 0D; |
825 | 826 | double high = 0D; |
826 | 827 | |
827 | 828 | |
828 | 829 | |
... | ... | @@ -830,24 +831,28 @@ |
830 | 831 | low2 = 11.9; |
831 | 832 | high = 3.8; |
832 | 833 | high2 = 18.1; |
834 | + color = "#00EE76"; | |
833 | 835 | } else if(bmiD > 18.5 && bmiD <= 24.9){ |
834 | 836 | title = "标准体重推荐增重均值"; |
835 | 837 | low = 1.4; |
836 | 838 | low2 = 11.9; |
837 | 839 | high = 3.2; |
838 | 840 | high2 = 15.9; |
841 | + color = "#7EC0EE"; | |
839 | 842 | } else if(bmiD > 24.9 && bmiD < 30){ |
840 | 843 | title = "超重体重推荐增重均值"; |
841 | 844 | low = 1.1 ; |
842 | 845 | low2 = 7.1; |
843 | 846 | high = 3.1; |
844 | 847 | high2 = 11.6; |
848 | + color = "#CD3333"; | |
845 | 849 | } else if(bmiD >= 30){ |
846 | 850 | title = "肥胖体重推荐增重均值"; |
847 | 851 | low = 0.8 ; |
848 | 852 | low2 = 4.9; |
849 | 853 | high = 2.1; |
850 | 854 | high2 = 8.9; |
855 | + color = "#CD00CD"; | |
851 | 856 | } |
852 | 857 | |
853 | 858 | Map<Integer, Double> highMap = new HashMap<>(); |
... | ... | @@ -885,6 +890,7 @@ |
885 | 890 | reportModel.put("series", series); |
886 | 891 | |
887 | 892 | reportModel.put("title", title); |
893 | + reportModel.put("color", color); | |
888 | 894 | |
889 | 895 | for (int i = 0; i <= 40; i++) { |
890 | 896 | xAxis.add(i); |