From 80478815dcce0329fa192ffd53060e736f7b6700 Mon Sep 17 00:00:00 2001
From: wuxw7 <wuxw7@asiainfo.com>
Date: 星期日, 08 七月 2018 01:19:27 +0800
Subject: [PATCH] 商品服务开发完成

---
 ShopService/src/main/java/com/java110/shop/dao/impl/ShopServiceDaoImpl.java |  434 ++++++++++++++++++++++++++++++++++++++----------------
 1 files changed, 306 insertions(+), 128 deletions(-)

diff --git a/ShopService/src/main/java/com/java110/shop/dao/impl/ShopServiceDaoImpl.java b/ShopService/src/main/java/com/java110/shop/dao/impl/ShopServiceDaoImpl.java
index 0fc7c78..4b9a588 100644
--- a/ShopService/src/main/java/com/java110/shop/dao/impl/ShopServiceDaoImpl.java
+++ b/ShopService/src/main/java/com/java110/shop/dao/impl/ShopServiceDaoImpl.java
@@ -14,7 +14,7 @@
 import java.util.Map;
 
 /**
- * 鍟嗘埛鏈嶅姟 涓庢暟鎹簱浜や簰
+ * 鍟嗗搧鏈嶅姟 涓庢暟鎹簱浜や簰
  * Created by wuxw on 2017/4/5.
  */
 @Service("shopServiceDaoImpl")
@@ -24,317 +24,495 @@
     private final static Logger logger = LoggerFactory.getLogger(ShopServiceDaoImpl.class);
 
     /**
-     * 鍟嗘埛淇℃伅灏佽
-     * @param businessStoreInfo 鍟嗘埛淇℃伅 灏佽
+     * 鍟嗗搧淇℃伅灏佽
+     * @param businessShopInfo 鍟嗗搧淇℃伅 灏佽
      * @throws DAOException
      */
     @Override
-    public void saveBusinessStoreInfo(Map businessStoreInfo) throws DAOException {
-        businessStoreInfo.put("month", DateUtil.getCurrentMonth());
+    public void saveBusinessShopInfo(Map businessShopInfo) throws DAOException {
+        businessShopInfo.put("month", DateUtil.getCurrentMonth());
         // 鏌ヨbusiness_user 鏁版嵁鏄惁宸茬粡瀛樺湪
-        logger.debug("淇濆瓨鍟嗘埛淇℃伅 鍏ュ弬 businessStoreInfo : {}",businessStoreInfo);
-        int saveFlag = sqlSessionTemplate.insert("storeServiceDaoImpl.saveBusinessStoreInfo",businessStoreInfo);
+        logger.debug("淇濆瓨鍟嗗搧淇℃伅 鍏ュ弬 businessShopInfo : {}",businessShopInfo);
+        int saveFlag = sqlSessionTemplate.insert("shopServiceDaoImpl.saveBusinessShopInfo",businessShopInfo);
 
         if(saveFlag < 1){
-            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鍟嗘埛鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(businessStoreInfo));
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鍟嗗搧鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(businessShopInfo));
         }
     }
 
     /**
-     * 鍟嗘埛灞炴�т俊鎭垎瑁�
-     * @param businessStoreAttr 鍟嗘埛灞炴�т俊鎭皝瑁�
+     * 鍟嗗搧灞炴�т俊鎭垎瑁�
+     * @param businessShopAttr 鍟嗗搧灞炴�т俊鎭皝瑁�
      * @throws DAOException
      */
     @Override
