|  | @@ -213,4 +213,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 | 
												
													
														
															|  |              #{item}
 |  |              #{item}
 | 
												
													
														
															|  |          </foreach>
 |  |          </foreach>
 | 
												
													
														
															|  |      </select>
 |  |      </select>
 | 
												
													
														
															|  | 
 |  | +    <select id="findUserIdsForOrg"  resultType="com.huaxu.entity.UserEntity">
 | 
												
													
														
															|  | 
 |  | +        SELECT
 | 
												
													
														
															|  | 
 |  | +        <include refid="userColumns"/>
 | 
												
													
														
															|  | 
 |  | +        FROM uims_user a
 | 
												
													
														
															|  | 
 |  | +        <include refid="sysAreaJoins"/>
 | 
												
													
														
															|  | 
 |  | +        where a.status=1
 | 
												
													
														
															|  | 
 |  | +        and (1=1
 | 
												
													
														
															|  | 
 |  | +        <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}
 | 
												
													
														
															|  | 
 |  | +        </if>
 | 
												
													
														
															|  | 
 |  | +        )
 | 
												
													
														
															|  | 
 |  | +    </select>
 | 
												
													
														
															|  |  </mapper>
 |  |  </mapper>
 |