select carousel_id, c.merchant_id, carousel_iamges, c.create_time,c.update_time,dept_name from carousel c inner join sys_dept d on
c.merchant_id = d.dept_id
insert into carousel
merchant_id,carousel_iamges,create_time,update_time,#{merchantId},#{carouselIamges},#{createTime},#{updateTime},
update carousel
merchant_id = #{merchantId},carousel_iamges = #{carouselIamges},update_time = #{updateTime},
where carousel_id = #{carouselId}
delete from carousel where carousel_id = #{carouselId}
delete from carousel where carousel_id in
#{carouselId}