insert into shopcert (shopID, shopCertTypeID, `name`,
image, organization, effectDate,
loseEfficacyDate)
values (#{shopId}, #{shopCertTypeId}, #{name},
#{image}, #{organization}, #{effectDate},
#{loseEfficacyDate})
update user
set name = #{name}, userName = #{userName}, email = #{email}
where userID = #{userId}
update shop
sname = #{shortName},
contractEmail = #{contractEmail},
contractPhone = #{contractPhone},
linkMan = #{linkMan},
provinceID = #{provinceId}, cityID = #{cityId}, townID = #{townId},address = #{address},
socialCreditCode = #{socialCreditCode},
businessLicenseImage = #{businessLicense},
firstShopType = #{firstShopType},
secondShopType = #{secondShopType},
mainpro = #{mainProduct},
productDesc = #{mainProductDesc},
legalPerson = #{legalPerson},
registeredCapital = #{registeredCapital},
fax = #{faxNumber},
nature = #{companyNature},
turnover = #{turnover},
medicalPracticeLicenseImg1 = #{medicalPracticeLicense},
info = #{shopDesc},
businessScope = #{businessScope},
logo = #{logo},
website = #{website},
wxApplets = #{wxApplets},
wxOfficialAccount = #{wxOfficialAccount},
name = #{name}
where shopID = #{shopId}
DELETE FROM shopcert WHERE shopID = #{shopId}
update cm_shop_category
set sort = #{sort}
where id = #{id}
insert into cm_shop_category(shopId, category, sort, addTime, delFlag)
values (#{shopId}, #{category}, #{sort}, now(), 0)
insert into cm_shop_category_product(categoryId, productId, addTime, delFlag)
values (#{categoryId}, #{productId}, now(), 0)
update cm_shop_category
set category = #{category},
sort = #{sort}
where id = #{id}
update cm_shop_category_product
set delFlag = 1
where categoryId = #{categoryId}
and productId not in
#{productId}
update cm_shop_category
set delFlag = 1
where id = #{id}
update shopbanner
set sort = #{sort}
where shopBannerID = #{id}
INSERT INTO shopbanner (shopID,title,link,info,image, sort, addTime)
VALUES (#{shopId},#{title},#{link},#{info},#{image}, #{sort}, now())
UPDATE shopbanner
SET title = #{title}, link = #{link}, info = #{info}, image = #{image}, sort = #{sort}
WHERE shopBannerID = #{id}
DELETE FROM shopbanner WHERE shopBannerID = #{id}