yj
2020-03-13 770a62920590cbb3dfda451cf28b9dc0329f2e0f
fanli/src/main/java/com/yeshi/fanli/dao/MongodbBaseDao.java
@@ -57,6 +57,17 @@
   public List<T> findList(Query query) {
      return mongoTemplate.find(query, this.getEntityClass());
   }
   /**
    * 统计数量
    *
    * @param query
    * @return
    */
   public long count(Query query) {
      return mongoTemplate.count(query, this.getEntityClass());
   }
   /**
    * 主键查询