menu_id,parent_id,name,
url,perms,type,
icon,order_num,html_path,
html_class,state,create_id,
create_name,create_time,menu_level,
english_name,role
delete from sys_menu
where menu_id = #{menuId,jdbcType=BIGINT}
insert into sys_menu
( menu_id,parent_id,name
,url,perms,type
,icon,order_num,html_path
,html_class,state,create_id
,create_name,create_time,menu_level
,english_name,role)
values (#{menuId,jdbcType=BIGINT},#{parentId,jdbcType=BIGINT},#{name,jdbcType=VARCHAR}
,#{url,jdbcType=VARCHAR},#{perms,jdbcType=VARCHAR},#{type,jdbcType=INTEGER}
,#{icon,jdbcType=VARCHAR},#{orderNum,jdbcType=INTEGER},#{htmlPath,jdbcType=VARCHAR}
,#{htmlClass,jdbcType=VARCHAR},#{state,jdbcType=TINYINT},#{createId,jdbcType=BIGINT}
,#{createName,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP},#{menuLevel,jdbcType=INTEGER}
,#{englishName,jdbcType=VARCHAR},#{role,jdbcType=VARCHAR})
insert into sys_menu
menu_id,
parent_id,
name,
url,
perms,
type,
icon,
order_num,
html_path,
html_class,
state,
create_id,
create_name,
create_time,
menu_level,
english_name,
role,
#{menuId,jdbcType=BIGINT},
#{parentId,jdbcType=BIGINT},
#{name,jdbcType=VARCHAR},
#{url,jdbcType=VARCHAR},
#{perms,jdbcType=VARCHAR},
#{type,jdbcType=INTEGER},
#{icon,jdbcType=VARCHAR},
#{orderNum,jdbcType=INTEGER},
#{htmlPath,jdbcType=VARCHAR},
#{htmlClass,jdbcType=VARCHAR},
#{state,jdbcType=TINYINT},
#{createId,jdbcType=BIGINT},
#{createName,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{menuLevel,jdbcType=INTEGER},
#{englishName,jdbcType=VARCHAR},
#{role,jdbcType=VARCHAR},
update sys_menu
parent_id = #{parentId,jdbcType=BIGINT},
name = #{name,jdbcType=VARCHAR},
url = #{url,jdbcType=VARCHAR},
perms = #{perms,jdbcType=VARCHAR},
type = #{type,jdbcType=INTEGER},
icon = #{icon,jdbcType=VARCHAR},
order_num = #{orderNum,jdbcType=INTEGER},
html_path = #{htmlPath,jdbcType=VARCHAR},
html_class = #{htmlClass,jdbcType=VARCHAR},
state = #{state,jdbcType=TINYINT},
create_id = #{createId,jdbcType=BIGINT},
create_name = #{createName,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
menu_level = #{menuLevel,jdbcType=INTEGER},
english_name = #{englishName,jdbcType=VARCHAR},
role = #{role,jdbcType=VARCHAR},
where menu_id = #{menuId,jdbcType=BIGINT}
update sys_menu
set
parent_id = #{parentId,jdbcType=BIGINT},
name = #{name,jdbcType=VARCHAR},
url = #{url,jdbcType=VARCHAR},
perms = #{perms,jdbcType=VARCHAR},
type = #{type,jdbcType=INTEGER},
icon = #{icon,jdbcType=VARCHAR},
order_num = #{orderNum,jdbcType=INTEGER},
html_path = #{htmlPath,jdbcType=VARCHAR},
html_class = #{htmlClass,jdbcType=VARCHAR},
state = #{state,jdbcType=TINYINT},
create_id = #{createId,jdbcType=BIGINT},
create_name = #{createName,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
menu_level = #{menuLevel,jdbcType=INTEGER},
english_name = #{englishName,jdbcType=VARCHAR},
role = #{role,jdbcType=VARCHAR}
where menu_id = #{menuId,jdbcType=BIGINT}