Commit f65737ce869a6b92381951ee451426d72eea1005

Authored by jiangjiazhi
1 parent 074fb593f3

分娩作废产检劵

Showing 1 changed file with 3 additions and 1 deletions

platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/AntExRecordDaoImpl.java View file @ f65737c
... ... @@ -42,7 +42,9 @@
42 42 */
43 43 public List<HashMap> aggregateOne(MongoQuery mongoQuery){
44 44 AggregationOperation match = Aggregation.match(/*Criteria.where("hospitalId").is(hospitalId)*/mongoQuery.getCriteria());
45   - AggregationOperation group = Aggregation.group("checkDoctor").count().as("count");
  45 +
  46 + String[] str= new String[]{"checkDoctor","pid"};
  47 + AggregationOperation group = Aggregation.group(str).count().as("count");
46 48  
47 49 Aggregation aggregation= Aggregation.newAggregation(match, group);
48 50