فهرست منبع

不好意思,同上

梁欢 1 ماه پیش
والد
کامیت
003570d758
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/main/java/cn/hnthyy/thmz/mapper/thmz/MenuMapper.java

+ 1 - 1
src/main/java/cn/hnthyy/thmz/mapper/thmz/MenuMapper.java

@@ -100,7 +100,7 @@ public interface MenuMapper {
             "<when test='name!=null'>",
             ",name =#{name,jdbcType=VARCHAR}",
             "</when>",
-            "<when test='parentId!=null and parentId==-1 '>",
+            "<when test='parentId!=null or parentId==-1 '>",
             ",parent_id =null",
             "</when>",
             "<when test='classCode!=null'>",