|
@@ -219,14 +219,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
FROM uims_user a
|
|
FROM uims_user a
|
|
<include refid="sysAreaJoins"/>
|
|
<include refid="sysAreaJoins"/>
|
|
where a.status=1
|
|
where a.status=1
|
|
- and (1=1
|
|
|
|
<if test="compayId != null and compayId != ''">
|
|
<if test="compayId != null and compayId != ''">
|
|
- or a.COMPANY_ORG_ID = #{compayId}
|
|
|
|
- </if>
|
|
|
|
- <if test="deptId != null and deptId != ''">
|
|
|
|
- or a.DEPT_ORG_ID = #{deptId}
|
|
|
|
|
|
+ and (
|
|
|
|
+ a.COMPANY_ORG_ID = #{compayId}
|
|
|
|
+ <if test="deptId != null and deptId != ''">
|
|
|
|
+ or a.DEPT_ORG_ID = #{deptId}
|
|
|
|
+ </if>
|
|
|
|
+ )
|
|
</if>
|
|
</if>
|
|
- )
|
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="findUserIdsByPermissonOrg" resultType="java.lang.Integer">
|
|
<select id="findUserIdsByPermissonOrg" resultType="java.lang.Integer">
|