t_zone.id as id,
operator_id ,
t_zone.name as name,
width,
height,
device,
position,
status,
updated,
supdated,
default_path,
default_url,
recheck,
default_path_small
insert into t_zone(operator_id,name,device,position,width,height,recheck,updated,supdated,default_path,default_url,default_path_small)
values(#{operator_id},#{name},#{device},#{position},#{width},#{height},#{recheck},#{updated},#{supdated},#{default_path},#{default_url},#{default_path_small})
update t_zone
set name=#{name},device=#{device},position=#{position}, width=#{width}, height=#{height},default_path=#{default_path},default_path_small=#{default_path_small},default_url=#{default_url},recheck=#{recheck},updated=#{updated},supdated=#{supdated}
where id = #{id}
update t_zone
set status = #{status},updated = #{updated}
where id in
#{id}
delete
from t_zone
id = #{id}