From 248395e467b6d072a6f9a2eba33d7f638142ee73 Mon Sep 17 00:00:00 2001
From: wuxw7 <wuxw7@asiainfo.com>
Date: 星期四, 05 七月 2018 01:07:18 +0800
Subject: [PATCH] 商户服务功能测试通过
---
StoreService/src/main/java/com/java110/store/dao/impl/StoreServiceDaoImpl.java | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/StoreService/src/main/java/com/java110/store/dao/impl/StoreServiceDaoImpl.java b/StoreService/src/main/java/com/java110/store/dao/impl/StoreServiceDaoImpl.java
index 5bd098b..7669bc6 100644
--- a/StoreService/src/main/java/com/java110/store/dao/impl/StoreServiceDaoImpl.java
+++ b/StoreService/src/main/java/com/java110/store/dao/impl/StoreServiceDaoImpl.java
@@ -3,6 +3,7 @@
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.core.base.dao.BaseServiceDao;
import com.java110.store.dao.IStoreServiceDao;
import org.slf4j.Logger;
@@ -30,6 +31,7 @@
*/
@Override
public void saveBusinessStoreInfo(Map businessStoreInfo) throws DAOException {
+ businessStoreInfo.put("month", DateUtil.getCurrentMonth());
// 鏌ヨbusiness_user 鏁版嵁鏄惁宸茬粡瀛樺湪
logger.debug("淇濆瓨鍟嗘埛淇℃伅 鍏ュ弬 businessStoreInfo : {}",businessStoreInfo);
int saveFlag = sqlSessionTemplate.insert("storeServiceDaoImpl.saveBusinessStoreInfo",businessStoreInfo);
@@ -46,6 +48,7 @@
*/
@Override
public void saveBusinessStoreAttr(Map businessStoreAttr) throws DAOException {
+ businessStoreAttr.put("month", DateUtil.getCurrentMonth());
// 鏌ヨbusiness_user 鏁版嵁鏄惁宸茬粡瀛樺湪
logger.debug("淇濆瓨鍟嗘埛灞炴�т俊鎭� 鍏ュ弬 businessStoreAttr : {}",businessStoreAttr);
@@ -63,7 +66,7 @@
*/
@Override
public void saveBusinessStorePhoto(Map businessStorePhoto) throws DAOException {
-
+ businessStorePhoto.put("month", DateUtil.getCurrentMonth());
logger.debug("淇濆瓨鍟嗘埛鐓х墖淇℃伅 鍏ュ弬 businessStorePhoto : {}",businessStorePhoto);
int saveFlag = sqlSessionTemplate.insert("storeServiceDaoImpl.saveBusinessStorePhoto",businessStorePhoto);
@@ -80,6 +83,7 @@
*/
@Override
public void saveBusinessStoreCerdentials(Map businessStoreCerdentials) throws DAOException {
+ businessStoreCerdentials.put("month", DateUtil.getCurrentMonth());
logger.debug("淇濆瓨鍟嗘埛璇佷欢淇℃伅 鍏ュ弬 businessStoreCerdentials : {}",businessStoreCerdentials);
int saveFlag = sqlSessionTemplate.insert("storeServiceDaoImpl.saveBusinessStoreCerdentials",businessStoreCerdentials);
@@ -216,7 +220,7 @@
logger.debug("鏌ヨ鍟嗘埛淇℃伅 鍏ュ弬 info : {}",info);
List<Map> businessStoreInfos = sqlSessionTemplate.selectList("storeServiceDaoImpl.getStoreInfo",info);
- if(businessStoreInfos == null){
+ if(businessStoreInfos == null || businessStoreInfos.size() == 0){
return null;
}
if(businessStoreInfos.size() >1){
--
Gitblit v1.8.0