From b0a1961879d31f7c17efc704ceed604adffba6f9 Mon Sep 17 00:00:00 2001
From: 曾成 <121184950@qq.com>
Date: 星期日, 26 四月 2020 23:09:49 +0800
Subject: [PATCH] æ商户ä¿信息修改åŠ接口测试完成

---
 java110-db/src/main/resources/mapper/store/StoreAttrServiceDaoImplMapper.xml |   19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/store/StoreAttrServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/store/StoreAttrServiceDaoImplMapper.xml
index cd7d38b..04f3efe 100644
--- a/java110-db/src/main/resources/mapper/store/StoreAttrServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/store/StoreAttrServiceDaoImplMapper.xml
@@ -7,15 +7,21 @@
     <!-- 淇濆瓨鍟嗘埛灞炴�т俊鎭� add by wuxw 2018-07-03 -->
     <insert id="saveBusinessStoreAttrInfo" parameterType="Map">
         insert into
-            business_store_attr(attr_id,operate,create_time,spec_cd,store_id,b_id,value)
-            values (#{attrId},#{operate},#{createTime},#{specCd},#{storeId},#{bId},#{value})
+            business_store_attr(attr_id,operate,spec_cd,store_id,b_id,value,month)
+            values (#{attrId},#{operate},#{specCd},#{storeId},#{bId},#{value},#{month})
        </insert>
 
 
     <!-- 鏌ヨ鍟嗘埛灞炴�т俊鎭紙Business锛� add by wuxw 2018-07-03 -->
     <select id="getBusinessStoreAttrInfo" parameterType="Map" resultType="Map">
-        select t.attr_id,t.attr_id attrId,t.operate,t.create_time,t.create_time createTime,t.spec_cd,t.spec_cd
-        specCd,t.store_id,t.store_id storeId,t.bId,t.value
+        select
+            t.attr_id,t.attr_id attrId,
+            t.operate,
+            t.create_time,t.create_time createTime,
+            t.spec_cd,t.spec_cd specCd,
+            t.store_id,t.store_id storeId,
+            t.b_id,t.b_id bId,
+            t.value
         from business_store_attr t
         where 1 =1
         <if test="attrId !=null and attrId != ''">
@@ -34,7 +40,7 @@
             and t.store_id= #{storeId}
         </if>
         <if test="bId !=null and bId != ''">
-            and t.bId= #{bId}
+            and t.b_id= #{bId}
         </if>
         <if test="value !=null and value != ''">
             and t.value= #{value}
@@ -117,9 +123,6 @@
         update s_store_attr t set t.status_cd = #{statusCd}
         <if test="newBId != null and newBId != ''">
             ,t.b_id = #{newBId}
-        </if>
-        <if test="createTime !=null and createTime != ''">
-            , t.create_time= #{createTime}
         </if>
         <if test="specCd !=null and specCd != ''">
             , t.spec_cd= #{specCd}

--
Gitblit v1.8.0