insert into channel_product (channelId,productId,product_name,price,img_url) values (#{channelId,jdbcType=INTEGER},#{productId,jdbcType=INTEGER}, #{productName,jdbcType=VARCHAR}, #{price,jdbcType=VARCHAR}, #{imgUrl,jdbcType=VARCHAR} ) update channel_product channel_price=#{channelPrice}, caption=#{caption}, promotion_price=#{promotionPrice}, end_time=#{endTime}, title=#{title}, where id = #{id} update channel_product set state=0 where channelId=#{id}