a.id as id,
a.banner_template_id as bannerTemplateId,
a.order_id as orderId,
a.campaign_id as campaignId,
a.adgroup_id as adGroupId,
a.visit_address as visitAddress,
a.click_address as clickAddress,
a.impression_address as impressionAddress,
a.status as status1,
a.checked as checked,
a.updated as updated,
a.supdated as supdated,
a.memo as memo
b.id as bannerTemplateId,
b.agent_id as agentId,
b.advertiser_id as advertiserId,
b.agent_id as agentId,
b.name as name,
b.path as path,
b.path_small as pathSmall,
b.type as type,
b.width as width,
b.height as height,
b.status as status,
b.updated as updated
update t_banner a,t_banner_template b
set a.checked=#{checked},b.updated = #{updated},a.updated = #{updated}
,a.memo = #{memo}
where
a.banner_template_id = b.id and
a.id in
#{id}
update t_banner_operator
set supdated = #{supdated}
where banner_id in
#{id}
update t_banner
set checked = #{checked},
updated = #{updated}
where id in
#{bannerId}
insert into t_banner_operator
(operator_id,banner_id,checked,supdated)
values(#{operatorId},#{bannerId},#{operatorChecked},#{supdated})
update t_banner_operator
set operator_id=#{operatorId},checked = #{operatorChecked},supdated = #{supdated}
where banner_id = #{bannerId}