浏览代码

解决分组成员查询不出分组的BUG

wukai 2 年之前
父节点
当前提交
17c52df4c8
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      lzga-modules/lzga-doc/src/main/resources/mapper/doc/DocGroupMapper.xml

+ 3 - 2
lzga-modules/lzga-doc/src/main/resources/mapper/doc/DocGroupMapper.xml

@@ -54,8 +54,9 @@
         <where>
         <where>
             is_del!='1'
             is_del!='1'
             <choose>
             <choose>
-                <when test="searchValue!=null and searchValue=='1'">and (GROUP_MANAGER = #{groupManager} or group_id in
-                    (select group_id from doc_group_user where user_id=#{groupManager}))
+                <when test="searchValue!=null and searchValue == '1'.toString()">
+                    and (GROUP_MANAGER = #{groupManager} or
+                    group_id in (select group_id from doc_group_user where user_id=#{groupManager}))
                 </when>
                 </when>
                 <otherwise>and GROUP_MANAGER = #{groupManager}</otherwise>
                 <otherwise>and GROUP_MANAGER = #{groupManager}</otherwise>
             </choose>
             </choose>