Commit 7dabb9967b8b6d459abb531b3247e444d4ce09ce

Authored by jiangjiazhi
1 parent 5567a94e00

排除掉当前体重为空的情况

Showing 1 changed file with 1 additions and 1 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java View file @ 7dabb99
... ... @@ -409,7 +409,7 @@
409 409 */
410 410 private PatientWeight queryPatientWeight(String pid) {
411 411 Query query = new Query();
412   - query.addCriteria(Criteria.where("pid").is(pid));
  412 + query.addCriteria(Criteria.where("pid").is(pid).and("nowWeight").ne(""));
413 413 query.with(new Sort(Sort.Direction.DESC, "modified"));
414 414  
415 415 List<PatientWeight> patientWeightList = mongoTemplate.find(query, PatientWeight.class);