Commit 8379d57f46fcab16c195d658bf40e51a228996f3
1 parent
d692a438b1
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 6 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BloodSugarServiceImpl.java
View file @
8379d57
... | ... | @@ -370,6 +370,12 @@ |
370 | 370 | public BaseResponse wxInfo(String pid, Integer type) { |
371 | 371 | List<Map<String, Object>> restList = new ArrayList<>(); |
372 | 372 | List<BloodSugar> bloodSugars = mongoTemplate.find(Query.query(Criteria.where("pid").is(pid)).with(new Sort(Sort.Direction.DESC, "modified")), BloodSugar.class); |
373 | + | |
374 | + if(CollectionUtils.isEmpty(bloodSugars)) | |
375 | + { | |
376 | + RespBuilder.buildSuccess("restList", restList); | |
377 | + } | |
378 | + | |
373 | 379 | Set<String> dayCountSet = new HashSet<>(); |
374 | 380 | Set<String> monthCountSet = new HashSet<>(); |
375 | 381 | Set<String> monthCountSet2 = new TreeSet<>(new Comparator<String>() { |