id, menu_name, menu_url, parent_id, sort, menu_level, menu_icon, show_flag, platform,
menu_type, permission, update_time, editor_id, create_time, creator_id, version,
del_flag
and menu_name = #{menuName,jdbcType=VARCHAR}
and menu_url = #{menuUrl,jdbcType=VARCHAR}
and parent_id = #{parentId,jdbcType=INTEGER}
and sort = #{sort,jdbcType=INTEGER}
and menu_level = #{menuLevel,jdbcType=INTEGER}
and menu_icon = #{menuIcon,jdbcType=VARCHAR}
and show_flag = #{showFlag,jdbcType=INTEGER}
and platform = #{platform,jdbcType=INTEGER}
and menu_type = #{menuType,jdbcType=INTEGER}
and permission = #{permission,jdbcType=VARCHAR}
and update_time = #{updateTime,jdbcType=TIMESTAMP}
and editor_id = #{editorId,jdbcType=INTEGER}
and create_time = #{createTime,jdbcType=TIMESTAMP}
and creator_id = #{creatorId,jdbcType=INTEGER}
and del_flag = 0
select seq from sqlite_sequence where name = 't_system_menu'
insert into t_system_menu (menu_name, menu_url, parent_id,
sort, menu_level, menu_icon,
show_flag, platform, menu_type,
permission, editor_id, create_time,
creator_id)
values (#{menuName,jdbcType=VARCHAR}, #{menuUrl,jdbcType=VARCHAR}, #{parentId,jdbcType=INTEGER},
#{sort,jdbcType=INTEGER}, #{menuLevel,jdbcType=INTEGER}, #{menuIcon,jdbcType=VARCHAR},
#{showFlag,jdbcType=INTEGER}, #{platform,jdbcType=INTEGER}, #{menuType,jdbcType=INTEGER},
#{permission,jdbcType=VARCHAR}, #{editorId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{creatorId,jdbcType=INTEGER})
select seq from sqlite_sequence where name = 't_system_menu'
insert into t_system_menu
menu_name,
menu_url,
parent_id,
sort,
menu_level,
menu_icon,
show_flag,
platform,
menu_type,
permission,
editor_id,
create_time,
creator_id,
#{menuName,jdbcType=VARCHAR},
#{menuUrl,jdbcType=VARCHAR},
#{parentId,jdbcType=INTEGER},
#{sort,jdbcType=INTEGER},
#{menuLevel,jdbcType=INTEGER},
#{menuIcon,jdbcType=VARCHAR},
#{showFlag,jdbcType=INTEGER},
#{platform,jdbcType=INTEGER},
#{menuType,jdbcType=INTEGER},
#{permission,jdbcType=VARCHAR},
#{editorId,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP},
#{creatorId,jdbcType=INTEGER},
update t_system_menu
menu_name = #{menuName,jdbcType=VARCHAR},
menu_url = #{menuUrl,jdbcType=VARCHAR},
parent_id = #{parentId,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER},
menu_level = #{menuLevel,jdbcType=INTEGER},
menu_icon = #{menuIcon,jdbcType=VARCHAR},
show_flag = #{showFlag,jdbcType=INTEGER},
platform = #{platform,jdbcType=INTEGER},
menu_type = #{menuType,jdbcType=INTEGER},
permission = #{permission,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
editor_id = #{editorId,jdbcType=INTEGER},
creator_id = #{creatorId,jdbcType=INTEGER},
version = version + 1,
where id = #{id,jdbcType=INTEGER}
and version = #{version, jdbcType=INTEGER}
update t_system_menu
set menu_name = #{menuName,jdbcType=VARCHAR},
menu_url = #{menuUrl,jdbcType=VARCHAR},
parent_id = #{parentId,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER},
menu_level = #{menuLevel,jdbcType=INTEGER},
menu_icon = #{menuIcon,jdbcType=VARCHAR},
show_flag = #{showFlag,jdbcType=INTEGER},
platform = #{platform,jdbcType=INTEGER},
menu_type = #{menuType,jdbcType=INTEGER},
permission = #{permission,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
editor_id = #{editorId,jdbcType=INTEGER},
creator_id = #{creatorId,jdbcType=INTEGER},
version = version + 1
where id = #{id,jdbcType=INTEGER}
and version = #{version, jdbcType=INTEGER}
update t_system_menu set del_flag = 1
where id = #{id,jdbcType=INTEGER}