id, type, user_id, isread, title, content, create_time
delete from cab_mymessage
where id = #{id,jdbcType=INTEGER}
insert into cab_mymessage (id, type, user_id,
isread, title, content,
create_time)
values (#{id,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{userId,jdbcType=VARCHAR},
#{isread,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP})
insert into cab_mymessage
id,
type,
user_id,
isread,
title,
content,
create_time,
#{id,jdbcType=INTEGER},
#{type,jdbcType=INTEGER},
#{userId,jdbcType=VARCHAR},
#{isread,jdbcType=INTEGER},
#{title,jdbcType=VARCHAR},
#{content,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
update cab_mymessage
type = #{type,jdbcType=INTEGER},
user_id = #{userId,jdbcType=VARCHAR},
isread = #{isread,jdbcType=INTEGER},
title = #{title,jdbcType=VARCHAR},
content = #{content,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
where id = #{id,jdbcType=INTEGER}
update cab_mymessage
set type = #{type,jdbcType=INTEGER},
user_id = #{userId,jdbcType=VARCHAR},
isread = #{isread,jdbcType=INTEGER},
title = #{title,jdbcType=VARCHAR},
content = #{content,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
update cab_mymessage
set isread = 1
where user_id = #{userId,jdbcType=VARCHAR} and isread = 0 and type in (0,1,2,3,4)