-    public void saveBusinessStoreAttr(Map businessStoreAttr) throws DAOException {
-        businessStoreAttr.put("month", DateUtil.getCurrentMonth());
+    public void saveBusinessShopAttr(Map businessShopAttr) throws DAOException {
+        businessShopAttr.put("month", DateUtil.getCurrentMonth());
         // 鏌ヨbusiness_user 鏁版嵁鏄惁宸茬粡瀛樺湪
-        logger.debug("淇濆瓨鍟嗘埛灞炴�т俊鎭� 鍏ュ弬 businessStoreAttr : {}",businessStoreAttr);
+        logger.debug("淇濆瓨鍟嗗搧灞炴�т俊鎭� 鍏ュ弬 businessShopAttr : {}",businessShopAttr);
 
-        int saveFlag = sqlSessionTemplate.insert("storeServiceDaoImpl.saveBusinessStoreAttr",businessStoreAttr);
+        int saveFlag = sqlSessionTemplate.insert("shopServiceDaoImpl.saveBusinessShopAttr",businessShopAttr);
 
         if(saveFlag < 1){
-            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鍟嗘埛灞炴�ф暟鎹け璐ワ細"+ JSONObject.toJSONString(businessStoreAttr));
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鍟嗗搧灞炴�ф暟鎹け璐ワ細"+ JSONObject.toJSONString(businessShopAttr));
         }
     }
 
     /**
-     * 淇濆瓨鍟嗘埛鐓х墖淇℃伅
-     * @param businessStorePhoto 鍟嗘埛鐓х墖
+     * 鍟嗗搧灞炴�у弬鏁颁繚瀛�
+     * @param businessShopAttrParam 鍟嗗搧灞炴�у弬鏁颁俊鎭皝瑁�
      * @throws DAOException
      */
     @Override
-    public void saveBusinessStorePhoto(Map businessStorePhoto) throws DAOException {
-        businessStorePhoto.put("month", DateUtil.getCurrentMonth());
-        logger.debug("淇濆瓨鍟嗘埛鐓х墖淇℃伅 鍏ュ弬 businessStorePhoto : {}",businessStorePhoto);
+    public void saveBusinessShopAttrParam(Map businessShopAttrParam) throws DAOException {
+        businessShopAttrParam.put("month", DateUtil.getCurrentMonth());
+        // 鏌ヨbusiness_user 鏁版嵁鏄惁宸茬粡瀛樺湪
+        logger.debug("淇濆瓨鍟嗗搧灞炴�у弬鏁颁俊鎭� 鍏ュ弬 businessShopAttr : {}",businessShopAttrParam);
 
-        int saveFlag = sqlSessionTemplate.insert("storeServiceDaoImpl.saveBusinessStorePhoto",businessStorePhoto);
+        int saveFlag = sqlSessionTemplate.insert("shopServiceDaoImpl.saveBusinessShopAttrParam",businessShopAttrParam);
 
         if(saveFlag < 1){
-            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鍟嗘埛鐓х墖鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(businessStorePhoto));
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鍟嗗搧灞炴�у弬鏁版暟鎹け璐ワ細"+ JSONObject.toJSONString(businessShopAttrParam));
         }
     }
 
     /**
-     * 淇濆瓨鍟嗘埛璇佷欢淇℃伅
-     * @param businessStoreCerdentials 鍟嗘埛璇佷欢
+     * 淇濆瓨鍟嗗搧鐓х墖淇℃伅
+     * @param businessShopPhoto 鍟嗗搧鐓х墖
      * @throws DAOException
      */
     @Override
-    public void saveBusinessStoreCerdentials(Map businessStoreCerdentials) throws DAOException {
-        businessStoreCerdentials.put("month", DateUtil.getCurrentMonth());
-        logger.debug("淇濆瓨鍟嗘埛璇佷欢淇℃伅 鍏ュ弬 businessStoreCerdentials : {}",businessStoreCerdentials);
+    public void saveBusinessShopPhoto(Map businessShopPhoto) throws DAOException {
+        businessShopPhoto.put("month", DateUtil.getCurrentMonth());
+        logger.debug("淇濆瓨鍟嗗搧鐓х墖淇℃伅 鍏ュ弬 businessShopPhoto : {}",businessShopPhoto);
 
-        int saveFlag = sqlSessionTemplate.insert("storeServiceDaoImpl.saveBusinessStoreCerdentials",businessStoreCerdentials);
+        int saveFlag = sqlSessionTemplate.insert("shopServiceDaoImpl.saveBusinessShopPhoto",businessShopPhoto);
 
         if(saveFlag < 1){
-            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鍟嗘埛璇佷欢鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(businessStoreCerdentials));
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鍟嗗搧鐓х墖鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(businessShopPhoto));
         }
     }
 
     /**
-     * 鏌ヨ鍟嗘埛淇℃伅
+     * 淇濆瓨鍟嗗搧璇佷欢淇℃伅
+     * @param businessShopPreferential 鍟嗗搧璇佷欢
+     * @throws DAOException
+     */
+    @Override
+    public void saveBusinessShopPreferential(Map businessShopPreferential) throws DAOException {
+        businessShopPreferential.put("month", DateUtil.getCurrentMonth());
+        logger.debug("淇濆瓨鍟嗗搧浼樻儬淇℃伅 鍏ュ弬 businessShopPreferential : {}",businessShopPreferential);
+
+        int saveFlag = sqlSessionTemplate.insert("shopServiceDaoImpl.saveBusinessShopPreferential",businessShopPreferential);
+
+        if(saveFlag < 1){
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鍟嗗搧璇佷欢鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(businessShopPreferential));
+        }
+    }
+
+    /**
+     * 淇濆瓨 鍟嗗搧鎻忚堪淇℃伅
+     * @param businessShopDesc 鍟嗗搧 鎻忚堪淇℃伅
+     * @throws DAOException
+     */
+    @Override
+    public void saveBusinessShopDesc(Map businessShopDesc) throws DAOException {
+        businessShopDesc.put("month", DateUtil.getCurrentMonth());
+        logger.debug("淇濆瓨鍟嗗搧鎻忚堪淇℃伅 鍏ュ弬 businessShopDesc : {}",businessShopDesc);
+
+        int saveFlag = sqlSessionTemplate.insert("shopServiceDaoImpl.saveBusinessShopDesc",businessShopDesc);
+
+        if(saveFlag < 1){
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鍟嗗搧鎻忚堪鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(businessShopDesc));
+        }
+    }
+
+    /**
+     * 鏌ヨ鍟嗗搧淇℃伅
      * @param info bId 淇℃伅
-     * @return 鍟嗘埛淇℃伅
+     * @return 鍟嗗搧淇℃伅
      * @throws DAOException
      */
     @Override
