and user_id_ = #{userId} and receiver_ like '%' #{receiver} '%' and status_ = #{status,jdbcType=TINYINT} and read_status_ = #{readStatus,jdbcType=TINYINT} and title_ like '%' #{title} '%' and type_ = #{type} and group_ = #{group} and read_status_ = #{readStatus} delete from sys_message where id_ = #{id,jdbcType=BIGINT} insert into sys_message (user_id_,title_, content_,type_, receiver_, send_time_, error_msg_,memo_, create_on_,modify_on_,group_) values (#{userId}, #{title},#{content},#{type,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler}, #{receiver},now(),#{errorMsg},#{memo},now(),now(),#{group}) insert into sys_message (id_, user_id_, title_, content_, type_, status_, receiver_, send_time_, error_msg_,read_status_,memo_, create_on_, modify_on_,group_) values ( #{item.id,jdbcType=BIGINT},#{item.userId,jdbcType=BIGINT}, #{item.title,jdbcType=VARCHAR}, #{item.content,jdbcType=VARCHAR}, #{item.type,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler}, #{item.status,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler}, #{item.receiver,jdbcType=VARCHAR}, #{item.sendTime},#{item.errorMsg,jdbcType=VARCHAR},#{item.readStatus},#{item.memo}, #{item.createOn}, #{item.modifyOn},#{item.group} ) update sys_message user_id_ = #{userId,jdbcType=BIGINT}, title_ = #{title,jdbcType=VARCHAR}, content_ = #{content,jdbcType=VARCHAR}, type_ = #{type,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler}, status_ = #{status,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler}, receiver_ = #{receiver,jdbcType=VARCHAR}, send_time_ = #{sendTime}, error_msg_ = #{errorMsg,jdbcType=VARCHAR}, read_status_ = #{readStatus,jdbcType=TINYINT}, memo_ = #{memo,jdbcType=VARCHAR}, create_on_ = #{createOn}, modify_on_ = #{modifyOn}, group_ = #{group}, where id_ = #{id,jdbcType=BIGINT} update sys_message set read_status_=#{status} where user_id_ =#{userId} update sys_message set read_status_=#{status} where id_ =#{id}