|
|
|
@ -17,28 +17,35 @@
|
|
|
|
|
left join jcl_org_comp c on t.company_id = c.id
|
|
|
|
|
left join jcl_org_hrmresource t1 on t.manager_id = t1.id
|
|
|
|
|
where 1 = 1
|
|
|
|
|
<include refid="likeSql"/>
|
|
|
|
|
<if test="param.departmentId != null and param.departmentId != ''">
|
|
|
|
|
and t.department_id = #{param.departmentId}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="param.companyId != null and param.companyId != ''">
|
|
|
|
|
and t.company_id = #{param.companyId}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="param.mobile != null and param.mobile != ''">
|
|
|
|
|
and t.mobile = #{param.mobile}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="param.telephone != null and param.telephone != ''">
|
|
|
|
|
and t.telephone = #{param.telephone}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="param.managerId != null and param.managerId != ''">
|
|
|
|
|
and t.manager_id = #{param.managerId}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="param.mobileCall != null and param.mobileCall != ''">
|
|
|
|
|
and t.mobile_call = #{param.mobileCall}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="param.jobTitle != null and param.jobTitle != ''">
|
|
|
|
|
and t.job_title = #{param.jobTitle}
|
|
|
|
|
<if test="ids != null and ids.size > 0" >
|
|
|
|
|
AND t.id IN
|
|
|
|
|
<foreach collection="ids" open="(" item="id" separator="," close=")">
|
|
|
|
|
#{id}
|
|
|
|
|
</foreach>
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<!--<include refid="likeSql"/>-->
|
|
|
|
|
<!--<if test="param.departmentId != null and param.departmentId != ''">-->
|
|
|
|
|
<!--and t.department_id = #{param.departmentId}-->
|
|
|
|
|
<!--</if>-->
|
|
|
|
|
<!--<if test="param.companyId != null and param.companyId != ''">-->
|
|
|
|
|
<!--and t.company_id = #{param.companyId}-->
|
|
|
|
|
<!--</if>-->
|
|
|
|
|
<!--<if test="param.mobile != null and param.mobile != ''">-->
|
|
|
|
|
<!--and t.mobile = #{param.mobile}-->
|
|
|
|
|
<!--</if>-->
|
|
|
|
|
<!--<if test="param.telephone != null and param.telephone != ''">-->
|
|
|
|
|
<!--and t.telephone = #{param.telephone}-->
|
|
|
|
|
<!--</if>-->
|
|
|
|
|
<!--<if test="param.managerId != null and param.managerId != ''">-->
|
|
|
|
|
<!--and t.manager_id = #{param.managerId}-->
|
|
|
|
|
<!--</if>-->
|
|
|
|
|
<!--<if test="param.mobileCall != null and param.mobileCall != ''">-->
|
|
|
|
|
<!--and t.mobile_call = #{param.mobileCall}-->
|
|
|
|
|
<!--</if>-->
|
|
|
|
|
<!--<if test="param.jobTitle != null and param.jobTitle != ''">-->
|
|
|
|
|
<!--and t.job_title = #{param.jobTitle}-->
|
|
|
|
|
<!--</if>-->
|
|
|
|
|
order by t.id asc;
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|