From bdfb519e59d7119dcf5835a4b6ebd6c4d2006470 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期一, 16 十二月 2019 18:33:13 +0800
Subject: [PATCH] 合并代码

---
 CommunityService/src/main/java/com/java110/community/dao/impl/RoomServiceDaoImpl.java |   80 ++++++++++++++++++++++++++++++++++++++-
 1 files changed, 77 insertions(+), 3 deletions(-)

diff --git a/CommunityService/src/main/java/com/java110/community/dao/impl/RoomServiceDaoImpl.java b/CommunityService/src/main/java/com/java110/community/dao/impl/RoomServiceDaoImpl.java
index e72d530..b5ffd8e 100644
--- a/CommunityService/src/main/java/com/java110/community/dao/impl/RoomServiceDaoImpl.java
+++ b/CommunityService/src/main/java/com/java110/community/dao/impl/RoomServiceDaoImpl.java
@@ -1,9 +1,9 @@
 package com.java110.community.dao.impl;
 
 import com.alibaba.fastjson.JSONObject;
-import com.java110.common.constant.ResponseConstant;
-import com.java110.common.exception.DAOException;
-import com.java110.common.util.DateUtil;
+import com.java110.utils.constant.ResponseConstant;
+import com.java110.utils.exception.DAOException;
+import com.java110.utils.util.DateUtil;
 import com.java110.community.dao.IRoomServiceDao;
 import com.java110.core.base.dao.BaseServiceDao;
 import org.slf4j.Logger;
@@ -130,5 +130,79 @@
         return Integer.parseInt(businessRoomInfos.get(0).get("count").toString());
     }
 
+    @Override
+    public int queryRoomsByCommunityIdCount(Map info) {
+        logger.debug("鏌ヨ灏忓尯鎴垮眿鏁版嵁 鍏ュ弬 info : {}", info);
+
+        List<Map> businessRoomInfos = sqlSessionTemplate.selectList("roomServiceDaoImpl.queryRoomsByCommunityIdCount", info);
+        if (businessRoomInfos.size() < 1) {
+            return 0;
+        }
+
+        return Integer.parseInt(businessRoomInfos.get(0).get("count").toString());
+    }
+
+    @Override
+    public int queryRoomsWithOutSellByCommunityIdCount(Map info) {
+        logger.debug("鏌ヨ灏忓尯鎴垮眿鏁版嵁 鍏ュ弬 info : {}", info);
+
+        List<Map> businessRoomInfos = sqlSessionTemplate.selectList("roomServiceDaoImpl.queryRoomsWithOutSellByCommunityIdCount", info);
+        if (businessRoomInfos.size() < 1) {
+            return 0;
+        }
+
+        return Integer.parseInt(businessRoomInfos.get(0).get("count").toString());
+    }
+
+    @Override
+    public int queryRoomsWithSellByCommunityIdCount(Map info) {
+        logger.debug("鏌ヨ灏忓尯鎴垮眿鏁版嵁 鍏ュ弬 info : {}", info);
+
+        List<Map> businessRoomInfos = sqlSessionTemplate.selectList("roomServiceDaoImpl.queryRoomsWithSellByCommunityIdCount", info);
+        if (businessRoomInfos.size() < 1) {
+            return 0;
+        }
+
+        return Integer.parseInt(businessRoomInfos.get(0).get("count").toString());
+    }
+
+    @Override
+    public List<Map> getRoomInfoByCommunityId(Map info) {
+        logger.debug("鏌ヨ灏忓尯鎴垮眿淇℃伅 鍏ュ弬 info : {}", info);
+
+        List<Map> businessRoomInfos = sqlSessionTemplate.selectList("roomServiceDaoImpl.getRoomInfoByCommunityId", info);
+
+        return businessRoomInfos;
+    }
+
+    @Override
+    public List<Map> getRoomInfoByOwner(Map info) {
+        logger.debug("鏌ヨ灏忓尯鎴垮眿淇℃伅 鍏ュ弬 info : {}", info);
+
+        List<Map> businessRoomInfos = sqlSessionTemplate.selectList("roomServiceDaoImpl.getRoomInfoByOwner", info);
+
+        return businessRoomInfos;
+    }
+
+    @Override
+    public List<Map> getRoomInfoWithOutSellByCommunityId(Map info) {
+        logger.debug("鏌ヨ灏忓尯鎴垮眿淇℃伅 鍏ュ弬 info : {}", info);
+
+        List<Map> businessRoomInfos = sqlSessionTemplate.selectList("roomServiceDaoImpl.getRoomInfoWithOutSellByCommunityId", info);
+
+        return businessRoomInfos;
+    }
+
+
+    @Override
+    public List<Map> getRoomInfoWithSellByCommunityId(Map info) {
+        logger.debug("鏌ヨ灏忓尯鎴垮眿淇℃伅 鍏ュ弬 info : {}", info);
+
+        List<Map> businessRoomInfos = sqlSessionTemplate.selectList("roomServiceDaoImpl.getRoomInfoWithSellByCommunityId", info);
+
+        return businessRoomInfos;
+    }
+
+
 
 }

--
Gitblit v1.8.0