From de0b5d31b667956441c9c3e44bf24e7e55a67b98 Mon Sep 17 00:00:00 2001
From: wuxw7 <wuxw7@asiainfo.com>
Date: 星期日, 08 七月 2018 17:00:49 +0800
Subject: [PATCH] 商品服务 购买 商品目录 开发完成待测试
---
java110-config/src/main/resources/mapper/shop/ShopServiceDaoImplMapper.xml | 94 +++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 94 insertions(+), 0 deletions(-)
diff --git a/java110-config/src/main/resources/mapper/shop/ShopServiceDaoImplMapper.xml b/java110-config/src/main/resources/mapper/shop/ShopServiceDaoImplMapper.xml
index e3c31f7..f4beb29 100644
--- a/java110-config/src/main/resources/mapper/shop/ShopServiceDaoImplMapper.xml
+++ b/java110-config/src/main/resources/mapper/shop/ShopServiceDaoImplMapper.xml
@@ -41,6 +41,7 @@
values(#{catalogId},#{bId},#{storeId},#{name},#{level},#{parentCatalogId},#{month},#{operate})
</insert>
+
<!-- 鏌ヨ鍟嗗搧淇℃伅锛圔usiness锛� add by wuxw 2018-07-03 -->
<select id="getBusinessShopInfo" parameterType="Map" resultType="Map">
select s.shop_id,s.b_id,s.catalog_id,s.store_id,s.name,s.hot_buy,s.sale_price,s.open_shop_count,s.shop_count,s.start_date,s.end_date,s.operate
@@ -208,6 +209,18 @@
where sc.operate = 'ADD' and sc.b_id=#{bId}
</insert>
+ <!-- 鍟嗗搧璐拱璁板綍 淇濆瓨 add by wuxw 2018-07-08 -->
+ <insert id="saveBuyShopInstance" parameterType="Map">
+ insert into s_buy_shop(buy_id,b_id,shop_id,buy_count,month,status_cd)
+ values(#{buyId},#{bId},#{shopId},#{buyCount},#{month},'0')
+ </insert>
+
+ <!-- 淇濆瓨璐拱璁板綍灞炴�� add by wuxw 2018-07-08 -->
+ <insert id="saveBuyShopAttrInstance" parameterType="Map">
+ insert into s_buy_shop_attr(buy_id,b_id,attr_id,spec_cd,value,month,status_cd)
+ values(#{buyId},#{bId},#{attrId},#{specCd},#{value},#{month},'0')
+ </insert>
+
<!-- 鏌ヨ鍟嗗搧淇℃伅 add by wuxw 2018-07-03 -->
<select id="getShopInfo" parameterType="Map" resultType="Map">
select s.shop_id,s.b_id,s.catalog_id,s.store_id,s.name,s.hot_buy,s.sale_price,s.open_shop_count,s.shop_count,s.start_date,s.end_date,s.status_cd
@@ -326,6 +339,42 @@
</if>
<if test="catalogId != null and catalogId !=''">
and sd.catalog_id = #{catalogId}
+ </if>
+ </select>
+
+ <!-- 鏌ヨ鍟嗗搧鐩綍 instance add by wuxw 2018-07-08 -->
+ <select id="getBuyShop" parameterType="Map" resultType="Map">
+ select bs.buy_id,bs.b_id,bs.shop_id,bs.buy_count,bs.month,bs.status_cd
+ from s_buy_shop bs
+ where 1=1
+ <if test="statusCd != null and statusCd != ''">
+ and bs.status_cd = #{statusCd}
+ </if>
+ <if test="bId != null and bId !=''">
+ and bs.b_id = #{bId}
+ </if>
+ <if test="buyId != null and buyId !=''">
+ and bs.buy_id = #{buyId}
+ </if>
+ </select>
+
+ <!-- 鏌ヨ璐拱璁板綍灞炴�т俊鎭� add by wuxw 2018-07-03 -->
+ <select id="getBuyShopAttrs" parameterType="Map" resultType="Map">
+ select bs.b_id,bs.attr_id,bs.buy_id,bs.spec_cd,bs.value,bs.status_cd
+ from s_buy_shop_attr bs
+ where
+ 1=1
+ <if test="statusCd != null and statusCd != ''">
+ and bs.status_cd = #{statusCd}
+ </if>
+ <if test="bId != null and bId !=''">
+ and bs.b_id = #{bId}
+ </if>
+ <if test="buyId != null and buyId !=''">
+ and bs.buy_id = #{buyId}
+ </if>
+ <if test="attrId != null and attrId != ''">
+ and bs.attr_id = #{attrId}
</if>
</select>
@@ -524,4 +573,49 @@
and sc.catalog_id = #{catalogId}
</if>
</update>
+
+ <!-- 淇敼 鍟嗗搧璐拱淇℃伅 add by wuxw 2018-07-08 -->
+ <update id="updateBuyShopInstance" parameterType="Map">
+ update s_buy_shop bs set bs.status_cd = #{statusCd}
+ <if test="newBId != null and newBId != ''">
+ ,bs.b_id = #{newBId}
+ </if>
+ <if test="buyCount != null and buyCount != ''">
+ ,bs.buy_count = #{buy_count}
+ </if>
+ where 1=1
+ <if test="bId != null and bId !=''">
+ and bs.b_id = #{bId}
+ </if>
+ <if test="shopId != null and shopId !=''">
+ and bs.shop_id = #{shopId}
+ </if>
+ <if test="buyId != null and buyId !=''">
+ and bs.buy_id = #{buyId}
+ </if>
+ </update>
+
+ <!-- 淇敼鍟嗗搧灞炴�т俊鎭� add by wuxw 2018-07-03 -->
+ <update id="updateBuyShopAttrInstance" parameterType="Map">
+ update s_buy_shop_attr bsa set bsa.status_cd = #{statusCd}
+ <if test="newBId != null and newBId != ''">
+ ,bsa.b_id = #{newBId}
+ </if>
+ <if test="value != null and value != ''">
+ ,bsa.value = #{value}
+ </if>
+ where 1=1
+ <if test="bId != null and bId !=''">
+ and bsa.b_id = #{bId}
+ </if>
+ <if test="buyId != null and buyId !=''">
+ and bsa.buy_id = #{buyId}
+ </if>
+ <if test="specCd != null and specCd !=''">
+ and bsa.spec_cd = #{specCd}
+ </if>
+ <if test="attrId != null and attrId !=''">
+ and bsa.attr_id = #{attrId}
+ </if>
+ </update>
</mapper>
--
Gitblit v1.8.0