Преглед на файлове

Merge branch 'master' of http://git.dayaedu.com/yonge/cooleshow into master

jelly преди 3 години
родител
ревизия
9f491159a0
променени са 1 файла, в които са добавени 11 реда и са изтрити 2 реда
  1. 11 2
      cooleshow-auth/auth-server/src/main/resources/config/mybatis/SysMenuMapper.xml

+ 11 - 2
cooleshow-auth/auth-server/src/main/resources/config/mybatis/SysMenuMapper.xml

@@ -43,14 +43,23 @@
     <insert id="insert" parameterType="com.yonge.cooleshow.auth.api.entity.SysMenu" useGeneratedKeys="true" keyColumn="id"
             keyProperty="id">
         INSERT INTO sys_menu
-        (id_,name_,permission_,path_,parent_id_,icon_,component_,sort_,type_,create_time_,update_time_,hidden_,parent_permission_,memo_,keep_alive_)
-        VALUES(#{id},#{name},#{permission},#{path},#{parentId},#{icon},#{component},#{sort},#{type},now(),now(),#{hid},#{parentPermission},#{memo},#{keepAlive})
+        (id_,name_,permission_,path_,parent_id_,icon_,component_,sort_,type_,create_time_,update_time_,hidden_,parent_permission_,memo_,keep_alive_,is_affix_,is_iframe_,link_path_)
+        VALUES(#{id},#{name},#{permission},#{path},#{parentId},#{icon},#{component},#{sort},#{type},now(),now(),#{hid},#{parentPermission},#{memo},#{keepAlive},#{isAffix},#{isIframe},#{linkPath})
     </insert>
 
     <!-- 根据主键查询一条记录 -->
     <update id="update" parameterType="com.yonge.cooleshow.auth.api.entity.SysMenu">
         UPDATE sys_menu
         <set>
+            <if test="isAffix != null">
+                is_affix_ = #{isAffix},
+            </if>
+            <if test="isIframe != null">
+                is_iframe_ = #{isIframe},
+            </if>
+            <if test="linkPath != null">
+                link_path_ = #{linkPath},
+            </if>
             <if test="parentId != null">
                 parent_id_ = #{parentId},
             </if>