INSERT INTO svc_shop(
shop_id,
shop_name,
shop_summary,
shop_address,
shop_star,
shop_logo,
shop_template_id,
user_evaluate,
is_open,
open_date,
is_log_off,
is_certification,
gmt_create,
creator,
gmt_modified,
modifier,
is_delete
) VALUES(
#{shopId},
#{shopName},
#{shopSummary},
#{shopAddress},
#{shopStar},
#{shopLogo},
#{shopTemplateId},
#{userEvaluate},
#{isOpen},
#{openDate},
#{isLogOff},
#{isCertification},
#{gmtCreate},
#{creator},
#{gmtModified},
#{modifier},
#{isDelete}
)
UPDATE
svc_shop
SET
gmt_modified = #{gmtModified},
modifier = #{modifier},
is_delete = 1
WHERE
shop_id IN
#{shopIds[${index}]}
DELETE FROM
svc_shop
WHERE
shop_id IN
#{shopIds[${index}]}
UPDATE
svc_shop
SET
shop_id = #{shopId},
shop_name = #{shopName},
shop_summary = #{shopSummary},
shop_address = #{shopAddress},
shop_star = #{shopStar},
shop_logo = #{shopLogo},
shop_template_id = #{shopTemplateId},
user_evaluate = #{userEvaluate},
is_open = #{isOpen},
open_date = #{openDate},
is_log_off = #{isLogOff},
gmt_modified = #{gmtModified},
modifier = #{modifier},
is_delete = #{isDelete}
WHERE
shop_id = #{shopId}