C.id, title, sub_title, user_id, create_time, content_brief, content_type, content_type2,
content_type3, url, thumb,thumb_min,video_url,video_time, status,isfirst,istop,iscreate, header_banner, up_count, comment_count, view_count
insert into cab_content
id,
title,
sub_title,
user_id,
create_time,
content_brief,
content_type,
content_type2,
content_type3,
url,
thumb,
thumb_min,
video_url,
video_time,
isfirst,
istop,
iscreate,
status,
header_banner,
up_count,
comment_count,
view_count,
#{id,jdbcType=BIGINT},
#{title,jdbcType=VARCHAR},
#{subTitle,jdbcType=VARCHAR},
#{userId,jdbcType=BIGINT},
#{createTime,jdbcType=TIMESTAMP},
#{contentBrief,jdbcType=VARCHAR},
#{contentType,jdbcType=VARCHAR},
#{contentType2,jdbcType=VARCHAR},
#{contentType3,jdbcType=VARCHAR},
#{url,jdbcType=VARCHAR},
#{thumb,jdbcType=VARCHAR},
#{thumbMin,jdbcType=VARCHAR},
#{videoUrl,jdbcType=VARCHAR},
#{videoTime,jdbcType=VARCHAR},
#{isFirst,jdbcType=INTEGER},
#{isTop,jdbcType=INTEGER},
#{isCreate,jdbcType=INTEGER},
#{status,jdbcType=INTEGER},
#{headerBanner,jdbcType=VARCHAR},
#{upCount,jdbcType=BIGINT},
#{commentCount,jdbcType=BIGINT},
#{viewCount,jdbcType=BIGINT},
update cab_content set up_count = up_count + 1 where id = #{id,jdbcType=BIGINT}
update cab_content set favorite_count = favorite_count + 1 where id = #{id,jdbcType=BIGINT}
update cab_content set up_count = up_count - 1 where id = #{id,jdbcType=BIGINT}
update cab_content set favorite_count = favorite_count - 1 where id = #{id,jdbcType=BIGINT}
update cab_content
title= #{title,jdbcType=VARCHAR},
sub_title =#{subTitle,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=VARCHAR},
content_brief =#{contentBrief,jdbcType=VARCHAR},
content_type = #{contentType,jdbcType=VARCHAR},
content_type2 =#{contentType2,jdbcType=VARCHAR},
content_type3 =#{contentType3,jdbcType=VARCHAR},
url = #{url,jdbcType=VARCHAR},
thumb = #{thumb,jdbcType=VARCHAR},
thumb_min =#{thumbMin,jdbcType=VARCHAR},
video_url =#{videoUrl,jdbcType=VARCHAR},
video_time =#{videoTime,jdbcType=VARCHAR},
isfirst = #{isFirst,jdbcType=INTEGER},
istop =#{isTop,jdbcType=INTEGER},
iscreate =#{isCreate,jdbcType=INTEGER},
status =#{status,jdbcType=INTEGER},
header_banner = #{headerBanner,jdbcType=VARCHAR},
up_count = #{upCount,jdbcType=BIGINT},
comment_count = #{commentCount,jdbcType=BIGINT},
view_count = #{viewCount,jdbcType=BIGINT},
where id=#{id,jdbcType=INTEGER}
update cab_content set istop = #{isVal,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}
update cab_content set isfirst = #{isVal,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}
update cab_content set video_time = #{time,jdbcType=VARCHAR} where id = #{id,jdbcType=BIGINT}
DELETE from cab_content where id= #{id,jdbcType=BIGINT}