-    public Map getBusinessStoreInfo(Map info) throws DAOException {
+    public Map getBusinessShopInfo(Map info) throws DAOException {
 
-        logger.debug("鏌ヨ鍟嗘埛淇℃伅 鍏ュ弬 info : {}",info);
+        logger.debug("鏌ヨ鍟嗗搧淇℃伅 鍏ュ弬 info : {}",info);
 
-        List<Map> businessStoreInfos = sqlSessionTemplate.selectList("storeServiceDaoImpl.getBusinessStoreInfo",info);
-        if(businessStoreInfos == null){
+        List<Map> businessShopInfos = sqlSessionTemplate.selectList("shopServiceDaoImpl.getBusinessShopInfo",info);
+        if(businessShopInfos == null){
             return null;
         }
-        if(businessStoreInfos.size() >1){
-            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"鏍规嵁鏉′欢鏌ヨ鏈夊鏉℃暟鎹�,鏁版嵁寮傚父锛岃妫�鏌ワ細businessStoreInfos锛�"+ JSONObject.toJSONString(info));
+        if(businessShopInfos.size() >1){
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"鏍规嵁鏉′欢鏌ヨ鏈夊鏉℃暟鎹�,鏁版嵁寮傚父锛岃妫�鏌ワ細businessShopInfos锛�"+ JSONObject.toJSONString(info));
         }
 
-        return businessStoreInfos.get(0);
+        return businessShopInfos.get(0);
     }
 
     /**
-     * 鏌ヨ鍟嗘埛灞炴��
+     * 鏌ヨ鍟嗗搧灞炴��
      * @param info bId 淇℃伅
-     * @return 鍟嗘埛灞炴��
+     * @return 鍟嗗搧灞炴��
      * @throws DAOException
      */
     @Override
-    public List<Map> getBusinessStoreAttrs(Map info) throws DAOException {
-        logger.debug("鏌ヨ鍟嗘埛灞炴�т俊鎭� 鍏ュ弬 info : {}",info);
+    public List<Map> getBusinessShopAttrs(Map info) throws DAOException {
+        logger.debug("鏌ヨ鍟嗗搧灞炴�т俊鎭� 鍏ュ弬 info : {}",info);
 
-        List<Map> businessStoreAttrs = sqlSessionTemplate.selectList("storeServiceDaoImpl.getBusinessStoreAttrs",info);
+        List<Map> businessShopAttrs = sqlSessionTemplate.selectList("shopServiceDaoImpl.getBusinessShopAttrs",info);
 
-        return businessStoreAttrs;
+        return businessShopAttrs;
     }
 
     /**
-     * 鏌ヨ鍟嗘埛鐓х墖
+     * 鏌ヨ鍟嗗搧灞炴�у弬鏁颁俊鎭�
+     * @param info bId 淇℃伅
+     * @return 鍟嗗搧灞炴�у弬鏁颁俊鎭�
+     * @throws DAOException
+     */
+    @Override
+    public List<Map> getBusinessShopAttrParams(Map info) throws DAOException {
+        logger.debug("鏌ヨ鍟嗗搧灞炴�у弬鏁颁俊鎭� 鍏ュ弬 info : {}",info);
+
+        List<Map> businessShopAttrParams = sqlSessionTemplate.selectList("shopServiceDaoImpl.getBusinessShopAttrParams",info);
+
+        return businessShopAttrParams;
+    }
+
+    /**
+     * 鏌ヨ鍟嗗搧鐓х墖
      * @param info bId 淇℃伅
      * @return
      * @throws DAOException
      */
     @Override
-    public List<Map> getBusinessStorePhoto(Map info) throws DAOException {
-        logger.debug("鏌ヨ鍟嗘埛鐓х墖淇℃伅 鍏ュ弬 info : {}",info);
+    public List<Map> getBusinessShopPhoto(Map info) throws DAOException {
+        logger.debug("鏌ヨ鍟嗗搧鐓х墖淇℃伅 鍏ュ弬 info : {}",info);
 
-        List<Map> businessStorePhotos = sqlSessionTemplate.selectList("storeServiceDaoImpl.getBusinessStorePhoto",info);
+        List<Map> businessShopPhotos = sqlSessionTemplate.selectList("shopServiceDaoImpl.getBusinessShopPhoto",info);
 
-        return businessStorePhotos;
+        return businessShopPhotos;
     }
 
     /**
-     * 鏌ヨ鍟嗘埛璇佷欢
+     * 鏌ヨ鍟嗗搧浼樻儬
      * @param info bId 淇℃伅
      * @return
      * @throws DAOException
      */
     @Override
-    public List<Map> getBusinessStoreCerdentials(Map info) throws DAOException {
-        logger.debug("鏌ヨ鍟嗘埛璇佷欢淇℃伅 鍏ュ弬 info : {}",info);
+    public Map getBusinessShopPreferential(Map info) throws DAOException {
+        logger.debug("鏌ヨ鍟嗗搧璇佷欢淇℃伅 鍏ュ弬 info : {}",info);
 
-        List<Map> businessStoreCerdentialses = sqlSessionTemplate.selectList("storeServiceDaoImpl.getBusinessStoreCerdentials",info);
+        List<Map> businessShopPreferentiales = sqlSessionTemplate.selectList("shopServiceDaoImpl.getBusinessShopPreferential",info);
+        if(businessShopPreferentiales == null){
+            return null;
+        }
+        if(businessShopPreferentiales.size() >1){
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"鏍规嵁鏉′欢鏌ヨ鏈夊鏉℃暟鎹�,鏁版嵁寮傚父锛岃妫�鏌ワ細businessShopPreferentiales锛�"+ JSONObject.toJSONString(info));
+        }
 
-        return businessStoreCerdentialses;
+        return businessShopPreferentiales.get(0);
     }
 
     /**
-     * 淇濆瓨鍟嗘埛淇℃伅 鍒� instance
+     * 鏌ヨ鍟嗗搧鎻忚堪
+     * @param info bId 淇℃伅
+     * @return
+     * @throws DAOException
+     */
+    @Override
+    public Map getBusinessShopDesc(Map info) throws DAOException {
+        logger.debug("鏌ヨ鍟嗗搧璇佷欢淇℃伅 鍏ュ弬 info : {}",info);
+
+        List<Map> businessShopDesces = sqlSessionTemplate.selectList("shopServiceDaoImpl.getBusinessShopDesc",info);
+        if(businessShopDesces == null){
+            return null;
+        }
+        if(businessShopDesces.size() >1){
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"鏍规嵁鏉′欢鏌ヨ鏈夊鏉℃暟鎹�,鏁版嵁寮傚父锛岃妫�鏌ワ細businessShopDesces锛�"+ JSONObject.toJSONString(info));
+        }
+
+        return businessShopDesces.get(0);
+    }
+
+
+    /**
+     * 淇濆瓨鍟嗗搧淇℃伅 鍒� instance
      * @param info   bId 淇℃伅
      * @throws DAOException
      */
     @Override
-    public void saveStoreInfoInstance(Map info) throws DAOException {
-        logger.debug("淇濆瓨鍟嗘埛淇℃伅Instance 鍏ュ弬 info : {}",info);
+    public void saveShopInfoInstance(Map info) throws DAOException {
+        logger.debug("淇濆瓨鍟嗗搧淇℃伅Instance 鍏ュ弬 info : {}",info);
 
-        int saveFlag = sqlSessionTemplate.insert("storeServiceDaoImpl.saveStoreInfoInstance",info);
+        int saveFlag = sqlSessionTemplate.insert("shopServiceDaoImpl.saveShopInfoInstance",info);
 
         if(saveFlag < 1){
-            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鍟嗘埛淇℃伅Instance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鍟嗗搧淇℃伅Instance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
         }
     }
 
     @Override
-    public void saveStoreAttrsInstance(Map info) throws DAOException {
-        logger.debug("淇濆瓨鍟嗘埛灞炴�т俊鎭疘nstance 鍏ュ弬 info : {}",info);
+    public void saveShopAttrsInstance(Map info) throws DAOException {
+        logger.debug("淇濆瓨鍟嗗搧灞炴�т俊鎭疘nstance 鍏ュ弬 info : {}",info);
 
-        int saveFlag = sqlSessionTemplate.insert("storeServiceDaoImpl.saveStoreAttrsInstance",info);
+        int saveFlag = sqlSessionTemplate.insert("shopServiceDaoImpl.saveShopAttrsInstance",info);
 
         if(saveFlag < 1){
-            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鍟嗘埛灞炴�т俊鎭疘nstance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
-        }
-    }
-
-    @Override
-    public void saveStorePhotoInstance(Map info) throws DAOException {
-        logger.debug("淇濆瓨鍟嗘埛鐓х墖淇℃伅Instance 鍏ュ弬 info : {}",info);
-
-        int saveFlag = sqlSessionTemplate.insert("storeServiceDaoImpl.saveStorePhotoInstance",info);
-
-        if(saveFlag < 1){
-            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鍟嗘埛鐓х墖淇℃伅Instance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
-        }
-    }
-
-    @Override
-    public void saveStoreCerdentialsInstance(Map info) throws DAOException {
-        logger.debug("淇濆瓨鍟嗘埛璇佷欢淇℃伅Instance 鍏ュ弬 info : {}",info);
-
-        int saveFlag = sqlSessionTemplate.insert("storeServiceDaoImpl.saveStoreCerdentialsInstance",info);
-
-        if(saveFlag < 1){
-            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鍟嗘埛璇佷欢淇℃伅Instance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鍟嗗搧灞炴�т俊鎭疘nstance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
         }
     }
 
     /**
-     * 鏌ヨ鍟嗘埛淇℃伅锛坕nstance锛�
+     * 淇濆瓨 鍟嗗搧灞炴�� 鍙傛暟 鑷� business
+     * @param info b_id
+     * @throws DAOException
+     */
+    @Override
+    public void saveShopAttrParamsInstance(Map info) throws DAOException {
+        logger.debug("淇濆瓨鍟嗗搧灞炴�у弬鏁颁俊鎭疘nstance 鍏ュ弬 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.insert("shopServiceDaoImpl.saveShopAttrParamsInstance",info);
+
+        if(saveFlag < 1){
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鍟嗗搧灞炴�у弬鏁颁俊鎭疘nstance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
+        }
+    }
+
+    @Override
+    public void saveShopPhotoInstance(Map info) throws DAOException {
+        logger.debug("淇濆瓨鍟嗗搧鐓х墖淇℃伅Instance 鍏ュ弬 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.insert("shopServiceDaoImpl.saveShopPhotoInstance",info);
+
+        if(saveFlag < 1){
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鍟嗗搧鐓х墖淇℃伅Instance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
+        }
+    }
+
+    @Override
+    public void saveShopPreferentialInstance(Map info) throws DAOException {
+        logger.debug("淇濆瓨鍟嗗搧璇佷欢淇℃伅Instance 鍏ュ弬 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.insert("shopServiceDaoImpl.saveShopPreferentialInstance",info);
+
+        if(saveFlag < 1){
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鍟嗗搧璇佷欢淇℃伅Instance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
+        }
+    }
+
+    @Override
+    public void saveShopDescInstance(Map info) throws DAOException {
+        logger.debug("淇濆瓨鍟嗗搧鎻忚堪淇℃伅Instance 鍏ュ弬 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.insert("shopServiceDaoImpl.saveShopDescInstance",info);
+
+        if(saveFlag < 1){
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鍟嗗搧璇佷欢淇℃伅Instance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
+        }
+    }
+
+    /**
+     * 鏌ヨ鍟嗗搧淇℃伅锛坕nstance锛�
      * @param info bId 淇℃伅
      * @return
      * @throws DAOException
      */
     @Override
-    public Map getStoreInfo(Map info) throws DAOException {
-        logger.debug("鏌ヨ鍟嗘埛淇℃伅 鍏ュ弬 info : {}",info);
+    public Map getShopInfo(Map info) throws DAOException {
+        logger.debug("鏌ヨ鍟嗗搧淇℃伅 鍏ュ弬 info : {}",info);
 
-        List<Map> businessStoreInfos = sqlSessionTemplate.selectList("storeServiceDaoImpl.getStoreInfo",info);
-        if(businessStoreInfos == null || businessStoreInfos.size() == 0){
+        List<Map> businessShopInfos = sqlSessionTemplate.selectList("shopServiceDaoImpl.getShopInfo",info);
+        if(businessShopInfos == null || businessShopInfos.size() == 0){
             return null;
         }
-        if(businessStoreInfos.size() >1){
-            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"鏍规嵁鏉′欢鏌ヨ鏈夊鏉℃暟鎹�,鏁版嵁寮傚父锛岃妫�鏌ワ細getStoreInfo锛�"+ JSONObject.toJSONString(info));
+        if(businessShopInfos.size() >1){
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"鏍规嵁鏉′欢鏌ヨ鏈夊鏉℃暟鎹�,鏁版嵁寮傚父锛岃妫�鏌ワ細getShopInfo锛�"+ JSONObject.toJSONString(info));
         }
 
-        return businessStoreInfos.get(0);
+        return businessShopInfos.get(0);
     }
 
     /**
-     * 鍟嗘埛灞炴�ф煡璇紙instance锛�
+     * 鍟嗗搧灞炴�ф煡璇紙instance锛�
      * @param info bId 淇℃伅
      * @return
      * @throws DAOException
      */
     @Override
-    public List<Map> getStoreAttrs(Map info) throws DAOException {
-        logger.debug("鏌ヨ鍟嗘埛灞炴�т俊鎭� 鍏ュ弬 info : {}",info);
+    public List<Map> getShopAttrs(Map info) throws DAOException {
+        logger.debug("鏌ヨ鍟嗗搧灞炴�т俊鎭� 鍏ュ弬 info : {}",info);
 
-        List<Map> storeAttrs = sqlSessionTemplate.selectList("storeServiceDaoImpl.getStoreAttrs",info);
+        List<Map> shopAttrs = sqlSessionTemplate.selectList("shopServiceDaoImpl.getShopAttrs",info);
 
-        return storeAttrs;
+        return shopAttrs;
     }
 
     /**
-     * 鍟嗘埛鐓х墖鏌ヨ锛坕nstance锛�
+     * 鍟嗗搧灞炴�у弬鏁版煡璇紙instance锛�
      * @param info bId 淇℃伅
      * @return
      * @throws DAOException
      */
     @Override
-    public List<Map> getStorePhoto(Map info) throws DAOException {
-        logger.debug("鏌ヨ鍟嗘埛鐓х墖淇℃伅 鍏ュ弬 info : {}",info);
+    public List<Map> getShopAttrParams(Map info) throws DAOException {
+        logger.debug("鏌ヨ鍟嗗搧灞炴�у弬鏁颁俊鎭� 鍏ュ弬 info : {}",info);
 
-        List<Map> storePhotos = sqlSessionTemplate.selectList("storeServiceDaoImpl.getStorePhoto",info);
+        List<Map> shopAttrParams = sqlSessionTemplate.selectList("shopServiceDaoImpl.getShopAttrParams",info);
 
-        return storePhotos;
+        return shopAttrParams;
     }
 
     /**
-     * 鍟嗘埛璇佷欢鏌ヨ锛坕nstance锛�
+     * 鍟嗗搧鐓х墖鏌ヨ锛坕nstance锛�
      * @param info bId 淇℃伅
      * @return
      * @throws DAOException
      */
     @Override
-    public List<Map> getStoreCerdentials(Map info) throws DAOException {
-        logger.debug("鏌ヨ鍟嗘埛璇佷欢淇℃伅 鍏ュ弬 info : {}",info);
+    public List<Map> getShopPhoto(Map info) throws DAOException {
+        logger.debug("鏌ヨ鍟嗗搧鐓х墖淇℃伅 鍏ュ弬 info : {}",info);
 
-        List<Map> storeCerdentialses = sqlSessionTemplate.selectList("storeServiceDaoImpl.getStoreCerdentials",info);
+        List<Map> shopPhotos = sqlSessionTemplate.selectList("shopServiceDaoImpl.getShopPhoto",info);
 
-        return storeCerdentialses;
+        return shopPhotos;
     }
 
     /**
-     * 淇敼鍟嗘埛淇℃伅
+     * 鍟嗗搧浼樻儬鏌ヨ锛坕nstance锛�
+     * @param info bId 淇℃伅
+     * @return
+     * @throws DAOException
+     */
+    @Override
+    public Map getShopPreferential(Map info) throws DAOException {
+        logger.debug("鏌ヨ鍟嗗搧璇佷欢淇℃伅 鍏ュ弬 info : {}",info);
+
+        List<Map> shopPreferentiales = sqlSessionTemplate.selectList("shopServiceDaoImpl.getShopPreferential",info);
+        if(shopPreferentiales == null || shopPreferentiales.size() == 0){
+            return null;
+        }
+        if(shopPreferentiales.size() >1){
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"鏍规嵁鏉′欢鏌ヨ鏈夊鏉℃暟鎹�,鏁版嵁寮傚父锛岃妫�鏌ワ細getShopInfo锛�"+ JSONObject.toJSONString(info));
+        }
+        return shopPreferentiales.get(0);
+    }
+
+    /**
+     * 鍟嗗搧鎻忚堪鏌ヨ锛坕nstance锛�
+     * @param info bId 淇℃伅
+     * @return
+     * @throws DAOException
+     */
+    @Override
+    public Map getShopDesc(Map info) throws DAOException {
+        logger.debug("鏌ヨ鍟嗗搧璇佷欢淇℃伅 鍏ュ弬 info : {}",info);
+
+        List<Map> shopDesces = sqlSessionTemplate.selectList("shopServiceDaoImpl.getShopDesc",info);
+        if(shopDesces == null || shopDesces.size() == 0){
+            return null;
+        }
+        if(shopDesces.size() >1){
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"鏍规嵁鏉′欢鏌ヨ鏈夊鏉℃暟鎹�,鏁版嵁寮傚父锛岃妫�鏌ワ細getShopInfo锛�"+ JSONObject.toJSONString(info));
+        }
+        return shopDesces.get(0);
+    }
+
+
+    /**
+     * 淇敼鍟嗗搧淇℃伅
      * @param info 淇敼淇℃伅
      * @throws DAOException
      */
     @Override
-    public void updateStoreInfoInstance(Map info) throws DAOException {
-        logger.debug("淇敼鍟嗘埛淇℃伅Instance 鍏ュ弬 info : {}",info);
+    public void updateShopInfoInstance(Map info) throws DAOException {
+        logger.debug("淇敼鍟嗗搧淇℃伅Instance 鍏ュ弬 info : {}",info);
 
-        int saveFlag = sqlSessionTemplate.update("storeServiceDaoImpl.updateStoreInfoInstance",info);
+        int saveFlag = sqlSessionTemplate.update("shopServiceDaoImpl.updateShopInfoInstance",info);
 
         if(saveFlag < 1){
-            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇敼鍟嗘埛淇℃伅Instance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇敼鍟嗗搧淇℃伅Instance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
         }
     }
 
     /**
-     * 淇敼鍟嗘埛灞炴�т俊鎭紙instance锛�
+     * 淇敼鍟嗗搧灞炴�т俊鎭紙instance锛�
      * @param info 淇敼淇℃伅
      * @throws DAOException
      */
     @Override
-    public void updateStoreAttrInstance(Map info) throws DAOException {
-        logger.debug("淇敼鍟嗘埛灞炴�т俊鎭疘nstance 鍏ュ弬 info : {}",info);
+    public void updateShopAttrInstance(Map info) throws DAOException {
+        logger.debug("淇敼鍟嗗搧灞炴�т俊鎭疘nstance 鍏ュ弬 info : {}",info);
 
-        int saveFlag = sqlSessionTemplate.update("storeServiceDaoImpl.updateStoreAttrInstance",info);
+        int saveFlag = sqlSessionTemplate.update("shopServiceDaoImpl.updateShopAttrInstance",info);
 
         if(saveFlag < 1){
-            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇敼鍟嗘埛灞炴�т俊鎭疘nstance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇敼鍟嗗搧灞炴�т俊鎭疘nstance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
         }
     }
 
     /**
-     * 淇敼 鍟嗘埛鐓х墖淇℃伅
+     * 淇敼鍟嗗搧灞炴�у弬鏁帮紙instance锛�
      * @param info 淇敼淇℃伅
      * @throws DAOException
      */
     @Override
-    public void updateStorePhotoInstance(Map info) throws DAOException {
-        logger.debug("淇敼鍟嗘埛鐓х墖淇℃伅Instance 鍏ュ弬 info : {}",info);
+    public void updateShopAttrParamInstance(Map info) throws DAOException {
+        logger.debug("淇敼鍟嗗搧灞炴�у弬鏁颁俊鎭疘nstance 鍏ュ弬 info : {}",info);
 
-        int saveFlag = sqlSessionTemplate.update("storeServiceDaoImpl.updateStorePhotoInstance",info);
+        int saveFlag = sqlSessionTemplate.update("shopServiceDaoImpl.updateShopAttrParamInstance",info);
 
         if(saveFlag < 1){
-            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇敼鍟嗘埛鐓х墖淇℃伅Instance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇敼鍟嗗搧灞炴�у弬鏁颁俊鎭疘nstance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
         }
     }
 
     /**
-     * 淇敼鍟嗘埛璇佷欢淇℃伅
+     * 淇敼 鍟嗗搧鐓х墖淇℃伅
      * @param info 淇敼淇℃伅
      * @throws DAOException
      */
     @Override
-    public void updateStoreCerdentailsInstance(Map info) throws DAOException {
-        logger.debug("淇敼鍟嗘埛璇佷欢淇℃伅Instance 鍏ュ弬 info : {}",info);
+    public void updateShopPhotoInstance(Map info) throws DAOException {
+        logger.debug("淇敼鍟嗗搧鐓х墖淇℃伅Instance 鍏ュ弬 info : {}",info);
 
-        int saveFlag = sqlSessionTemplate.update("storeServiceDaoImpl.updateStoreCerdentailsInstance",info);
+        int saveFlag = sqlSessionTemplate.update("shopServiceDaoImpl.updateShopPhotoInstance",info);
 
         if(saveFlag < 1){
-            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇敼鍟嗘埛璇佷欢淇℃伅Instance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇敼鍟嗗搧鐓х墖淇℃伅Instance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
+        }
+    }
+
+    /**
+     * 淇敼鍟嗗搧璇佷欢淇℃伅
+     * @param info 淇敼淇℃伅
+     * @throws DAOException
+     */
+    @Override
+    public void updateShopPreferentialInstance(Map info) throws DAOException {
+        logger.debug("淇敼鍟嗗搧璇佷欢淇℃伅Instance 鍏ュ弬 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.update("shopServiceDaoImpl.updateShopPreferentialInstance",info);
+
+        if(saveFlag < 1){
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇敼鍟嗗搧璇佷欢淇℃伅Instance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
+        }
+    }
+
+    /**
+     * 淇敼鍟嗗搧鎻忚堪淇℃伅
+     * @param info 淇敼淇℃伅
+     * @throws DAOException
+     */
+    @Override
+    public void updateShopDescInstance(Map info) throws DAOException {
+        logger.debug("淇敼鍟嗗搧鎻忚堪淇℃伅Instance 鍏ュ弬 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.update("shopServiceDaoImpl.updateShopDescInstance",info);
+
+        if(saveFlag < 1){
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇敼鍟嗗搧鎻忚堪淇℃伅Instance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
         }
     }
 }

--
Gitblit v1.8.0