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},
contractEmail1 = #{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},
name = #{name}
where shopID = #{shopId}
DELETE FROM shopcert WHERE shopID = #{shopId}
INSERT INTO shopbanner (shopID,title,link,info,image)
VALUES (#{shopId},#{title},#{link},#{info},#{image})
UPDATE shopbanner
SET title = #{title}, link = #{link}, info = #{info}, image = #{image}
WHERE shopBannerID = #{id}
DELETE FROM shopbanner WHERE shopBannerID = #{id}