From b784175e978b0fcfca8ca8bed7953ae4eacf49e8 Mon Sep 17 00:00:00 2001
From: shiyj <1098226878@qq.com>
Date: 星期一, 02 九月 2019 20:18:58 +0800
Subject: [PATCH] Merge branch 'master' of https://github.com/java110/MicroCommunity

---
 CommunityService/src/main/java/com/java110/community/dao/impl/ServiceServiceDaoImpl.java |   67 +++++++++++++++++++++++++++++++++
 1 files changed, 67 insertions(+), 0 deletions(-)

diff --git a/CommunityService/src/main/java/com/java110/community/dao/impl/ServiceServiceDaoImpl.java b/CommunityService/src/main/java/com/java110/community/dao/impl/ServiceServiceDaoImpl.java
index 019f589..4b3de2d 100644
--- a/CommunityService/src/main/java/com/java110/community/dao/impl/ServiceServiceDaoImpl.java
+++ b/CommunityService/src/main/java/com/java110/community/dao/impl/ServiceServiceDaoImpl.java
@@ -127,4 +127,71 @@
     }
 
 
+    /**
+     * 鏈嶅姟淇℃伅灏佽
+     *
+     * @param businessServiceInfo 鏈嶅姟淇℃伅 灏佽
+     * @throws DAOException DAO寮傚父
+     */
+    @Override
+    public int saveServiceProvideInfo(Map businessServiceInfo) throws DAOException {
+        // 鏌ヨbusiness_user 鏁版嵁鏄惁宸茬粡瀛樺湪
+        logger.debug("淇濆瓨鏈嶅姟鎻愪緵淇℃伅 鍏ュ弬 saveServiceProvideInfo : {}", businessServiceInfo);
+        int saveFlag = sqlSessionTemplate.insert("serviceServiceDaoImpl.saveServiceProvideInfo", businessServiceInfo);
+
+        return saveFlag;
+    }
+
+
+    /**
+     * 鏌ヨ鏈嶅姟淇℃伅锛坕nstance锛�
+     *
+     * @param info bId 淇℃伅
+     * @return List<Map>
+     * @throws DAOException DAO寮傚父
+     */
+    @Override
+    public List<Map> getServiceProvideInfo(Map info) throws DAOException {
+        logger.debug("鏌ヨ鏈嶅姟淇℃伅 鍏ュ弬 info : {}", info);
+
+        List<Map> businessServiceInfos = sqlSessionTemplate.selectList("serviceServiceDaoImpl.getServiceProvideInfo", info);
+
+        return businessServiceInfos;
+    }
+
+
+    /**
+     * 淇敼鏈嶅姟淇℃伅
+     *
+     * @param info 淇敼淇℃伅
+     * @throws DAOException DAO寮傚父
+     */
+    @Override
+    public int updateServiceProvideInfo(Map info) throws DAOException {
+        logger.debug("淇敼鏈嶅姟淇℃伅Instance 鍏ュ弬 info : {}", info);
+
+        int saveFlag = sqlSessionTemplate.update("serviceServiceDaoImpl.updateServiceProvideInfo", info);
+
+        return saveFlag;
+    }
+
+    /**
+     * 鏌ヨ鏈嶅姟鏁伴噺
+     *
+     * @param info 鏈嶅姟淇℃伅
+     * @return 鏈嶅姟鏁伴噺
+     */
+    @Override
+    public int queryServiceProvidesCount(Map info) {
+        logger.debug("鏌ヨ鏈嶅姟鏁版嵁 鍏ュ弬 info : {}", info);
+
+        List<Map> businessServiceInfos = sqlSessionTemplate.selectList("serviceServiceDaoImpl.queryServiceProvidesCount", info);
+        if (businessServiceInfos.size() < 1) {
+            return 0;
+        }
+
+        return Integer.parseInt(businessServiceInfos.get(0).get("count").toString());
+    }
+
+
 }

--
Gitblit v1.8.0