From 3f608b492ce3c010322009916f462e3a70c7fb61 Mon Sep 17 00:00:00 2001
From: admin <2780501319@qq.com>
Date: 星期六, 14 三月 2020 11:11:23 +0800
Subject: [PATCH] 会员阶段完善,订单商品添加券后价

---
 fanli/src/main/java/com/yeshi/fanli/dao/MongodbBaseDao.java |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/dao/MongodbBaseDao.java b/fanli/src/main/java/com/yeshi/fanli/dao/MongodbBaseDao.java
index ea8f432..175b419 100644
--- a/fanli/src/main/java/com/yeshi/fanli/dao/MongodbBaseDao.java
+++ b/fanli/src/main/java/com/yeshi/fanli/dao/MongodbBaseDao.java
@@ -56,6 +56,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());
+	}
 
 	/**
 	 * 涓婚敭鏌ヨ

--
Gitblit v1.8.0