From 8a2a463d46b3dce73015462c9f6a2a258dd25f5b Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期五, 25 二月 2022 11:40:11 +0800
Subject: [PATCH] 优化diamante

---
 service-acct/src/main/java/com/java110/acct/dao/impl/ShopVipAccountDetailServiceDaoImpl.java |   43 ++++++++++++++++++++-----------------------
 1 files changed, 20 insertions(+), 23 deletions(-)

diff --git a/service-acct/src/main/java/com/java110/acct/dao/impl/ShopVipAccountDetailServiceDaoImpl.java b/service-acct/src/main/java/com/java110/acct/dao/impl/ShopVipAccountDetailServiceDaoImpl.java
index 46c01c4..044df44 100644
--- a/service-acct/src/main/java/com/java110/acct/dao/impl/ShopVipAccountDetailServiceDaoImpl.java
+++ b/service-acct/src/main/java/com/java110/acct/dao/impl/ShopVipAccountDetailServiceDaoImpl.java
@@ -1,15 +1,13 @@
 package com.java110.acct.dao.impl;
 
 import com.alibaba.fastjson.JSONObject;
+import com.java110.acct.dao.IShopVipAccountDetailServiceDao;
+import com.java110.core.base.dao.BaseServiceDao;
 import com.java110.utils.constant.ResponseConstant;
 import com.java110.utils.exception.DAOException;
-import com.java110.utils.util.DateUtil;
-import com.java110.core.base.dao.BaseServiceDao;
-import com.java110.acct.dao.IShopVipAccountDetailServiceDao;
 import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+import com.java110.core.log.LoggerFactory;
 import org.springframework.stereotype.Service;
-import org.springframework.transaction.annotation.Transactional;
 
 import java.util.List;
 import java.util.Map;
@@ -25,37 +23,34 @@
     private static Logger logger = LoggerFactory.getLogger(ShopVipAccountDetailServiceDaoImpl.class);
 
 
-
-
-
     /**
      * 淇濆瓨浼氬憳璐︽埛浜ゆ槗淇℃伅 鍒� instance
-     * @param info   bId 淇℃伅
+     *
+     * @param info bId 淇℃伅
      * @throws DAOException DAO寮傚父
      */
     @Override
-    public void saveShopVipAccountDetailInfo(Map info) throws DAOException {
-        logger.debug("淇濆瓨浼氬憳璐︽埛浜ゆ槗淇℃伅Instance 鍏ュ弬 info : {}",info);
+    public int saveShopVipAccountDetailInfo(Map info) throws DAOException {
+        logger.debug("淇濆瓨浼氬憳璐︽埛浜ゆ槗淇℃伅Instance 鍏ュ弬 info : {}", info);
 
-        int saveFlag = sqlSessionTemplate.insert("shopVipAccountDetailServiceDaoImpl.saveShopVipAccountDetailInfo",info);
+        int saveFlag = sqlSessionTemplate.insert("shopVipAccountDetailServiceDaoImpl.saveShopVipAccountDetailInfo", info);
 
-        if(saveFlag < 1){
-            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨浼氬憳璐︽埛浜ゆ槗淇℃伅Instance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
-        }
+        return saveFlag;
     }
 
 
     /**
      * 鏌ヨ浼氬憳璐︽埛浜ゆ槗淇℃伅锛坕nstance锛�
+     *
      * @param info bId 淇℃伅
      * @return List<Map>
      * @throws DAOException DAO寮傚父
      */
     @Override
     public List<Map> getShopVipAccountDetailInfo(Map info) throws DAOException {
-        logger.debug("鏌ヨ浼氬憳璐︽埛浜ゆ槗淇℃伅 鍏ュ弬 info : {}",info);
+        logger.debug("鏌ヨ浼氬憳璐︽埛浜ゆ槗淇℃伅 鍏ュ弬 info : {}", info);
 
-        List<Map> businessShopVipAccountDetailInfos = sqlSessionTemplate.selectList("shopVipAccountDetailServiceDaoImpl.getShopVipAccountDetailInfo",info);
+        List<Map> businessShopVipAccountDetailInfos = sqlSessionTemplate.selectList("shopVipAccountDetailServiceDaoImpl.getShopVipAccountDetailInfo", info);
 
         return businessShopVipAccountDetailInfos;
     }
@@ -63,28 +58,30 @@
 
     /**
      * 淇敼浼氬憳璐︽埛浜ゆ槗淇℃伅
+     *
      * @param info 淇敼淇℃伅
      * @throws DAOException DAO寮傚父
      */
     @Override
     public void updateShopVipAccountDetailInfo(Map info) throws DAOException {
-        logger.debug("淇敼浼氬憳璐︽埛浜ゆ槗淇℃伅Instance 鍏ュ弬 info : {}",info);
+        logger.debug("淇敼浼氬憳璐︽埛浜ゆ槗淇℃伅Instance 鍏ュ弬 info : {}", info);
 
-        int saveFlag = sqlSessionTemplate.update("shopVipAccountDetailServiceDaoImpl.updateShopVipAccountDetailInfo",info);
+        int saveFlag = sqlSessionTemplate.update("shopVipAccountDetailServiceDaoImpl.updateShopVipAccountDetailInfo", info);
 
-        if(saveFlag < 1){
-            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇敼浼氬憳璐︽埛浜ゆ槗淇℃伅Instance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
+        if (saveFlag < 1) {
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "淇敼浼氬憳璐︽埛浜ゆ槗淇℃伅Instance鏁版嵁澶辫触锛�" + JSONObject.toJSONString(info));
         }
     }
 
-     /**
+    /**
      * 鏌ヨ浼氬憳璐︽埛浜ゆ槗鏁伴噺
+     *
      * @param info 浼氬憳璐︽埛浜ゆ槗淇℃伅
      * @return 浼氬憳璐︽埛浜ゆ槗鏁伴噺
      */
     @Override
     public int queryShopVipAccountDetailsCount(Map info) {
-        logger.debug("鏌ヨ浼氬憳璐︽埛浜ゆ槗鏁版嵁 鍏ュ弬 info : {}",info);
+        logger.debug("鏌ヨ浼氬憳璐︽埛浜ゆ槗鏁版嵁 鍏ュ弬 info : {}", info);
 
         List<Map> businessShopVipAccountDetailInfos = sqlSessionTemplate.selectList("shopVipAccountDetailServiceDaoImpl.queryShopVipAccountDetailsCount", info);
         if (businessShopVipAccountDetailInfos.size() < 1) {

--
Gitblit v1.8.0