| | |
| | | </trim> |
| | | </insert> |
| | | |
| | | <insert id="insertVo"> |
| | | insert into sys_menus |
| | | <trim prefix="(" suffix=")" suffixOverrides="," > |
| | | <if test="menuId != null"> |
| | | menu_id, |
| | | </if> |
| | | <if test="isUse != null"> |
| | | is_use, |
| | | </if> |
| | | <if test="path != null"> |
| | | path, |
| | | </if> |
| | | <if test="name != null"> |
| | | name, |
| | | </if> |
| | | <if test="hidden != null"> |
| | | hidden, |
| | | </if> |
| | | <if test="redirect != null"> |
| | | redirect, |
| | | </if> |
| | | <if test="parentId != null"> |
| | | parent_id, |
| | | </if> |
| | | <if test="title != null"> |
| | | title, |
| | | </if> |
| | | <if test="icon != null"> |
| | | icon, |
| | | </if> |
| | | <if test="component != null"> |
| | | component, |
| | | </if> |
| | | <if test="level != null"> |
| | | level, |
| | | </if> |
| | | <if test="isDefault != null"> |
| | | is_default, |
| | | </if> |
| | | </trim> |
| | | |
| | | <trim prefix="values (" suffix=")" suffixOverrides="," > |
| | | <if test="menuId != null"> |
| | | #{menuId}, |
| | | </if> |
| | | <if test="isUse != null"> |
| | | #{isUse}, |
| | | </if> |
| | | <if test="path != null"> |
| | | #{path}, |
| | | </if> |
| | | <if test="name != null"> |
| | | #{name}, |
| | | </if> |
| | | <if test="hidden != null"> |
| | | #{hidden}, |
| | | </if> |
| | | <if test="redirect != null"> |
| | | #{redirect}, |
| | | </if> |
| | | <if test="parentId != null"> |
| | | #{parentId}, |
| | | </if> |
| | | <if test="title != null"> |
| | | #{title}, |
| | | </if> |
| | | <if test="icon != null"> |
| | | #{icon}, |
| | | </if> |
| | | <if test="component != null"> |
| | | #{component}, |
| | | </if> |
| | | <if test="level != null"> |
| | | #{level}, |
| | | </if> |
| | | <if test="isDefault != null"> |
| | | #{isDefault}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | <!--更新操作--> |
| | | <update id="update"> |
| | | update sys_menus |