中扬CRM客户关系管理系统
LSH
2023-07-24 b7372246914313cc7dabe3fcb6bb07e5c667ce2d
#选择部门后搜索失效bug
1个文件已修改
8 ■■■■■ 已修改文件
src/main/resources/mapper/CstmrMapper.xml 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/CstmrMapper.xml
@@ -76,7 +76,7 @@
        WHERE 1=1
        <choose>
            <when test="deptId != null and deptId != ''">
                AND (CHARINDEX(','+#{deptId}+',', ','+sd.path+',') > 0 OR sd.id = #{deptId})
                AND ((CHARINDEX(','+#{deptId}+',', ','+sd.path+',') > 0 OR sd.id = #{deptId})
                or
                (
                    user_id = #{userId}
@@ -89,7 +89,7 @@
                        where 1=1
                        and user_id = #{userId}
                    )
                )
                ))
            </when>
            <otherwise>
                and
@@ -134,7 +134,8 @@
        WHERE 1=1
        <choose>
            <when test="deptId != null and deptId != ''">
                AND (CHARINDEX(','+#{deptId}+',', ','+sd.path+',') > 0 OR sd.id = #{deptId})
                AND (
                (CHARINDEX(','+#{deptId}+',', ','+sd.path+',') > 0 OR sd.id = #{deptId})
                or
                (
                user_id = #{userId}
@@ -148,6 +149,7 @@
                and user_id = #{userId}
                )
                )
                )
            </when>
            <otherwise>
                and