瀏覽代碼

不好意思,同上

梁欢 1 天之前
父節點
當前提交
3fe77858b9
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/main/java/cn/hnthyy/thmz/mapper/thmz/MenuMapper.java

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

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