Commit b27e8643f94beef983a73df140b8333f75f1786d
1 parent
f9eb6ad147
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 8 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/VolumeComponentAnalysisFacade.java
View file @
b27e864
... | ... | @@ -319,7 +319,14 @@ |
319 | 319 | //内脏脂肪分析 |
320 | 320 | Map<String, Object> viscusInfo = new HashMap<>(); |
321 | 321 | viscusInfo.put("viscusTrFat", volumeComponentAnalysisModel.getTrFat());//躯干脂肪量 总量 |
322 | - viscusInfo.put("viscusVfi", volumeComponentAnalysisModel.getVfi());//内脏脂肪水平(内脏脂肪指数) | |
322 | + double v = Double.parseDouble(volumeComponentAnalysisModel.getVfi()); | |
323 | + if(v < 9){ | |
324 | + viscusInfo.put("viscusVfi",0 );//内脏脂肪指数 0正常 1超标 2 高 | |
325 | + }else if(v >10 && v<14){ | |
326 | + viscusInfo.put("viscusVfi",1 ); | |
327 | + }else if(v >15){ | |
328 | + viscusInfo.put("viscusVfi",2 ); | |
329 | + } | |
323 | 330 | data.add(viscusInfo); |
324 | 331 | |
325 | 332 | //水肿分析 |