insert into sys_notice
notice_id,
notice_name,
order_by,
notice_content,
states,
notice_type,
is_use,
create_time,
create_user,
update_user,
update_time,
company_id,
#{noticeId,jdbcType=VARCHAR},
#{noticeName,jdbcType=VARCHAR},
#{orderBy,jdbcType=VARCHAR},
#{noticeContent,jdbcType=VARCHAR},
#{states,jdbcType=INTEGER},
#{noticeType,jdbcType=INTEGER},
#{isUse,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP},
#{createUser,jdbcType=VARCHAR},
#{updateUser,jdbcType=VARCHAR},
#{updateTime,jdbcType=VARCHAR},
#{companyId,jdbcType=VARCHAR},
insert into sys_notice_path
id,
notice_id,
paths,
#{id},
#{noticeId,jdbcType=VARCHAR},
#{paths,jdbcType=VARCHAR},
delete from sys_notice_path where notice_id=#{noticeId}
update sys_notice
notice_name = #{noticeName,jdbcType=VARCHAR},
order_by = #{orderBy,jdbcType=VARCHAR},
notice_content = #{noticeContent,jdbcType=VARCHAR},
states = #{states,jdbcType=INTEGER},
notice_type = #{noticeType,jdbcType=INTEGER},
is_use = #{isUse,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_user = #{createUser,jdbcType=VARCHAR},
update_user = #{updateUser,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=VARCHAR},
where notice_id = #{noticeId,jdbcType=VARCHAR}
update sys_notice set
is_use=2
where notice_id=#{noticeId}
update sys_notice
states = #{states},
update_time = #{updateTime,jdbcType=VARCHAR},
where notice_id=#{noticeId}