id,
dsp_id as dspId,
advertiser_id as advertiserId,
path,
height,
width,
rheight,
rwidth,
state,
memo,
updated
insert into t_dsp_banner(dsp_id,advertiser_id,path,height,width,rheight,rwidth,state,memo,updated) values
( #{item.dspId}, #{item.advertiserId}, #{item.path}, #{item.height}, #{item.width},
#{item.rheight}, #{item.rwidth}, 1, "", NOW() )
update t_dsp_banner set path = #{item.path},height = #{item.height},width = #{item.width},
rheight = #{item.rheight}, rwidth = #{item.rwidth}, state = #{item.state},
memo = #{item.memo},
updated = NOW()
where id=#{item.id} and dsp_id = #{item.dspId} and advertiser_id = #{item.advertiserId}
update t_dsp_banner a ,t_dsp_banner_operator b
set a.state=#{state},a.updated=#{updated},
b.checked=0,b.supdated=#{supdated}
where a.id = b.banner_id and a.id in
#{id}
update t_dsp_banner a ,t_dsp_banner_operator b
set a.state=#{state},a.updated=#{updated},a.memo=#{memo},
b.checked=3,b.supdated=#{supdated}
where a.id = b.banner_id and a.id in
#{id}
update t_dsp_banner a ,t_dsp_banner_operator b
set a.updated=#{updated},
b.checked=#{checked},b.supdated=#{supdated}
where a.id = b.banner_id and a.id =#{bannerId}
update t_dsp_banner a ,t_dsp_banner_operator b
set a.updated=#{updated},a.memo=#{memo},
b.checked=#{checked},b.supdated=#{supdated}
where a.id = b.banner_id and a.id =#{bannerId}
insert t_dsp_banner_operator set
operator_id = #{operatorId},
dsp_id = #{dspId},
banner_id = #{bannerId},
checked = 0,
supdated = #{supdated}