`img_id`,`shop_id`,`img_url`,`status`,`seq`,`spu_id`,`img_type`,`create_time`,`update_time` insert into index_img (`shop_id`,`img_url`,`status`,`seq`,`spu_id`,`img_type`) values (#{indexImg.shopId},#{indexImg.imgUrl},#{indexImg.status},#{indexImg.seq},#{indexImg.spuId},#{indexImg.imgType}); update index_img set `spu_id` = #{indexImg.spuId}, `img_url` = #{indexImg.imgUrl}, `status` = #{indexImg.status},`seq` = #{indexImg.seq},`img_type` = #{indexImg.imgType} where img_id = #{indexImg.imgId} and shop_id = #{indexImg.shopId} update index_img set `spu_id` = null where `spu_id` = #{spuId} delete from index_img where img_id = #{imgId} and shop_id = #{shopId}