From e13aa9d6008d7a195959332054261e199b6c5589 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期四, 05 十二月 2024 14:43:24 +0800
Subject: [PATCH] 优化代码

---
 service-community/src/main/java/com/java110/community/dao/impl/RoomServiceDaoImpl.java |   52 ++++++++++++++++++++++++++--------------------------
 1 files changed, 26 insertions(+), 26 deletions(-)

diff --git a/service-community/src/main/java/com/java110/community/dao/impl/RoomServiceDaoImpl.java b/service-community/src/main/java/com/java110/community/dao/impl/RoomServiceDaoImpl.java
index 1826b09..efcb2b9 100755
--- a/service-community/src/main/java/com/java110/community/dao/impl/RoomServiceDaoImpl.java
+++ b/service-community/src/main/java/com/java110/community/dao/impl/RoomServiceDaoImpl.java
@@ -54,9 +54,9 @@
 
         logger.debug("鏌ヨ灏忓尯鎴垮眿淇℃伅 鍏ュ弬 info : {}", info);
 
-        List<Map> businessRoomInfos = sqlSessionTemplate.selectList("roomServiceDaoImpl.getBusinessRoomInfo", info);
+        List<Map> infos = sqlSessionTemplate.selectList("roomServiceDaoImpl.getBusinessRoomInfo", info);
 
-        return businessRoomInfos;
+        return infos;
     }
 
 
@@ -89,9 +89,9 @@
     public List<Map> getRoomInfo(Map info) throws DAOException {
         logger.debug("鏌ヨ灏忓尯鎴垮眿淇℃伅 鍏ュ弬 info : {}", info);
 
-        List<Map> businessRoomInfos = sqlSessionTemplate.selectList("roomServiceDaoImpl.getRoomInfo", info);
+        List<Map> infos = sqlSessionTemplate.selectList("roomServiceDaoImpl.getRoomInfo", info);
 
-        return businessRoomInfos;
+        return infos;
     }
 
 
@@ -122,75 +122,75 @@
     public int queryRoomsCount(Map info) {
         logger.debug("鏌ヨ灏忓尯鎴垮眿鏁版嵁 鍏ュ弬 info : {}", info);
 
-        List<Map> businessRoomInfos = sqlSessionTemplate.selectList("roomServiceDaoImpl.queryRoomsCount", info);
-        if (businessRoomInfos.size() < 1) {
+        List<Map> infos = sqlSessionTemplate.selectList("roomServiceDaoImpl.queryRoomsCount", info);
+        if (infos.size() < 1) {
             return 0;
         }
 
-        return Integer.parseInt(businessRoomInfos.get(0).get("count").toString());
+        return Integer.parseInt(infos.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) {
+        List<Map> infos = sqlSessionTemplate.selectList("roomServiceDaoImpl.queryRoomsByCommunityIdCount", info);
+        if (infos.size() < 1) {
             return 0;
         }
 
-        return Integer.parseInt(businessRoomInfos.get(0).get("count").toString());
+        return Integer.parseInt(infos.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) {
+        List<Map> infos = sqlSessionTemplate.selectList("roomServiceDaoImpl.queryRoomsWithOutSellByCommunityIdCount", info);
+        if (infos.size() < 1) {
             return 0;
         }
 
-        return Integer.parseInt(businessRoomInfos.get(0).get("count").toString());
+        return Integer.parseInt(infos.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) {
+        List<Map> infos = sqlSessionTemplate.selectList("roomServiceDaoImpl.queryRoomsWithSellByCommunityIdCount", info);
+        if (infos.size() < 1) {
             return 0;
         }
 
-        return Integer.parseInt(businessRoomInfos.get(0).get("count").toString());
+        return Integer.parseInt(infos.get(0).get("count").toString());
     }
 
     @Override
     public List<Map> getRoomInfoByCommunityId(Map info) {
         logger.debug("鏌ヨ灏忓尯鎴垮眿淇℃伅 鍏ュ弬 info : {}", info);
 
-        List<Map> businessRoomInfos = sqlSessionTemplate.selectList("roomServiceDaoImpl.getRoomInfoByCommunityId", info);
+        List<Map> infos = sqlSessionTemplate.selectList("roomServiceDaoImpl.getRoomInfoByCommunityId", info);
 
-        return businessRoomInfos;
+        return infos;
     }
 
     @Override
     public List<Map> getRoomInfoByOwner(Map info) {
         logger.debug("鏌ヨ灏忓尯鎴垮眿淇℃伅 鍏ュ弬 info : {}", info);
 
-        List<Map> businessRoomInfos = sqlSessionTemplate.selectList("roomServiceDaoImpl.getRoomInfoByOwner", info);
+        List<Map> infos = sqlSessionTemplate.selectList("roomServiceDaoImpl.getRoomInfoByOwner", info);
 
-        return businessRoomInfos;
+        return infos;
     }
 
     @Override
     public List<Map> getRoomInfoWithOutSellByCommunityId(Map info) {
         logger.debug("鏌ヨ灏忓尯鎴垮眿淇℃伅 鍏ュ弬 info : {}", info);
 
-        List<Map> businessRoomInfos = sqlSessionTemplate.selectList("roomServiceDaoImpl.getRoomInfoWithOutSellByCommunityId", info);
+        List<Map> infos = sqlSessionTemplate.selectList("roomServiceDaoImpl.getRoomInfoWithOutSellByCommunityId", info);
 
-        return businessRoomInfos;
+        return infos;
     }
 
 
@@ -198,15 +198,15 @@
     public List<Map> getRoomInfoWithSellByCommunityId(Map info) {
         logger.debug("鏌ヨ灏忓尯鎴垮眿淇℃伅 鍏ュ弬 info : {}", info);
 
-        List<Map> businessRoomInfos = sqlSessionTemplate.selectList("roomServiceDaoImpl.getRoomInfoWithSellByCommunityId", info);
+        List<Map> infos = sqlSessionTemplate.selectList("roomServiceDaoImpl.getRoomInfoWithSellByCommunityId", info);
 
-        return businessRoomInfos;
+        return infos;
     }
 
     public List<Map> getRoomInfos(Map info){
         logger.debug("鏌ヨ灏忓尯鎴垮眿淇℃伅 getRoomInfos鍏ュ弬 info : {}", info);
-        List<Map> businessRoomInfos = sqlSessionTemplate.selectList("roomServiceDaoImpl.getRoomInfos", info);
-        return businessRoomInfos;
+        List<Map> infos = sqlSessionTemplate.selectList("roomServiceDaoImpl.getRoomInfos", info);
+        return infos;
     }
 
 

--
Gitblit v1.8.0