and user_id_ = #{userId,jdbcType=BIGINT} 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} delete from sys_message where id_ = #{id,jdbcType=BIGINT} 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 (#{id,jdbcType=BIGINT},#{userId,jdbcType=BIGINT}, #{title,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR}, #{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}, #{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}, #{receiver,jdbcType=VARCHAR}, #{sendTime},#{errorMsg,jdbcType=VARCHAR},#{readStatus},#{memo}, #{createOn}, #{modifyOn},#{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.ym.mec.common.dal.CustomEnumTypeHandler}, #{item.status,typeHandler=com.ym.mec.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.ym.mec.common.dal.CustomEnumTypeHandler}, status_ = #{status,typeHandler=com.ym.mec.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}