Commit 8b0d4b2bdd65b7e92e892a48d8107b75e417e62d
1 parent
9c98ef3d12
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 2 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientFacade.java
View file @
8b0d4b2
... | ... | @@ -780,6 +780,8 @@ |
780 | 780 | formatBmi = String.format("function () { return this.bmi >= %s && this.bmi < %s; }", "35", "40"); |
781 | 781 | } else if ("5".equals(riskPatientsQueryRequest.getBmi())) { |
782 | 782 | formatBmi = String.format("function () { return this.bmi > %s; }", "40"); |
783 | + }else { | |
784 | + formatBmi = String.format("function () { return this.bmi >= %s && this.bmi < %s; }", "25", "100"); | |
783 | 785 | } |
784 | 786 | query.addCriteria(Criteria.where("$where").is(formatBmi)); |
785 | 787 | PageResult pageResult = findMongoPage(PatientWeight.class, query.with(new Sort(Sort.Direction.DESC, "modified")), riskPatientsQueryRequest.getPage(), riskPatientsQueryRequest.getLimit()); |