insert into channel_product (channelId,productId,product_name,price,img_url,
channel_title,channel_img,channel_require,channel_explain,channel_price)
values (#{channelId,jdbcType=INTEGER},#{productId,jdbcType=INTEGER}, #{productName,jdbcType=VARCHAR},
#{price,jdbcType=VARCHAR}, #{imgUrl,jdbcType=VARCHAR},#{channelTitle},#{channelImg},#{channelRequire},
#{channelExplain},#{channelPrice}
)
update channel_product set channel_title = #{channelTitle} , channel_img =#{channelImg} ,
channel_require =#{channelRequire} , channel_explain=#{channelExplain}
where id =#{id}
update channel_product
img_url=#{imgUrl},
channel_price=#{channelPrice},
caption=#{caption},
promotion_price=#{promotionPrice},
end_time=#{endTime},
title=#{title},
where id = #{id}
update channel_product set open_address=#{openAddress} where id=#{id}
update channel_product set state=0 where channelId=#{id}