insert into source(id, scenic_id, device_id, url, video_url, `type`, face_sample_id, pos_json)
values (#{id}, #{scenicId}, #{deviceId}, #{url}, #{videoUrl}, #{type}, #{faceSampleId}, #{posJson})
replace member_source(member_id, source_id, is_buy, type)
values (#{memberId}, #{sourceId}, #{isBuy}, #{type})
replace member_source(member_id, source_id, is_buy, type)
values
(#{item.memberId}, #{item.sourceId}, #{item.isBuy}, #{item.type})
update source
scenic_id = #{scenicId},
device_id = #{deviceId},
url = #{url},
video_url = #{videoUrl},
is_buy = #{isBuy},
`type` = #{type},
face_sample_id = #{faceSampleId},
pos_json = #{posJson},
where id = #{id}
delete from source where id = #{id}