|
|
@@ -43,6 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="params.dataScope != null and params.dataScope != ''">
|
|
|
<!-- 添加部门表关联 -->
|
|
|
LEFT JOIN sys_dept d ON t.dept_id = d.dept_id
|
|
|
+ LEFT JOIN sys_user u ON t.user_id = u.user_id
|
|
|
</if>
|
|
|
<where>
|
|
|
<if test="wrongWord != null and wrongWord != ''"> and wrong_word like concat('%', #{wrongWord}, '%')</if>
|
|
|
@@ -95,6 +96,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="params.dataScope != null and params.dataScope != ''">
|
|
|
<!-- 添加部门表关联 -->
|
|
|
LEFT JOIN sys_dept d ON t.dept_id = d.dept_id
|
|
|
+ LEFT JOIN sys_user u ON t.user_id = u.user_id
|
|
|
</if>
|
|
|
<where>
|
|
|
and flag = 0
|
|
|
@@ -110,6 +112,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="params.dataScope != null and params.dataScope != ''">
|
|
|
<!-- 添加部门表关联 -->
|
|
|
LEFT JOIN sys_dept d ON t.dept_id = d.dept_id
|
|
|
+ LEFT JOIN sys_user u ON t.user_id = u.user_id
|
|
|
</if>
|
|
|
where id = #{id}
|
|
|
<!-- 数据范围过滤 -->
|