Browse Source

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

wukai 2 years ago
parent
commit
17c52df4c8

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

@@ -54,8 +54,9 @@
         <where>
             is_del!='1'
             <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>
                 <otherwise>and GROUP_MANAGER = #{groupManager}</otherwise>
             </choose>