From a76cec91cf4adf1feede5dda61d97d2bbf18266a Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期四, 11 七月 2019 20:27:20 +0800
Subject: [PATCH] 加入服务绑定功能
---
CommunityService/src/main/java/com/java110/community/dao/impl/FloorServiceDaoImpl.java | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/CommunityService/src/main/java/com/java110/community/dao/impl/FloorServiceDaoImpl.java b/CommunityService/src/main/java/com/java110/community/dao/impl/FloorServiceDaoImpl.java
index 40ce1b4..78c5f22 100644
--- a/CommunityService/src/main/java/com/java110/community/dao/impl/FloorServiceDaoImpl.java
+++ b/CommunityService/src/main/java/com/java110/community/dao/impl/FloorServiceDaoImpl.java
@@ -10,6 +10,7 @@
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
+import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -115,8 +116,9 @@
@Override
public int queryFloorsCount(String communityId) throws DAOException {
logger.debug("鏌ヨ灏忓尯妤间俊鎭� 鍏ュ弬 communityId : {}", communityId);
-
- List<Map> businessFloorInfos = sqlSessionTemplate.selectList("floorServiceDaoImpl.queryFloorsCount", communityId);
+ Map info = new HashMap();
+ info.put("communityId", communityId);
+ List<Map> businessFloorInfos = sqlSessionTemplate.selectList("floorServiceDaoImpl.queryFloorsCount", info);
if (businessFloorInfos.size() < 1) {
return 0;
}
@@ -133,5 +135,17 @@
return businessFloorInfos;
}
+ @Override
+ public int queryFloorsCount(Map info) throws DAOException {
+ logger.debug("鏌ヨ灏忓尯妤间俊鎭� 鍏ュ弬 info : {}", info);
+
+ List<Map> businessFloorInfos = sqlSessionTemplate.selectList("floorServiceDaoImpl.queryFloorsCount", info);
+ if (businessFloorInfos.size() < 1) {
+ return 0;
+ }
+
+ return Integer.parseInt(businessFloorInfos.get(0).get("count").toString());
+ }
+
}
--
Gitblit v1.8.0