소스 검색

1.增加父菜单ID为空判断。

tomatozq 5 년 전
부모
커밋
c4cca87ff6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      picc-common/src/main/resources/mapper/sys/Menu.xml

+ 1 - 1
picc-common/src/main/resources/mapper/sys/Menu.xml

@@ -129,7 +129,7 @@
         and m.menu_type = 2
         and m.del_flag=0
         <if test="parentId==null">
-            and m.parent_id is null
+            and (m.parent_id is null or m.parent_id='')
         </if>
         <if test="parentId!=null">
             and m.parent_id = #{parentId}