insert into goods_shop_relevancy (shop_id, goods_id, status, create_time, sales, inventory) values
(#{item.shopId}, #{item.goodsId}, 0, #{date}, 0, 999)
delete
from goods_shop_relevancy
where shop_id = #{shopId}
and goods_id = #{goodsId}
delete
from goods
where shop_id = #{shopId}
and goods_id = #{goodsId}
update goods_shop
set activity_id =null
where shop_id = #{shopId}
update goods_shop
set shop_sales = shop_sales + #{goodsNum}
set shop_sales = shop_sales - #{goodsNum}
where shop_id = #{shopId}
update goods_shop
set cash_deposit = cash_deposit + #{money}
where shop_id = #{shopId}
update goods_shop set
cash_deposit = cash_deposit+#{money}
cash_deposit = cash_deposit-#{money}
where shop_id = #{shopId}
update goods_shop_relevancy
set status = #{status}
where shop_id = #{shopId}
and goods_id = #{goodsId}
insert into goods_shop_relevancy (shop_id, goods_id, status, create_time, sales, inventory)
values (#{shopId}, #{goodsId}, #{status}, #{createTime}, #{sales}, #{inventory})
INSERT INTO goods_shop
shop_name,
user_id,
shop_type_id,
shop_lable,
detailed_address,
shop_lng,
shop_lat,
province,
city,
district,
access_number,
shop_notice,
shop_score,
shop_sales,
business_hours,
lock_hours,
shop_cover,
shop_banner,
create_time,
real_name,
identitycard_number,
phone,
business_license,
identitycard_pro,
identitycard_con,
audit_reason,
cash_deposit,
audit_time,
status,
errand_money,
distribution_distance,
exempt_errand_flag,
exempt_min_money,
minimum_delivery,
putaway_flag,
auto_send_order,
banned_flag,
sn_code,
`value`,
facility,
auto_accept_order
#{shopName},
#{userId},
#{shopTypeId},
#{shopLable},
#{detailedAddress},
#{shopLng},
#{shopLat},
#{province},
#{city},
#{district},
#{accessNumber},
#{shopNotice},
#{shopScore},
#{shopSales},
#{businessHours},
#{lockHours},
#{shopCover},
#{shopBanner},
#{createTime},
#{realName},
#{identitycardNumber},
#{phone},
#{businessLicense},
#{identitycardPro},
#{identitycardCon},
#{auditReason},
#{cashDeposit},
#{auditTime},
#{status},
#{errandMoney},
#{distributionDistance},
#{exemptErrandFlag},
#{exemptMinMoney},
#{minimumDelivery},
#{putawayFlag},
#{autoSendOrder},
#{bannedFlag},
#{snCode},
#{value},
#{facility},
#{autoAcceptOrder}